Forum Discussion
mamar
11 years agoContributor
I have found the solution and here is the script i used.
def stepname = testRunner.testCase.testSuite.getPropertyValue("TestRequestStepName")
def assertion = testRunner.getTestCase().getTestStepByName(stepname).addAssertion("Script Assertion")
assertion.setScriptText("hai from assertion.setScriptText.....")
log.info assertion