How to run ALL test suite from command line (.batch file)

Best practices, code snippets for common functionality, examples, and guidelines.
IvanT
Posts: 4
Joined: Wed Feb 06, 2019 8:00 pm

How to run ALL test suite from command line (.batch file)

Post by IvanT » Wed Feb 06, 2019 8:09 pm

i need help. How to run ALL test suite from command line?
call cd C:\Program Files (x86)\MSBuild\14.0\Bin\
MSBuild.exe C:\MineFrame\Martsinkevich\Geotools\GeoTools\GeoTools.sln
cd C:\MineFrame\Martsinkevich\Geotools\GeoTools\GeoTools2\bin\Debug\
GeoTools.exe
what i do wrong?
when i run exe after build, ranorex run only first test case but when i do same actions with other project it work correctly.
if you can show me example.
excuse me for my bad english

McTurtle
Posts: 254
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: How to run ALL test suite from command line (.batch file)

Post by McTurtle » Thu Feb 07, 2019 3:59 pm

Hello IvanT,

The default run configuration of the exe after the built will be the exact test cases that are selected at the moment when you click "Build". My guess is, that you have just the 1st test case selected:
TCs.png
TCs.png (2.57 KiB) Viewed 227 times
If you have various run configurations, then you should add the /rc parameter after the name of the exe in the batch file to execute the correct one: Does this help?

Regards,
McTurtle