interface XTestListener in module com::sun::star::test::

(Global Index)

Syntax

interface XTestListener : com::sun::star::lang::XEventListener ;

Description

is used to handle errors/exceptions and warnings during tests.

Method Summary

notifyError gets called when an error occurs while performing an test. If the error results from an exception, the exception can be found in the Exception member of the TestEvent

notifyWarning gets called when an warning occurs while performing an test.

protocol can be called by the broadcaster to inform the listener about the progress of the test. The listener can use this information for example to write it into a test protocol file.

Method Details



notifyError

Syntax

void notifyError (
com::sun::star::test::TestEvent evt );

Description

gets called when an error occurs while performing an test. If the error results from an exception, the exception can be found in the Exception member of the TestEvent

Parameter evt

This property contains the TestEvent object that describes the event source and error description.

notifyWarning

Syntax

void notifyWarning (
com::sun::star::test::TestEvent evt );

Description

gets called when an warning occurs while performing an test.

Parameter evt

This property contains the TestEvent object that describes the event source and warning description.

protocol

Syntax

void protocol (
com::sun::star::test::TestEvent evt );

Description

can be called by the broadcaster to inform the listener about the progress of the test. The listener can use this information for example to write it into a test protocol file.

Parameter evt

This property contains the TestEvent object that describes the protocol message.
Top of Page