Forum Discussion
Thank you for such a detailed reply.
I have done the testrun successfully and Summary was:
SoapUI 5.2.1 TestCaseRunner Summary
-----------------------------
Time Taken: 14236ms
Total TestSuites: 0
Total TestCases: 1 (0 failed)
Total TestSteps: 1
Total Request Assertions: 3
Total Failed Assertions: 0
Total Exported Results: 1
---------------------------------------------
However, I actually wanted:
- I have configured the authentication/credential etc. and a project was also created in soapUI.
- I have a request signal xml kept in /tmp/ folder of my system which is created dynamically during a particular process.
- There are three SOAPActions (checkstatus, finished, etc.) and the signal XML will also vary according to the SOAPAction.
- I want to POST this signal XML using command line to the Host for a particular SOAPAction.
- In return I should GET a response signal XML.
Please clarify whether I can achieve this using the command line operation. Once I configured a project in SoapUI (using GUI), I do not want to use the GUI further.
If so, kindly provide the command line to POST?
You need to:
1. On SoapUI "REST" XML request, set the method to POST
2. Create a Groovy Script to run your XML Request and store your XML Response into whaterever fomat you want (value, a separate file, etc)
3. Then use the the test runner using a command line to execute your Groovy script.
- done
- rishi_t10 years agoNew Contributor
Thanks for your reply.
I have found out another work around. I have listed it here.
- I have saved the project xml
- Whenever needed include each request automatically in the proper location in this project xml using XSLT.
- POST the request using testrunner.sh
- Extract the relevant information from the response xml.
If there is any other easy method than this, kindly let me know.
Thank you so much for your support so far.