Printer FriendlyEmail Article Link

Abacus: How do I get the error messages using tcl API?

Environment/Versions

Users are using Tcl automation to run tests in Abacus.  They would like to know how to extract the error information from the system.

Answer

When users encounter an error during a test, this error will be reported in the event window.  With Tcl automation, the following two API can be used to get the error events:-

 1.  ::aba::ApiResults::GetEventsCount

2.  ::aba::ApiResults::GetEvent [number]

 The first API will let users know how many events are there output by the system.  The second API will allow users to get the content of the error (in text form).    There is a detailed descriptions of the two API in the Tcl user manual.


Product : Abacus,Automation,6.20,6.11 and below