Check Out the Latest News About SmartBear Connect
JOIN OUR WEEKLY CHALLENGE
API_Bloom_banner

API Bloom is a weekly prize-winning challenge in the Ready! API Community. Each week, we assign a task that you need to accomplish to become a winner. See the rules here.

THIS WEEK TASK
Get the biggest number of Kudos for your replies on the Ready! API forums
Top 3 Kudoed members will get $50, $35, and $15 gift cards!

LAST WEEK WINNERS
@nmrao, @msiadak, @Debz, @richie, @Emil91, @PramodYadav, @jkrier

Reply
Highlighted
678
Occasional Contributor
Posts: 18
Registered: ‎06-15-2017

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?

Regular Contributor
Posts: 231
Registered: ‎06-22-2015

Re: How to Use Datasource into other testsuites or other project

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. 

Let's Meet in Boston