OceanMachine
15 years agoNew Contributor
Command line or batch option for loading request XML?
Hi All,
Firstly, I have tried to search the forums for answers to this already, but I am not sure I am describing what I mean in the correct terminology, and have not managed to find an answer to my problem. Apologies if this has already been answered!
You will have to bear with me, as I am quite new using soapUI.
I have a project file that I can open in soapUI 3.0.1, and a binding set up already with a request underneath that. All the endpoints have been setup so that I can just paste an XML request (SOAP envelope) into the request window, run it and get a response. This is working fine. I am using this to manually send requests to a specific endpoint when required after editing the XML accordingly.
However, I am now in the situation whereby I have lots of requests to run (about 1000+) where I have the SOAP Envelope XML already generated with the correct values in it (in both separate files per-request, and also all in one big file). I am wondering if there is a way to send all of these individual requests without having to manually copy-and-paste each one individually into the request editor and click the 'submit' button?
I don't mind if this is via the command line, or via the GUI, but I can't work out how to achieve this...
I have tried putting multiple requests in the request editor window (one after another), but only the first request seems to be processed each time (looking at the results pane anyway).
Is there a way to specify multiple requests to run in this way? Or can I pass a parameter to one of the command line tools that either has a file name (containing my request XML to submit) or contains the actual XML to run in a string, or something like that?
Sorry for all the questions, but it seems like there must be a way to process requests in a batch, but I just can't find it.
The other thing I have tried is to set up a parameterised test-case with a CSV file supplying the data... the only problem is that there can be multiples of certain elements within the requests, and I am not sure how I can tell the test case what I want to do (i.e. for each x in y, generate another chunk of xml)...
I am hoping my question/plea for help is worded correctly and that you can tell what I am wanting to do.
Sorry if this has been answered a million times, but I did search and couldn't find it.
Thanks in advance!
Firstly, I have tried to search the forums for answers to this already, but I am not sure I am describing what I mean in the correct terminology, and have not managed to find an answer to my problem. Apologies if this has already been answered!
You will have to bear with me, as I am quite new using soapUI.
I have a project file that I can open in soapUI 3.0.1, and a binding set up already with a request underneath that. All the endpoints have been setup so that I can just paste an XML request (SOAP envelope) into the request window, run it and get a response. This is working fine. I am using this to manually send requests to a specific endpoint when required after editing the XML accordingly.
However, I am now in the situation whereby I have lots of requests to run (about 1000+) where I have the SOAP Envelope XML already generated with the correct values in it (in both separate files per-request, and also all in one big file). I am wondering if there is a way to send all of these individual requests without having to manually copy-and-paste each one individually into the request editor and click the 'submit' button?
I don't mind if this is via the command line, or via the GUI, but I can't work out how to achieve this...
I have tried putting multiple requests in the request editor window (one after another), but only the first request seems to be processed each time (looking at the results pane anyway).
Is there a way to specify multiple requests to run in this way? Or can I pass a parameter to one of the command line tools that either has a file name (containing my request XML to submit) or contains the actual XML to run in a string, or something like that?
Sorry for all the questions, but it seems like there must be a way to process requests in a batch, but I just can't find it.
The other thing I have tried is to set up a parameterised test-case with a CSV file supplying the data... the only problem is that there can be multiples of certain elements within the requests, and I am not sure how I can tell the test case what I want to do (i.e. for each x in y, generate another chunk of xml)...
I am hoping my question/plea for help is worded correctly and that you can tell what I am wanting to do.
Sorry if this has been answered a million times, but I did search and couldn't find it.
Thanks in advance!