mpw83
11 years agoContributor
Does Script Assertion supports for testRunner functions ?
Hi All,
I want to update a property if Script Assertion is passed , and want to use the value for the next step
E.g
........................................................................................................................................
if (AAA == BBB ){
assert true:"matched"
testRunner.testCase.testSuite.project.setPropertyValue('GroupId',String.valueOf(OrderGroupId))
} else {
assert false:"doesn't matched"
}
........................................................................................................................................
I am getting following error
ERROR:groovy.lang.MissingPropertyException: No such property: testRunner for class: Script25
is this possible in Script Assertion ? if it's not possible then appreciated if someone can mention a proper solution
Thank you very much.
I want to update a property if Script Assertion is passed , and want to use the value for the next step
E.g
........................................................................................................................................
if (AAA == BBB ){
assert true:"matched"
testRunner.testCase.testSuite.project.setPropertyValue('GroupId',String.valueOf(OrderGroupId))
} else {
assert false:"doesn't matched"
}
........................................................................................................................................
I am getting following error
ERROR:groovy.lang.MissingPropertyException: No such property: testRunner for class: Script25
is this possible in Script Assertion ? if it's not possible then appreciated if someone can mention a proper solution
Thank you very much.