java - How to create random cell number for testing purpose -


i have create random cellnumber 07939393914 automation testing purpose.

last 079393(5 digits) digits should change randamly.. each time test runs..

can 1 suggest java code ? or else selenium java code ?

thanks

is number or string? ask has leading zero. take initial number 7939300000 add math.round(math.random()*10000)

if want string, take string "079393" , use integer.tostring on result above, concatentate them


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -