Forum Discussion
SmartBear_Suppo
SmartBear Alumni (Retired)
Hi!
that explains it, the assertion script does not have access to the testRunner variable, you can instead use
def testCase = messageExchange.modelItem.testCase
to get hold of the containting testcase.
regards!
/Ole
eviware.com
that explains it, the assertion script does not have access to the testRunner variable, you can instead use
def testCase = messageExchange.modelItem.testCase
to get hold of the containting testcase.
regards!
/Ole
eviware.com
chathurad
7 years agoContributor
that explains it, the assertion script does not have access to the testRunner variable, you can instead use
So how to get access to the testRunner variable?
- yousufbadar7 years agoRegular Visitor
try this :
def testCase = messageExchange.modelItem.testCase
def ResponseMessage = testCase.testSteps["Step1"].testRequest.response.contentAsString
log.debug 'response is :::: ' + ResponseMessage
Related Content
- 10 years ago
Recent Discussions
- 5 days ago
- 10 days ago