NLange
13 years agoOccasional Contributor
[Res] Need help creating/updating properties from teardown..
I am trying to create properties from the results of the tear down script. Currently i am using this script to validate all the testStep and it logs in the script log. I also want to move the same data into properties.
However when i try to do
It does not populate the properties with data. I get the error "groovy.lang.MissingPropertyException: No such property: r for class: Script1". Am i doing something wrong with the syntax?
for( r in testRunner.results )
log.info "TestStep [" + r.testStep.name + "] " + r.status
However when i try to do
for( r in testRunner.results )
testRunner.testCase.setPropertyValue(r.testStep.name, r.status)
log.info "TestStep [" + r.testStep.name + "] " + r.status
It does not populate the properties with data. I get the error "groovy.lang.MissingPropertyException: No such property: r for class: Script1". Am i doing something wrong with the syntax?