Page 1 of 1

Running test from command line with parameters

Posted: Mon Mar 05, 2012 6:19 pm
by jamesslater
Hi There

After looking at the following documentation : http://www.ranorex.com/support/user-gui ... html#c3022

I am trying to run a test-case from the command line passing in data parameters. I am using the following format : mytests.exe /testcase:testcase1 /param:name="testname" /param:description="description"

In the testcase I have not assigned a data source, but under data binding I have added paramters with the same names as the variables in the recording, entered a default value, and selected the correct module variable from the drop down list.

Running the test from the command line, runs the correct testcase but only enters the default values I entered into the Data binding window and not the parameters I have passed on the command line?

Am I doing this correctly?

Thanks

Re: Running test from command line with parameters

Posted: Tue Mar 13, 2012 4:03 pm
by jamesslater
Can I have some feedback on this please?

Re: Running test from command line with parameters

Posted: Wed Mar 14, 2012 8:16 am
by Support Team
Hi,

sorry for the late response.
Instead of adding parameters for the specific Test Case you have to add "Global Parameters" for the whole Test Suite, to make them set-able from command line as described in following chapter of our user guide:
Test Suite Settings.

Regards,
Tobias
Ranorex Team

Re: Running test from command line with parameters

Posted: Wed Mar 14, 2012 12:19 pm
by jamesslater
Thanks for you reply Tobias, I will give that a try.