Dynamic Email Address - How to Automate

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    2 posts
    Member since:
    Sep 2017

    Posted 13 Sep 2017 Link to this post

    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.
  2. Elena Tsvetkova
    Elena Tsvetkova avatar
    942 posts

    Posted 14 Sep 2017 Link to this post

    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! 

    Elena Tsvetkova
    Progress Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top