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?
for (int i = 1; i > 0; i++){
String email1 = ‘test+’;
String email2 = ‘@gmail.com’;
String newEmail = email1+Integer.toString(i)+email2;
System.out.println(newEmail);
WebUI.setText(findTestObject(‘Home_Page/Sign_up/Your_email’), newEmail)
break
}