Forum Discussion
PaulDonny
11 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.
- sathyarajg7 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
- 7 years agoDonkey2017
- 5 years agoNinjaMarvel
- 6 years agomartonjurak
- 7 years agoDonkey2017