As far as repeating the login process in each script - maybe you are already
doing this, but we have a login module, and include it in each script with
!ENTITY (I noticed in the sample project that comes with WebTest, they do
this with macros instead), so that way the steps to log in are only in one
place. Is that what you mean? I can send you an example if you want.

Passing variables between tests, do you mean you want to capture the
variable in one test, like pulling a value out of the http, and pass it to
the next test? Or are you just talking about setting variables? In some
cases we set the property in the script just after the property tag:
  <property name="fid" value="1"/>
Other times (when multiple scripts need the same properties for example) we
put properties in a separate file and again use !ENTITY to include them.

I know there are people who have done tutorials and classes in WebTest,
maybe they can share some of their course material?
-- Lisa

On Fri, Jun 13, 2008 at 2:35 PM, Noam Aigerman <[EMAIL PROTECTED]> wrote:

>  Hi,
>
> I seem to have a lot of trouble understanding the right way to use webtest
> in the correct manner. One of my main problems, for instance, is that I want
> to pass variables between webtests, which I have found no better way to do
> it than
>
>
>
> <storeProperty
>
>         name="question"
>
>         propertyType="ant"
>
>         value="#{question}"
>
> />
>
>
>
> Or say I want to make a lot of webtests as a logged in user. I find myself
> making the same actions (go to the site, enter username and pwd and click
> "logon") on the start of each webtest.
>
>
>
> I'm pretty sure I just understand the correct way to work with webtest. Can
> someone help me out?
>
>
>
>
>
>
>
> BTW – I can't seem to find a lot of tutorials\examples on webtest, beside
> the "manual" section on canoo's site… If there are such I'd be glad if you
> can give me the links to them, as the only reason I ask these trivial
> questions is since I can't find the answers any other way.
>
>
>
> Thanks, Noam
>



-- 
Lisa Crispin
Co-author with Janet Gregory, Agile Testing
http://www.agiletester.ca
http://lisa.crispin.home.att.net
http://lisacrispin.blogspot.com

Reply via email to