Forum Discussion
Hi Unhandled,
I am bit new to SOAP UI,
I have added rest reequest before the groovy script and manually run it and then added groovy script step and
I copied the same code and when try to run it,It shows error
"java.util.NoSuchElementException: Cannot access last() element from an empty list"
Can you suggest what changes or steps to follow to get the Exact status of the teststep.
Thanks
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.