Forum Discussion

Virgin_Australi_1's avatar
Virgin_Australi_1
New Contributor
14 years ago

Sharing Datasource between Test Cases

Hey,

I have built up a test case to automatically create some test bookings, using an excel datasource (as well as several other steps).

Now I want to create a new test case/s and use the datasource data from test case 1. However I'm unable to see the datasource using 'Get Data' within my test request, presumably because its within another test case.

So the question is, without cloning and maintaining two sets of the same datasource, how can I retrieve data from the original datasource from outside the test case thats its in?

Thanks in advance, James

2 Replies

  • Hello,

    unfortunately, that is only possible using Groovy scripting in soapUI.
    You would manualy need to import data set in new test case.

    Regards,
    Vladimir
    SmartBear Software
  • Buschfunk's avatar
    Buschfunk
    Frequent Contributor
    I have had a similar issue and found a solution which works for me.

    I created a test case which does nothing else but reading the data source. The values read from the data source are then transferred to a property on test suite level or project level depending on where these data shall be used. From within my actual test case I run this "dummy" test case via the test step "Run TestCase" followed by fetching the updated properties.