13 years ago
Checking the testresult errorcode
I am using testcomplete with a batch file command line:
IF ERRORLEVEL 3 GOTO CannotRun
IF ERRORLEVEL 2 GOTO Errors
IF ERRORLEVEL 1 GOTO Warnings
IF ERRORLEVEL 0 GOTO Success
An email is sent to our department based on the error levels with the result status
The problem is that i alway's get the result success, even if the last test has failed. See the attached file for more information.
Since we want to run alot of tests via testcomplete i would like to arrange the test order, enable/disable test in the testcomplete project and do not want to use a seperate command for each test.
I would like to know why i get the result success whilst my last test, as visible in the testresult has failed?
And is there a way to check the whole testproject for errors and give the ERRORLEVEL 3 back via batch scripting?
Thnx
Using: TestComplete 9 Enterprise edition
IF ERRORLEVEL 3 GOTO CannotRun
IF ERRORLEVEL 2 GOTO Errors
IF ERRORLEVEL 1 GOTO Warnings
IF ERRORLEVEL 0 GOTO Success
An email is sent to our department based on the error levels with the result status
The problem is that i alway's get the result success, even if the last test has failed. See the attached file for more information.
Since we want to run alot of tests via testcomplete i would like to arrange the test order, enable/disable test in the testcomplete project and do not want to use a seperate command for each test.
I would like to know why i get the result success whilst my last test, as visible in the testresult has failed?
And is there a way to check the whole testproject for errors and give the ERRORLEVEL 3 back via batch scripting?
Thnx
Using: TestComplete 9 Enterprise edition