Forum Discussion

bgillcoat's avatar
bgillcoat
New Contributor
13 years ago

Specifying a composite file folder on testrunner.bat

Hi,

I'm running with SoapUI Pro 4.5.0. I created a test suite and saved it as a composite project. What do I specify for this project file on the testrunner.bat command line? I think it should be the folder that represents the composite file.

But, when I specify the path to the composite folder name on the testrunner.bat command line, I receive the message "Missing soapUI project file..".

Is this a bug in Pro 4.5.0 or am I doing this wrong?

5 Replies

  • Hi,

    hmm.. can you show the exact complete command-line invocation and its output?

    thanks,

    /Ole
    SmartBear Software
  • bgillcoat's avatar
    bgillcoat
    New Contributor
    Thanks for the quick reply. Here's the invocation and result.

    PS C:\Program Files\SmartBear\soapUI-Pro-4.5.0\bin> .\testrunner.bat -s""Smoke Test"" -c""SetPatientState"" -I C:\Users\bgillcoat\Desktop\ADX-Automation-soapui-project\
    soapUI Pro 4.5.0 TestCase Runner
    usage: testrunner [options] <soapui-project-file>
    -F Report format. Used with -R. Valid options PDF, XLS, HTML, RTF,
    CSV, TXT, and XML (comma-separated)
    -v Sets password for soapui-settings.xml file
    -t Sets the soapui-settings.xml file to use
    -A Turns on exporting of all results using folders instead of long
    filenames
    -D Sets system property with name=value
    -E Sets the environment
    -G Sets global property with name=value
    -I Do not stop if error occurs, ignore them
    -M Creates a Test Run Log Report in XML format
    -P Sets or overrides project property with name=value
    -R Report to Generate
    -S Saves the project after running the tests
    -a Turns on exporting of all results
    -c Sets the testcase
    -d Sets the domain
    -e Sets the endpoint
    -f Sets the output folder to export results to
    -g Sets the output to include Coverage HTML reports
    -h Sets the host
    -i Enables Swing UI for scripts
    -j Sets the output to include JUnit XML reports
    -m Sets the maximum number of TestStep errors to save for each
    testcase
    -o Opens generated report(s) in a browser
    -p Sets the password
    -r Prints a small summary report
    -s Sets the testsuite
    -u Sets the username
    -w Sets the WSS password type, either 'Text' or 'Digest'
    -x Sets project password for decryption if project is encrypted
    Missing soapUI project file..
  • Hi,

    hmm... I wonder if those double quotes are confusing things - what if you use just

    testrunner.bat -s"Smoke Test" -c"SetPatientState" -I C:\Users\bgillcoat\Desktop\ADX-Automation-soapui-project

    If that doesn't help - what are the contents of the ADX-Automation-soapui-project folder?

    regards!

    /Ole
    SmartBear Software
  • bgillcoat's avatar
    bgillcoat
    New Contributor
    The double quotes are the problem. I had to use double quotes to make windows power shell happy. But when I changed the command like to use single quotes and run from the regular windows cmd shell (not powershell), testrunner ran fine and picked up the composite file.

    Thanks for the support.