cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in Testcomplete

jsr_78
Occasional Contributor

Error handling in Testcomplete

Hi,



I was trying to do error handling in test complete but it is showing syntax error. I am using normal vb type of error handling



please see below

 On Error goto "xyz" 




xyz:  

 If err.number<>0 then

  log.Message("aaaa")

 End if 



but the above code is not working. Can u please tell me how to do error handling in TC?
1 REPLY 1
YMinaev
Staff

RE: Error handling in Testcomplete

Hi,



VBScript doesn't support this operation. To enable exception handling, use 'On Error Resume Next' as it is described in the "Handling Exceptions in Scripts" help topic.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors