[Webtest] AppletRunner does not setScenarioLocation
Denis N. Antonioli
webtest@lists.canoo.com
Thu, 13 Jul 2006 10:57:53 +0200
Hi
I'm glad to see someone else using the appletRunner!
On 12 juil. 06, at 11:51, Joan Picanyol i Puig wrote:
> Apparently, the appletRunner step ignores the scenarioLocation
> attribute. Browsing the source code (build R_1217) I haven't been able
> to see that fScenarioLocation is set either in AppletRunner,
>
scenarioLocation is set, and used, in the class AppletRunnerStep.
But its value is validated by ant's Classpath, which drop path it
cannot resolve.
> and thus
> webtest can't find the needed properties files. The xml invocation
> looks
> like:
>
> <appletRunner
> scenario="com.canoo.webtest.extension.applet.jemmy.SuccessScenario"
> scenarioLocation="/applets"
> XPath="/html/body/div/applet"
> description="first test" />
>
Where is the scenario in your installation?
The scenario must reside on the test machine, along with the webtest
scripts.
Further, a location of '/applets' is probably interpreted as an
absolute path in the root of the file system.
>
> And webtest says (long, look for "scenario location"):
>
> appletRunner] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
> appletRunner "Escenario 1 " (5/5)
> [appletRunner] INFO
> (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget
> by applet showDocument
> [appletRunner] DEBUG
> (com.canoo.webtest.extension.applet.AppletPluginArguments) - set base
> window name Test Applet - Escenario 1
> [appletRunner] DEBUG
> (com.canoo.webtest.extension.applet.AppletPluginArguments) - set save
> response true
> [appletRunner] DEBUG
> (com.canoo.webtest.extension.applet.AppletPluginArguments) - set save
> directory C:\temp\Reports Upload
> [appletRunner] DEBUG
> (com.canoo.webtest.extension.applet.AppletPluginArguments) - set
> output
> file C:\DOCUME~1\gvico\CONFIG~1\Temp\AppletPlu
> gin57927.output
> [appletRunner] DEBUG
> (com.canoo.webtest.extension.applet.AppletPluginArguments) - set
> scenario location
>
It should be here ;-)
> As you can see, "set scenario location" doesn't see my attribute,
>
Yes, webtest doesn't find the location '/applets', so it ignores it.
> and neither does "get scenario location". I've seen that the
> selftest suite
> actually calls setScenarioLocation() in JUnit's setUp(), but I don't
> understand how I'm supposed to do this. Am I missing something? If
> not,
> is this a known issue? If so, where should I call
> setScenarioLocation()?
>
Have you looked at the functional test, in selftests/tests/
appletRunner.xml ?
These examples are executed for each and every build of webtest.
Best
dna
--
If you do not feel safe on the streets at night, what do you think it
is like on the Information Superhighway?
- A. Farrel, RFC 4041