How to skip a test in Testcomplete programmatically?

I am trying to programmatically skip a test in TestComplete. What code do I need to write to set the vb script test as not executed in TestComplete? thank you

+4
source share
3 answers

Try Log.Error ("Some error message") and change the Project properties to stop the test on error.

+3
source

Is something like Runner.Halt possible?

The Halt method stops the execution of the script and puts in the test log the line with the error indicated by ErrorMsg .

The method stops the entire test run, that is, for example, if you are performing a test on a project or project package, the method stops the entire project or project package.

+1
source

Log.Error statements cause an error programmatically and fail the test.

Example: -

Log.Error "Any error message"

0
source

Source: https://habr.com/ru/post/1487055/


All Articles