Hi franco,

that usually happens to me when the property is not (yet) set. Try to
verify that it has been assigned a value, using echo, echoproperties
or debugging.

Regards,
Murat


2010/10/19 Franco Fallica <[email protected]>:
> Hi there,
>
>
>
> I am trying to use webtest and run into a problem I dont quite understand:
>
> When I use datadriven the "variables" (in this case ${username} and
> {$password ) will only be used once.  In the reports it will say "test user
> credentials for balbla:blabla" but the value it actually assigns to the
> input fields are "${username}" ( and not blabla).  see code below.
>
>
>
> Does somebody see my mistake here. help is very much appreciated.
>
>
>
> kind regards
>
> franco
>
>
>
> Code:
>
> <project default="blatest">
>
>     <target name="blatest">
>
>
>
>         <dataDriven tableContainer="C:\Users\ffa\Desktop\users.xls">
>
>                 <webtest name="Tests user credentials for
> ${username}:${password}">
>
>
>
>                 <invoke url="http://localhost:8080/dashboard";
> description="get Login Page" />
>
>
>
>                 <setInputField name="user" value="${username}"
> description="Set Username" />
>
>                 <setInputField name="pass" value="${password}"
> description="Set Password" />
>
>                 <clickButton label="Log In" />
>
>                 <verifyTitle text="Dashboard" />
>
>                 </webtest>
>
>         </dataDriven>
>
>         </target>
>
>  </project>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -- getunik ag -------------------------------------------
>   franco fallica             [email protected]
>   hardturmstrasse 101    fon: +41 44 388 55 88
>   ch-8005 zuerich               fax: +41 44 388 55 89
>
> -- latest getunik project -------------------------
>
>    Act local! Geo Marketing for your E-Mail campaign: www.geomarketing.com
>
>
>
> -- best of swiss web awards 2009 ------------------
>
>    Gold & Silver for Connect2Earth / Bronze for WWF UK
>
>
>
> we make the web a better place - www.getunik.com
>
>
>
>
>
>
>
> ***********************************************************
>
> P Think about the environment ! Do not print this mail unless necessary.
>
> ***********************************************************
>
>
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to