Forum Discussion

ranjit96's avatar
ranjit96
Contributor
9 years ago

How to retrieve response of Test Step from one TestCase to another TestCase with groovy script ?

        Here  I want to retrieve "mul" Teststep response  from "MulipleTestCase" and  want to use this response in " Divide TestCase".      def groovyUtils= new com.eviware.soapui.support.G...
  • nmrao's avatar
    9 years ago

    Can you try something like below and see if that helps:

     

    def testCaseName = 'Multiple testcase'
    def testStepName = 'mul'
    def response = context.testCase.testSuite.testCases[testCaseName].testSteps[testStepName].testRequest.responseContent
    log.info response