This question is locked. New answers and comments are not allowed.
This code will create a random email address.
There are two extracted values, myRandomEmail and ConfirmEmail. The first can be used if you just need a single email address, the second can be used if you have to enter the same email as a confirmation email, like and account setup page.
You just pop this puppy in a coded step.
There are two extracted values, myRandomEmail and ConfirmEmail. The first can be used if you just need a single email address, the second can be used if you have to enter the same email as a confirmation email, like and account setup page.
You just pop this puppy in a coded step.
StringBuilder sb =
new
StringBuilder();<br>Random rnd =
new
Random();<br>
char
ch;<br>
for
(
int
ctr = 0; ctr < 9; ctr++)
{
ch = Convert.ToChar(Convert.ToInt32(Math.Floor(26 * rnd.NextDouble() + 65)));
sb.Append(ch);
}
sb.Append(
"@GMAIL.COM"
);
this
.SetExtractedValue(
"myRandomEmail"
,sb.ToString());
this
.SetExtractedValue(
"ConfirmEmail"
,sb.ToString());