Ask a Question

How to Use Datasource into other testsuites or other project

678
Regular Contributor

How to Use Datasource into other testsuites or other project

I have one datasource under Testcase1, i want to use same datasource for Testcase2 

 

How can i explore this?

1 REPLY 1
groovyguy
Community Hero

You can use Property Expansion to get to it. Something similar to what can be seen here: Property Expansion

 

In Another TestSuite and/or TestCase:

${#[TestSuiteName#TestCaseName#DataSourceName]#PropertyName}

 

 

The problem you may run into is if you need to loop through the data source, you may need to use a custom groovy script on the request to force the data source to increment. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
cancel
Showing results for 
Search instead for 
Did you mean: