Reputation: 1013
I am newbie/beginner to Selenium IDE, i am running a test on a web application. I wish to have a input of username into a textbox, let say 100 times how could i done this? What i should type in the source or value column?
I want result somehow similar to
for (i=1;i<=100;i++)
{
value = "user" + i ;
}
(but i have no idea how to do it ...)
Then the test will going to loop 100 times and everytime will input different username like User1 .... first time User2 .... second time
Any helps would be appreciated. Thank you very much!
Upvotes: 2
Views: 2589
Reputation: 131
This approach should also work as well, using the SelBlocks extension.
for | i=1; i <= 100; i++ |
type | id=fieldname |user ${i}
endFor| |
Upvotes: 2
Reputation: 2002
You need to use parametrization with looping, you can refer
Selenium IDE: How to Pass Variables
Upvotes: 1