Forum Discussion

jaymin9999's avatar
jaymin9999
New Contributor
12 years ago

soapui command line

Hi Guys,

I am having an issue while running soap ui commandline. Free version 4.0.1

Below is my script. I am using free version of SOAP. If i launch test runner from SOAP then it runs fine but when I grab the same command line info from testrunner and try to run it from commandline, I get Project file not found error.

Here is my script:
cd %SOAPUI_HOME%\bin testrunner.bat -e%1 -s"TestSuite" -c"TestCase" -utest -pXXXX -wText -r -a -f%SOAPUI_HOME%\Reports -I -t%WORKSPACELOC%\soapui-settings.xml %WORKSPACELOC%\soapui-project.xml

I have set BOTH SOAPUI_HOME and WORKSPACELOC environment variables properly. Any idea why it could be failing. When I run this I get missing project file...I have given the project file at the end as well.

Any help would be greatly appreciated. Thank You.

4 Replies

  • swathit's avatar
    swathit
    Occasional Contributor
    Hi,

    I'm looking for the resouces in online for how to run loadtest from command line but no luck yet..
    Are u trying to run your functional test cases or load testcase? Pls let me know..i have to run my load test from commandline..any inputs are greatly appreciated.. Thanks
  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    you would try to decrease parameters and can then be run using some parameters that you want if pass.
    %SoapUIPath%\testrunner -r -sTestSuite %TestScriptPath%\TestProject-soapui-project.xml -PXXX=XX


    SoapUIPath:
    C:\Program Files\eviware\soapUI-4.0.0\bin       //installation path of soapUI

    TestScriptPath:
    C:\SoapUI                                                   //where your project store is




    thanks,