Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

Reading batch file ERRORLEVEL into TestComplete

$
0
0

We are using TestComplete to run a batch file and would like to do different actions depending on the outcome of the script in the batch file. I can get %ERRORLEVEL% from the batch file (0, 1, 2, etc.) but how can I read in this into TestComplete?

 

Ideally, I would prefer to do something like this:

 

If %ERRORLEVEL% = 0

    Do Condition A

Else If %ERRORLEVEL% = 1

    Do Condition B


Viewing all articles
Browse latest Browse all 20990

Trending Articles