Forum Discussion

SOAPBegUser's avatar
SOAPBegUser
Occasional Contributor
4 years ago
Solved

How to run a single request from the command line

Hi,

 

I read some of the documentation for using TestRunner.bat.  But it seems to apply to an entire test suite.

 

I'd just like to run a single request like a document update or a query, inside a project.  Is that possible?

 

 

 

3 Replies

  • SOAPBegUser's avatar
    SOAPBegUser
    Occasional Contributor

    Alright, I went ahead and set up test cases that ran the request, using the instructions from

     

    https://www.youtube.com/watch?v=3PlXWtTswug

     

    and

     

    https://www.youtube.com/watch?v=nSvCa_Dyf0w

     

    , and also played with Groovy for the first time in 5 years.

     

    Everything is good.  I'll play with the project, and look at more Youtube videos, in order to find out how to run the Groovy step from the Command line.

     

    Thanks for making this easy and fun, Soap UI developers.

    • TNeuschwanger's avatar
      TNeuschwanger
      Icon for Champion Level 3 rankChampion Level 3

      Hello SOAPBegUser 

       

      you can review the documentation for the command line interface...

      https://www.soapui.org/docs/test-automation/running-from-command-line/functional-tests/

       

      The smallest granularity you can get is to run an individual test case.  You would just have to have one test step in the test case to get only one step to run.  Use the parameters to define what test suite contains your desired test case and use the parameters to define what test case contains your desired test step.

       

      Regards,

      Todd

  • You can use this to run single SOAP requests from the command line:

    https://github.com/marcemv90/soap-cli