Forum Discussion
Hi nmrao so I'm iterating through a folder that contains .XML files.
Example:
50 .xml files in folder: "C:/test/XML Files"
My SoapUI test currently iterates nicely through each file and submits them to a Soap Webservice:
1. Data Source: Folder (containing .xml files)
2. SOAP Request
3. Data Source Loop (to iterate through and send each file found in the data source folder)
4. Assertions.
Ideally I would like my script to simply delete or move a file that was just submitted in the data source loop.
Thanks!
- nmrao5 years agoChampion Level 3Then you should be able to identify which file you are iterating and delete the same file.
If you there is difficulty in identifying, then set the current file name in test case custom property and read that in the script. - nmrao5 years agoChampion Level 3For that, Need to know how you are looping thru files or how you are setting the current file in to request.
- BernardV5 years agoOccasional Contributor
As set out in my description this is the simple part, I loop through my data source using the data source loop component as per example screenshot attached. I need a technical explenation regarding how to access the current file in use in the data source loop, there is no simpler way of explaining this.
- nmrao5 years agoChampion Level 3Ok, I thought you wrote a script for looping through. Probably, there is no control to access the file name.
I think you should be ok with the current solution you have which not bad either. - BernardV5 years agoOccasional Contributor
I'm busy evaluating Soap UI Pro and Load UI for my company with a POC and this is unfortunatly not an okay solution for me, I will see if their dedicated support get back to me with a solution.
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
HI BernardV,
Have you contacted the Support team via the ReadyAPI Contact form?
https://support.smartbear.com/message/?prod=readyapi
I cannot locate your ticket.
Related Content
Recent Discussions
- 2 days agonastester