Hi Ken,
> Funny you should mention performance, because I'm starting to have an
> issue with it.
> My WebTest suite is growing, and I'm finding that, as it approaches the
> end, it slows
> to a crawl and practically doesn't finish at all.
this isn't normal.
> I've noticed the Out of Memory recommendations in the TroubleShooting
> WebTests
> section of the WebTest site. I do have my ANT_OPTS set as
> recommended. This
> has not resolved the issue.
do you start your tests with Ant directly or with the webtest.{sh|bat}
script? In this later case I guess that ANT_OPTS are not taken into account.
> Typically, my tests look like this ...
>
> <?xml version="1.0"?>
> <!DOCTYPE project SYSTEM "../dtd/Project.dtd">
> <project name="demo.beboWebTest" default="test">
> <property name="BirthDay" value="17"/>
> <property name="BirthMonth" value="10"/>
> <property name="BirthYear" value="1980"/>
> <property name="FirstName1" value="Alan"/>
> .
> .
> .
> <target name="test">
> <webtest name="Register First User">
> <config
> protocol="http"
> host="testbranch.bebo.com <http://testbranch.bebo.com>">
> <header name="User-Agent" value="Mozilla/5.0 (Macintosh;
> U; Intel Mac OS X; en-US; rv:1.8.1.14 <http://1.8.1.14>) Gecko/20080404
> Firefox/2.0.0.14 <http://2.0.0.14>"/>
> <header name="Accept-Language"
> value="en;q=0.7,en-us;q=0.3"/>
> <header name="ThrowExceptionOnScriptError" value="false"/>
> <header name="X-BeboAutomatedTestAgent" value="WebTest"/>
> </config>
> <steps>
> <invoke
> url="InviteJoin.jsp?Member=N&AutomatedTest=Y" description="Register
> First User"/>
> <setInputField name="FirstName" value="${FirstName1}"/>
> <setInputField name="LastName" value="${LastName1}"/>
> <setRadioButton name="GenderCd" value="${GenderCd1}"/>
> <setSelectField name="BirthDay" value="${BirthDay}"/>
> <setSelectField name="BirthMonth" value="${BirthMonth}"/>
> <setSelectField name="BirthYear" value="${BirthYear}"/>
> <setInputField name="Email" value="${User1}"/>
> <setInputField name="Password" value="${Password}"/>
> <clickButton name="xxx"/>
> <verifyText text="${Check your email address book below}"/>
> </steps>
> </webtest>
> <webtest name="Sign Out First User">
> <config
> protocol="http"
> host="testbranch.bebo.com <http://testbranch.bebo.com>">
> <header name="User-Agent" value="Mozilla/5.0 (Macintosh;
> U; Intel Mac OS X; en-US; rv:1.8.1.14 <http://1.8.1.14>) Gecko/20080404
> Firefox/2.0.0.14 <http://2.0.0.14>"/>
> <header name="Accept-Language"
> value="en;q=0.7,en-us;q=0.3"/>
> <header name="ThrowExceptionOnScriptError" value="false"/>
> <header name="X-BeboAutomatedTestAgent" value="WebTest"/>
> </config>
> <steps>
> <invoke url="SignOut.jsp" description="Sign Out First
> User"/>
> <verifyText text="${Signed Out}"/>
> </steps>
> </webtest>
> .
> .
> .
> </target>
> </project>
It seems to me that there are some problems (ThrowExceptionOnScriptError
as header, strange organization in different tests that seem not to make
sense, ...) but nothing that should bring memory problems
> The properties section above is truncated and has gotten quite long in
> my actual
> test suite. Then, I keep adding more and more webtests as shown above. Am
> I structuring this whole improperly?
I think that it could be greatly improved using property files and one
file per test to allow to invoke a single test at one time, what is more
efficient at dev time.
> In the WebTest site, I see the
> recommendation
> about not calling taskdef more than once .. but I don't know what this means
> (in general I'm no ANT expert).
in fact this is now hidden in webtest.xml, which you should only import
once. The doc needs to be updated.
> Also, I do not know how to use more
> than one file
> for collecting reports and still have a unified regression test. Any
> suggestions
> would be greatly appreciated.
why do you need different files?
Cheers,
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest