Can we generate unique distinct users for parallel tests in selenium WebDriver and java?
Suppose, in google create an account action I want to pass firstname, Lastname, Username & Password for different browsers.
I was written script & when it was tried to run in parallelly on IE, Safari, FF & Chrome, It successfully runs on the single browser but for the 2nd browser, it shows for email Id -"Email already exists".
This is right because we never create more accounts with the same ID.
Now my question is:
How to pass different inputs (strings) in same field textbox for different browsers to create an account.
Suppose If we set an array with 4 input strings. should we take a random value from this array for different browsers?
an array of multiple inputs -Email1 -Email2 -Email3 -Email4
when we run the script in parallelly- for the first browser it should take Email1 -When the same script will run for the 2nd browser it should take email2 ..same for 3rd & 4th. Is it possible in Selenium with java? If Yes, How?
Your answer is highly appreciated.