Forum Discussion

agupta1's avatar
agupta1
Contributor
16 years ago

Access request of a test-step defined in a different test-case

I have 2 testcases in a Test suite: DailyRestart and TomcatRestart. DailyRestart has a test step called getUserList. Is there a way to execute getUserList from a script created in the testcase TomcatRestart?

Is there any way to access the response of getUserList from a script in TomcatRestart?

1 Reply

  • I managed to access properties in a different testcase as follows:

    def loginStep = testRunner.testCase.testSuite.testCases['LoginVMSummary'].testSteps['LoginVMSummary'];
    def holder = new XmlHolder(loginStep.testRequest.getResponse().getContentAsString());