Exit codes returned by RunTests command

The RunTests command returns different exit codes depending on success or failure.

Exit code Description
0 The tests ran successfully.
1 One or more tests failed. For details of the failure, check the JUnit reports and the results database in which the command publishes the results.
2 The specified environment is invalid.
4 The specified project is invalid.
8 A resource could not be executed because it does not exist.
16 The name of a parameter is invalid.
32 The value of a parameter is invalid.
64 The license used is invalid.
128 You do not have appropriate permissions to run the tests.
256 The clone operation cannot find a source environment.
512 There was a problem connecting to the results database.
65536 An unknown error has occurred.