I need help on to add multiple xml nodes in the request based on the data source. As you see as below, I have product that I want to verify the price of products by state and location. State can have only one product or multiple products. Based on this scenario, I would like to add Product Detail xml node based on the data source.
Hi Anonymous, I am really sorry to say about you query, i want to keep my blogs as much possible as Original i don't want to copy things from other sites and post here,
for you query i have searched in Google i got below links this may help you..
I need help on to add multiple xml nodes in the request based on the data source. As you see as below,
ReplyDeleteI have product that I want to verify the price of products by state and location. State can have only one product or multiple products. Based on this scenario, I would like to add Product Detail xml node based on the data source.
Here is sample file that I have created.
VA
${DataSource#P_Location}
${DataSource#P_Name}
${DataSource#P_ProductDetail}
Data set in excel
State Location ProductName ProductDetail Prices
VA Arlington Apple IPhone4 600
Reston Apple Iphone5 700
MA Fairfax Apple IPhone4 600
MD Gaithersburg Apple Iphone4 500
Gaithersburg Apple Iphone5 600
Gaithersburg Apple IPod 495
GA Chantilly Apple IPhone4 300
Please let me know
Thank you
Hi Anonymous,
DeleteI am really sorry to say about you query, i want to keep my blogs as much possible as Original i don't want to copy things from other sites and post here,
for you query i have searched in Google i got below links this may help you..
and thank to stackoverflow.com
http://stackoverflow.com/questions/224926/how-to-insert-move-delete-nodes-in-xml-with-groovy
http://stackoverflow.com/questions/13965056/groovy-node-depthfirst-returning-a-list-of-nodes-and-strings
http://stackoverflow.com/questions/7912987/groovy-append-an-xml-node-to-an-existing-xml-document
Regards,
SunnyBoy
Hi, Can you please post an example on JDBC Request.
ReplyDeletehi Adi,
Deletei have documented the post on it shortly i will post it another blog..
thanks for your time
Hi could you please tell me how to return multiple value from Groovy Script
ReplyDelete