To get the properties from a test suite, you have to "get" it. To get the test suite on which you defined the properties goes as follows:
def project = mockResponse.mockOperation.mockService.project def testSuite = project.testSuites["TestSupport"]
The property can then be fetched with:
def filePath = testSuite.getPropertyValue( "responseFilePath")
Test cases are part of the testSuite and they can be fetched from an string-based array in the same manner as getting the testSuite:
def testCase = project.testSuites["TestSuite 1"].testCases["TestCase 1"]Expanding SoapUI possibilities...
No comments:
Post a Comment