Forum Discussion

soapuivish's avatar
soapuivish
New Member
11 years ago

Can getdata() get data from another projects' testsuites' test case?

Hi,

 

I am relatively new to SoapUI. I am using getdata() to get data from a test step which is in the same test case. 

Is there a way that i can getdata() from a different test case which is in the same testsuite of the project or from a test case that is in the different test suite of a different project. 

 

Kindly suggest

 

Thanks,

soapvish

1 Reply

  • nishantna's avatar
    nishantna
    Occasional Contributor

    If you want to access properties of another project, then you may write a script for this. I am sharing a sample of such a property transfer.

    def proj= testRunner.testCase.testSuite.project.workspace.getProjectByName("ProjectName")
    def testCase=
    proj.getTestSuiteByName("TestSuite Name").getTestCaseByName("TestCase Name")
    def prop= testCase.getPropertyValue("property name") //now you can access the property of any other project