[Webtest] Default User-Agent, Frames, Javascript
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Mon, 02 Jul 2007 11:40:08 +0200
Hi Hannes,
Hannes Pölz wrote:
> Hi,
>
> i am a newbie in webtest and had a few questions.
> -------------
> 1.) default browser - where are the settings for the default browser. my
> application doesn?t work with MSIE 6.0b, if i set in the script <config
> the user Agent the test runs, but in the end no result.html is created.
> in the error message there is no line no.
> BUILD FAILED
> webtestsRunner.xml:41: The following error ocurred while executing this
> line:
> webtestsRunner.xml:55: The following error ocurred while executing this
> line:
> useWebTest.xml:94: input file: result.xml does not exist
>
> if i try an other application with the config user agent the same
> effect, without this config the scripts works. i would like to change
> the default user-agent string from MSIE 6.0b to MSIE 6.0. Please let me
> know, where this settings are.
> -------------
how does your <config> look like? Seems that your test runs correctly
but that the results can't be formatted.
Rather that webtestsRunner.xml, you should try to <import ...> the
not-yet-documented webtest.xml.
>
> 2.) how can i check the text of an html in a frame. i logged into an
> application, and after login a frameset with 4 frames will be opened.
> how can i check the text of frame1 and frame4?
you first need to use
<followFrame ../>
> 3.) if there is an errors in a javascript, with has no effects to the
> application, how can i change my skript, that the rest of the skript is
> working.
you can choose to ignore such errors (but this is not what helps you to
have the highest quality for your web app). For instance with
<config...>
<option name="ThrowExceptionOnScriptError" value="false"/>
</config>
Marc.