On Wed, Apr 23, 2008 at 10:02 AM, Harihara Vinayakaram <hvr...@gmail.com> wrote:
The application requires a login which is kind of static . So I organized my
allTests.xml to look like :
<target name="test">
<ant antfile="login.xml" />
<ant antfile="test1.xml" />
and so on . Each of the test1.xml contains 1 test .
When I run the webtests I find that login.xml is succesfully completed but on
trying to execute test1.xml it finds there is no previous response .
But if I have the test1.xml as a different target in the login.xml things
are working .
Is it possible to have the <ant antfile> work and get the previous responses
. If so how .
Each <webtest> gets its own session, so I don't think the second <ant>
task make use of the first task's session.
You could use the 'include' capability to re-use the working login.xml
rather than duplicating the login steps in the other xml files, but
I'm not sure that's what you're after.
http://webtest.canoo.com/webtest/manual/samples.html#Include%20files
Hope that helps
--
Craig