Forum Discussion
Radford
Super Contributor
Are you running the complete test case, allowing the two test steps to be run sequentially? Or are you manually running the REST request test step, and then running the Groovy test step?
I believe that the provided testRunner variable is for the context of the run, thus you have to run the test case to get the results of previous test steps.
"java.util.NoSuchElementException: Cannot access last() element from an empty list" is saying there are no results in the testRunner object.