cbyndr
15 years agoContributor
[SOLVED]does script assertion have access to testrunner?
In order to programmatically iterate and verify response xml child nodes, many of our test cases' assertions are handled via groovy scripts.
In order for test coverage to include assertions covered by these groovy scripts, I'm attempting to move these groovy scripts into test requests' script assertions.
The process for tackling this is described in this thread.
My original script assertions get their expected values from properties steps, which requires access to test runner. But, script assertion does not appear to have access to test runner.
Is there some way that we can access property step properties for the script assertions? Or should we plan to move the expected values out of the properties steps and into (say) a CSV file?
In order for test coverage to include assertions covered by these groovy scripts, I'm attempting to move these groovy scripts into test requests' script assertions.
The process for tackling this is described in this thread.
My original script assertions get their expected values from properties steps, which requires access to test runner. But, script assertion does not appear to have access to test runner.
Is there some way that we can access property step properties for the script assertions? Or should we plan to move the expected values out of the properties steps and into (say) a CSV file?