Contributions
How to pass data from response XML to request XML as input with groovy script
Hi, I have a webservice which returns list of all players. the response is as below.... Tendulkar Ganguly Dravid Result data is : Tendulkar, Ganguly and Dravid. I want to pass each name as input to another webservice which gives me the age of each player. i.e I want to pass all three values one after the other to another webservice which takes Player name as input and gives me the age of that particular players. Could you please tell me the code how can I do this with Groovy script The input XML for getAgeof Player webservice is Tendulkar and response is : 32 I want to automate using Groovy script. After getting results from webservice , I want to pass them to another and run automatically one after the other. Please kindly share me the code Appreciate your help. Thanks SYamala15 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.2KViews0likes2CommentsRe: How to change a value for a Global property value from a groovy script
Thankyou for your reply... But still I am facing the problem while executing...I am getting following error. "groovy.lang.MissingPropertyException:No such property: SoapUI for class:" Could you please look into it. Thanks15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsHow to change a value for a Global property value from a groovy script
I have created a Global value (from File->Preferences->Global Properties), I have set a certain value to it. I could able to access the value from a Groovy Script def Value = context.expand( '${Value}' ) From another groovy script I would like to modify the value and set the new value to the Global value . How can I do this with groovy scripts. Thanks Syamala15 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.3KViews0likes4CommentsHow to Access a variable across the groovys scripts in SoapUI and SoapUI Pro.
If a variable is defined in one groovy script, I am not able to acess the same in another groovy script. Please let me know how to access a variable across the scripts in Soap UI as well as Soap UI Pro. Thanks Syamala15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes0Comments