Hi,

Thanks for your reply. I tried as you told me. It's still very confusing. 

in the code below. The first echo will print the correct username for every 
user in the xsl file. the second echo only prints "${username}".  
It seems to me that the properties are not set within the webtest section. But 
this does not make any sense to me and the way I've done it is excactly as 
shown on the webtest website. 

<property name="username" value="gugus" />         
        <dataDriven tableContainer="C:\Users\ffa\Desktop\users.xls" 
replaceProperties="true">
            <echo message="${username}" />
                <webtest name="Tests user credentials for 
${username}:${password}" >
             <echo message="${username}" />


any further ideas? 

thanks a lot
franco



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Murat
Gesendet: Dienstag, 19. Oktober 2010 11:56
An: [email protected]
Betreff: Re: [Webtest] Problem with datadriven

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
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to