Forum Discussion

mcgintym's avatar
mcgintym
Occasional Contributor
12 years ago

Property transfer from a groovy step to another step

I am attempting to take a result from a groovy script that traverses oAuth hits our webservices and then returns a result. The result(s) I would like to parse and make available to another test step with in the same test case. My entire test scenario
1) Create oAuth request and passin credentials and return results
2) capture results from the web service response
3) run JDBC call and capture data base results
4) Transfer results from step#2 to a property and compare to similar fields returned from step 3#


Currently Its unclear how to take the results from step #2 and save them. When I insert a log.info(response); I can see the return data however how do I save this off in soap ui so that I can compare the comparable field from step 3?

Script
def response = g.getData(URL+apiCall,accept,consumerKey,consumerSecret,tokenKey,tokenSecret)

log.info(response);


Any help would be appreciated

2 Replies