mjordan_lynda
15 years agoNew Contributor
Useful samples for creating random/unique usernames, etc. Keyword test.
I'm looking for a couple useful samples to create random email addresses and usernames when I submit a form.
I'm looking for samples done in either javascript or C#.
I have js functions which will do this in script mode.
My problem is that I want to take advantage of using keyword tests.
When I select a form element to give it a parameter and select "code expression" it says the value of the expression must be one line. So it appears I cannot simply paste the function into value field.
This has to be one of the most common things a person tries to do when testing a website, so, like I said, I'm looking for some useful examples to do this when using the keywords test, without having to create a data-driven test.
I'm looking for samples done in either javascript or C#.
I have js functions which will do this in script mode.
My problem is that I want to take advantage of using keyword tests.
When I select a form element to give it a parameter and select "code expression" it says the value of the expression must be one line. So it appears I cannot simply paste the function into value field.
This has to be one of the most common things a person tries to do when testing a website, so, like I said, I'm looking for some useful examples to do this when using the keywords test, without having to create a data-driven test.