Forum Discussion
nmrao
Champion Level 3
Apoorva6,
I know it is late.
Do you mean to add more "oewServiceDetails" elements?
How do you want to fill data? from external file ? or any dummy data would be fine?
First of all are you still looking for the answer?
I know it is late.
Do you mean to add more "oewServiceDetails" elements?
How do you want to fill data? from external file ? or any dummy data would be fine?
First of all are you still looking for the answer?
Apoorva6
8 years agoFrequent Contributor
Hi Rao,
yes, I am still looking for an answer. I need to fill the data from external file. In external xls file, I have the <oew:inventoryId> values in first column and according to its total numbers, we need so many blocks of oewServiceDetails.
Only <oew:inventoryId> should be unique in oewServiceDetails.
If my xls has 600 <oew:inventoryId> then my script should be able to fetch all 600 values , make a request with 600 blocks and then run the request.
- nmrao8 years agoChampion Level 3Does it really have to be excel file? A comma separated (csv) file will also do? Because that is more simplest to deal with. Of course, you can open the csv file in excel sheel as well if some wants.
Then can you please send the sample data (preferably csv) file (you could save your excel file as csv file as well).- Apoorva68 years agoFrequent Contributor
CSV will work for me. attached is sample file with 20 unique oewInvId's. In this case script should read number of InvId and should prepare one final request of 20 blocks and run the step.
Thanks for the reply.
- nmrao8 years agoChampion Level 3The file you attached is the entire data or any more data is missing? Because the solution would directly depends on the data.
Anyways, you have a look at the below thread which I did some time ago. May be if you still have issue, then share the full sample data.
https://stackoverflow.com/questions/37956927/groovy-reference-repeating-nodes-values-in-xml-with-xpath-interpolation-misuse/37958846#379588
Related Content
- 12 years ago
- 5 years ago
- 9 years ago
- 4 years ago
Recent Discussions
- 15 years ago