Contributions
Groovy Script to Add New Property ?
Hi, Is that possible to add a new property using groovy script? I have added a "Properties(0)" test step without any property in it, is that possible to use groovy script to add a property and its value? Thanks, ArioSolved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes1CommentRe: Load records from Datasource[Excel] into SOAP Request as multiple XML nodes
Hi, So I've got 3 rows in datasource[excel] column A: book_name book1 book2 book3 How do i read them in groovy script? So that I can do loop in groovy.. Please let me know Thanks, Ario8 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.1KViews0likes1CommentRe: Load records from Datasource[Excel] into SOAP Request as multiple XML nodes
Hi, Thank you for your reply, I think your solution will work if only the XML already had 2 nodes. Please correct me if I'm wrong? Sorry for being not clear, so my question is how to create a dynamic nodes the XML based on the datasource[excel] records? So, in the excel I've got: person_name John Smith Linda Howard Joe Bloggs My current SOAP UI XML is below: <xml> <persons> <person> </person> </persons> </xml> I wanted the end result to look like below: <xml> <persons> <person>John Smith</person> <person>Linda Howard</person> <person>Joe Bloggs</person> </persons> </xml> Then finally to trigger the 'updated' XML request8 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.1KViews0likes1CommentLoad records from Datasource[Excel] into SOAP Request as multiple XML nodes
Hi, So I have an excel file with 2 rows of person names. person_name John Smith Linda Howard I have loaded the excel file into DataSource, but then I wanted to load the result into the SOAP Request so the SOAP request will be like this: <xml> <names> <name> <person>John Smith</person> </name> <name> <person>Linda Howard</person> </name> </names> </xml> How can I do that? I'm new to SOAP UI and not familiar with Groovy Script :( Can you please help? Thanks, ArioSolved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.2KViews0likes5Comments