How to reuse ID generated in one test case to another

2 posts, 0 answers
  1. Bhavin Patel
    Bhavin Patel avatar
    3 posts
    Member since:
    Feb 2010

    Posted 01 Jul 2015 Link to this post

    Hello Team,

     

    I am working on a application where users with different roles and access rights are involved. The base level user submit a report which has to be approved by other users( user at higher level in hierarchy). Each time a report is submitted, a submission ID is generated which is used for futher correspondence. I have created two fully functional test cases which are: 

     

    Test 1: Create abd submit new report

    Test 2: Approve Submitted report

     

    I am planning to integrate both the test cases so that whatever submission ID is generated by first test case, can be populated to the 2nd test case. Right now, I am explicitly entering the ID in 2nd case to filter out the report to be approved. Through forums and internet, I got a rough idea that some data binding and coded step is involved but could not figure out the correct solution.Can someone help to achieve this goal?

     

     

    Thanks

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 06 Jul 2015 Link to this post

    Hello Bhavin,

    You are right the only way you can achieve this is using a coded step. The easiest way will be if Test 1 output the ID in external file and Test 2 reads the value saved in the external file.

    You can use this article as a starting point and implement it for your scenario.

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