Forum Discussion
JHunt
7 years agoCommunity Hero
SoapUI discourages you from doing that. For example, in property expansions, you can't use:
${#TestSuite#Some Other Test Case#someProperty}
The idea is that one test case shouldn't depend on another. Though it is possible to have the first test case set some property value on the TestSuite, and then have another test case read it:
${#TestSuite#somePropertyUsedInMoreThanOneTestCase}
If you really would just rather read directly from a property belonging to another test case, you can do it in Groovy:
def testSuite = testRunner.testCase.testSuite def otherTestCase = testSuite.testCases["TestCase 2"] log.info otherTestCase.getPropertyValue("startDate")
Related Content
- 10 years ago
- 12 years ago
- 9 years ago
Recent Discussions
- 14 hours ago