This is a migrated thread and some comments may be shown as answers.

Dynamic Email Address - How to Automate

1 Answer 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 13 Sep 2017, 09:02 PM
Test Studio Team/ Experts/ Advanced Users:

Greetings! I work as a Software Tester and new to "Test Studio". I need some help with automating a "Email Address" field which requires a new data input each time I execute the Test Studio Script. For example:

1) The Business Rule for the application I am currently working is: When creating new users, each user should have a unique "Email Address".

2) So I am recording the steps in "Test Studio" for creating a new user using the email address: Tester1@test.com

3) However when I execute/ replay the same script it fails because an user with <Tester1@test.com> email already exists.

Now here are my questions:

* Question 1:  Is there any way to increment the value in "Email Address" field? So that each time I run the script it automatically increment the email address as: <Tester1@test.com>, <Tester2@test.com>, <Tester3@test.com>. Please advise.

* Question 2: Is there any way to add a new value to a specific "Text Field" each time I execute my script?

* Question 3: If there is a solution for the problem mentioned above could you please send me the details steps as I am totally new to this "Test Studio" tool?

Thanks so much for your help.

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 14 Sep 2017, 01:12 PM
Hello Jeff,

Thank you for your interest in Test Studio. 

To accomplish the described scenario you would need to data drive your test scenario. You would need to prepare your data source in advance and then use it to be attached to the input values

Another option could be to extract a value in runtime, store it to a variable and then bind it later in the test. 

I hope the above details will be suitable for you. Though in case you would need further assistance do not hesitate to contact me again! Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or