Hi,

just to be sure, do you sue a recent WebTest build?

Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com


On 10/19/2010 12:35 PM, Franco Fallica wrote:
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>



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to