Forum Discussion

TommyTester's avatar
Occasional Contributor
7 years ago

Command Line Test Runner running against the wrong environment

I'm running a test suite through the command line test runner, but the test cases are being executed against the incorrect environment.


The command line being used is:


"%ProgramFiles%\SmartBear\ReadyAPI-2.1.0\bin\testrunner.bat" "C:\Tests\Ready API\Project\" "-EUAT Primary" "-fC:\Tom\%dateandtime%" "-RTestSuite Report" -FPDF -s"Test Suite 1"


The environment has been specified as "UAT Primary", however when the test cases are execured they are run agaisnt another environment - "Dev Test". This occurs intermittently and I believe may be related to the environment that is set in settings.xml.ight be happening?



Any ideas why this 

1 Reply

  • lakshmiarun's avatar
    SmartBear Alumni (Retired)



    Thank you for posting in our forum.


    Are you using a licensed version of ReadyAPI?


    If your environment and project name are correct in the Testrunner, then it should work(check on the project name). I tried it from end, I can't reproduce the issue. If you are using a licensed version and everything seems right from your end, please log a ticket with our support team and we will take it from there.


    To use environments in your tests, you need a SoapUI Pro license.