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

How to reuse ID generated in one test case to another

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bhavin Patel
Top achievements
Rank 1
Bhavin Patel asked on 01 Jul 2015, 02:59 PM

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

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 06 Jul 2015, 07:59 AM
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!
Tags
General Discussions
Asked by
Bhavin Patel
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or