Forum Discussion

han's avatar
han
Contributor
13 years ago

TestExecute options

Is there any way of changing the "behaviour" of TestExecute? We want to:

  1. Change the exit code to only 0/1 (0 the test ran (could have errors in log) / 1 the test failed (unable to run test)

  2. Change the setting (via .ini or regestry) for "Activate after test run"

  • AlexeyK's avatar
    AlexeyK
    SmartBear Alumni (Retired)

    Hi,


    I think, there is no way to change the exit code without modifying the application's sources. So, you have to use an if command and check the exit codes to choose the appropriate execution flow, something like this --


    // Pseudo-code

    If ExitCode = 0 or  ExitCode = 1 or ExitCode = 2 Then

      ' Test was launched

    Else

      If ExitCode = 3 or ExitCode = 1000 Then

        ' Test was not launched

    ...