Forum Discussion
PaulDonny
Regular Contributor
Script Assertion does not have access to the testRunner, you have to use the messageExchange instead.
This should work.
def testCase = messageExchange.modelItem.testCase;
def expected = testCase.getPropertyValue("suiteNumber");
This should work.
sathyarajg
7 years agoOccasional Contributor
may i know the root cause why this is not access to the test runner?
PaulDonny wrote:
Script Assertion does not have access to the testRunner, you have to use the messageExchange instead.
def testCase = messageExchange.modelItem.testCase;
def expected = testCase.getPropertyValue("suiteNumber");
This should work.
PaulDonny wrote:
Script Assertion does not have access to the testRunner, you have to use the messageExchange instead.
def testCase = messageExchange.modelItem.testCase;
def expected = testCase.getPropertyValue("suiteNumber");
This should work.
Related Content
- 5 years agoNinjaMarvel
- 6 years agomartonjurak
- 5 years agoTheEnd
Recent Discussions
- 14 days agosmilnik