I’m trying to find the bets way to generate a unique gmail address for registration without using random.
I’m using the gmail + options: test+01@gmail.com. I need the ability to increase the 01 by one each time the test case is ran. This is to register a new account each time the TC is ran. I have the following but is not working correctly, any suggestions or articles?
hello, what do you meant by not working correctly?
How many time do you want to loop?
Your current for loop statement will go infinitely, they way you have it now.
How about this:
for (int i = 0; i < 10; i++){ //run for loop 10 times
Thanks, I give it a try. I want this loop to just run one time every time I run the script. But next time I run the script I want the value to increase from first run.
e.g. Frist run, input test+1@gmail.com
Second run, input test+2@gmail.com
It seem very simple, juts not sure why i’m having a hard time with this. Thanks!