Hi,
I need to use a variable for username since each time i run my tests i need to create a new (unique) user ID.  In my suite i have three tests:
 
Create Account
Login
logout
 
in "Create Account" I create a variable called username and store the name for this run in it

<tr>
<td>store</td>
<td>fred1</td>
<td>UserName</td>
</tr>

then later in that script I set the value in an input field as ${Username} 

<tr>
<td>type</td>
<td>login</td>
<td>${UserName}</td>
</tr>

... this works nicely. 
In the next script I need to log in as that user and tried to use the same variable in the first part of the test

<tr>
<td>type</td>
<td>j_username</td>
<td>${UserName}</td>
</tr>

however, this time the field gets the value "${UserName}" not the value of UserName which = "fred1"

how do i set a variable in script1 and then use it in script2?

Thanks,

Ken

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to