Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate a random number

I have to create a test for homework using Selenium IDE and create a scenario to generate a random number. I'm struggling with what I need to type and what field to type in.

What should I type in?: Command Target Value

like image 876
angel malave Avatar asked May 14 '10 00:05

angel malave


2 Answers

alt text

alt text
(source: wisc.edu)

  

like image 66
3 revs, 3 users 73% Avatar answered Oct 28 '22 08:10

3 revs, 3 users 73%


i always use this to create random username and e-mails

storeEval > Math.round (Math.random() * 1357) > random
type > id=UserName > selenium${random}

and

storeEval > Math.round (Math.random() * 1357) > random
type > id=UserEmail > selenium${random}@am.com

i hope they can help you

like image 29
Mai Hanafy Avatar answered Oct 28 '22 10:10

Mai Hanafy