Is it possible to run specific test steps in other Test Cases from a Groovy Script test step?
Can't figure out how to do this
Thank You
Is it possible to run specific test steps in other Test Cases from a Groovy Script test step?
Can't figure out how to do this
Thank You
I realise I'm a little late to the party but i thought I'll expand on this topic by posting my solution to a similar problem. Hope this helps someone in the future. Solution can be scaled to cover more than two test steps, test cases and/or projects. This is also my first post on here so please excuse me in advance for any noob errors. Not the most pretty solution either. It may have some redundant variables. All code blocks comprise the whole solution.
Problem: I want to retrieve responses from two different test steps, each in different test cases, in two diff projects BUT in the same workspace. Got it? great!
SOLUTION:
Variables for first project
Variables for second project
Access Generic Test Step Name One
Run Generic Test Step Name One
Print response to log
Same thing with the second test step
We now have access to both responses as strings which we can play around with however we want. Compare, tokenize etc. There is also
if the response is wanted as xml instead of a string.
For those of us who, like me, were looking for code for the current version of Ready!API
Yes it is possible. From the groovy step you have access to the testRunner which you can use to access everything else in soapUI and yes run test steps in another test case.
So, this code is from the top my my head...
or
Check out this link it might be of some help...