Hi Ken,

forking Ant for each test will surely help to avoid memory problems but
it will have a cost what concerns the speed. Without precise knowledge
of your test suite, I can't say where is the cause of you problem ;-(

You don't need to concatenate the resulting WebTestOverview.xml files:
as long as you have all subfolders like (001_testFoo) in one folder, the
execution of the last test will pick all the necessary information to
build the overview (or you can have a look at webtest.xml to call the
appropriate target explicitly).

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Ken Hopf wrote:
> Hi Marc,
> 
> I start Ant through a perl script of my own, which I think also wasn't
> accounting
> the ANT_OPTS.  I've fixed that now, but the problem persists.  Not quite
> sure
> what to make of it. 
> 
> I notice that, if I break the script up into little pieces, the pieces
> run quickly.
> I need to break this thing down for presentation anyway, so I think I'm
> going to
> run each of the pieces in a forked process with separate Ant invocations.  
> 
> I can easily concatenate the resulting WebTestOverview.xml files.  But what
> I don't know how to do is get the report writer is to invoke the report
> writer
> later, independently, to produce one index.html from the concatenated xml.
> Do you know how this might be accomplished?
> 
> Thx,
> Ken
> 
> ps... all answers from everyone so far have been tremendously helpful!
> Many thanks to all!!  :)
> 
> 
> On 5/21/08, *Marc Guillemot* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     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> <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>
>     <http://1.8.1.14>) Gecko/20080404
>     > Firefox/2.0.0.14 <http://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&amp;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> <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>
>     <http://1.8.1.14>) Gecko/20080404
>     > Firefox/2.0.0.14 <http://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] <mailto:[email protected]>
>     http://lists.canoo.com/mailman/listinfo/webtest
> 
> 



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to