Forum Discussion

678's avatar
678
Regular Contributor
7 years ago

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

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    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.