Command Line argument 'tcdr' not working
Posted: Thu Feb 12, 2015 5:41 pm
I'm unable to get the command line argument 'tcdr' working, and I'm not sure if I'm calling it correctly. I am currently using Ranorex 5.2.2.21596.
What I want to do is run a specific test case on only specific rows from the data spreadsheet.
If I call the test case without specifying any specific rows, the specific test case runs correctly on all rows shown in the data spreadsheet.
Example:
- test suite .exe = MyTestSuite.exe
- specific test case = MyTestCaseThree
- global parameter = globalParam
- command used: > MyTestSuite.exe /pa:globalParam=MyParam /tc:MyTestCaseThree
Result: MyTestCaseThree runs on all 12 rows shown in the data spreadsheet as expected.
But when I use the 'tcdr' argument, and try to run my specific test case, the very first test case is executed. It's almost as though I've got something wrong in my command line argument, where it's not recognized, and therefore wants to run all test cases within the test suite.
Example:
- test suite .exe = MyTestSuite.exe
- specific test case = MyTestCaseThree
- global parameter = globalParam
- command used: > MyTestSuite.exe /pa:globalParam=MyParam /tcdr:MyTestCaseThree=1-2
Result: MyTestCaseOne (which is the first test case) starts to run. I'm expecting MyTestCaseThree to run on rows 1 and 2 only.
Am I making the call correctly? Otherwise, how can I run a specific test case from the command line on specific rows from the data spreadsheet?
Thank you in advance for any help you can provide.
What I want to do is run a specific test case on only specific rows from the data spreadsheet.
If I call the test case without specifying any specific rows, the specific test case runs correctly on all rows shown in the data spreadsheet.
Example:
- test suite .exe = MyTestSuite.exe
- specific test case = MyTestCaseThree
- global parameter = globalParam
- command used: > MyTestSuite.exe /pa:globalParam=MyParam /tc:MyTestCaseThree
Result: MyTestCaseThree runs on all 12 rows shown in the data spreadsheet as expected.
But when I use the 'tcdr' argument, and try to run my specific test case, the very first test case is executed. It's almost as though I've got something wrong in my command line argument, where it's not recognized, and therefore wants to run all test cases within the test suite.
Example:
- test suite .exe = MyTestSuite.exe
- specific test case = MyTestCaseThree
- global parameter = globalParam
- command used: > MyTestSuite.exe /pa:globalParam=MyParam /tcdr:MyTestCaseThree=1-2
Result: MyTestCaseOne (which is the first test case) starts to run. I'm expecting MyTestCaseThree to run on rows 1 and 2 only.
Am I making the call correctly? Otherwise, how can I run a specific test case from the command line on specific rows from the data spreadsheet?
Thank you in advance for any help you can provide.