In 

<webtest>
 <config ... />
 <steps>
  <invoke url="1" />  
  <invoke url="2" />
 </steps>
</webtest>

both invoke steps run in the same session. Only in 

<webtest>
 <config ... />
 <steps>
  <invoke url="1" />  
 </steps>
</webtest>
<webtest>
 <config ... />
 <steps>
  <invoke url="2" />
 </steps>
</webtest>

they would be in two separate sessions (which is useful
to test whether data has actually been persisted).

In case the second invoke should not share the same config,
you can use the invoke step with a fully qualified url,
see http://webtest.canoo.com/webtest/manual/invoke.html


hope that helps
Dierk

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of dav
> Sent: Dienstag, 26. Juni 2007 12:15
> To: [email protected]
> Subject: [Webtest] webTest, session and multiple web servers
> 
> 
> Hi,
> 
> I need to write script to do this :
> 
> 1- query '/' web1 to create session + store a value in session
> 2- query web2 (with invoke, not using clickLink)
> 3- back to web1 and retrieve value stored in session in step 1
> 
> According to http://webtest.canoo.com/webtest/manual/webtest.html, I
> know about "[...] Each <webtest> task is executed in its own web
> session[...]".
> 
> According to http://webtest.canoo.com/webtest/manual/config.html, I know
> about "[...] This is a nested task of webtest and is used to configure
> the target host system to use [...]".
> 
> So, now is time to give you the question :
> How can I do to request using something like "invoke",  to query 
> first web1, web2, and finally retrieve session on web1
> when back ?
> 
> david.
> --
> 
> _______________________________________________
> WebTest mailing list
> [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