Forum Discussion

rajs2020's avatar
rajs2020
Frequent Contributor
4 years ago

ReadyAPI - Return entire result set from a database ?

I have a run test case step in Test1 which calls a Test2. Test2 only has one JDBC step at the moment. I want to return the entire result set from Test2 to Test1, preferably in the form of a single "o...
  • HimanshuTayal's avatar
    HimanshuTayal
    4 years ago

    rajs2020 : you can do it by following way:

    //if in same Test Case
    
    def teststep = testRunner.getTestCaseByName("TestCase2").getTestStepByName('JDBC Step')
    
    //if in different Test Case
    
    def teststep = testRunner.testCase.testSuite.getTestCaseByName("TestCase2").getTestStepByName('JDBC Step')