Forum Discussion
PaulDonny
12 years agoRegular 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
8 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.