com.rational.test.ft.services

Interface IMonitor

  • All Known Implementing Classes:
    Monitor


    public interface IMonitor
    The monitor interface containing all execution monitoring methods used by script playback.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int CLEAR_STATE
      since 8.2.2 Flag to clear the recorder status bar
      static int ERROR_MSG 
      static int INFO_MSG 
      static int PAUSE_STATE
      Flag to indicate the pause state
      static int PROCESSING_STATE
      Flag to indicate the processing
      static int READY_STATE
      Flag to indicate the Ready state
      static int RQM_CONN_LOST_STATE
      since 8.2.2 MTA: Flag to indicate adapter connection with RQM server is lost
      static int RQM_CONN_RESTORE_STATE
      since 8.2.2 MTA: Flag to indicate adapter connection with RQM server is restored
      static int STOP_STATE
      Flag to indicate the Stop state
      static int WARNING_MSG 
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void println(int msgKind, java.lang.String message)
      Print the specified message.
      void println(int msgKind, java.lang.String msg, java.lang.Object arg0)
      This method outputs a message with one parameter substitution in the message pattern.
      void println(int msgKind, java.lang.String msg, java.lang.Object[] args)
      This method outputs a message with some number of parameter substitutions in the message pattern.
      void println(int msgKind, java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1)
      This method outputs a message with two parameter substitutions in the message pattern.
      void println(int msgKind, java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
      This method outputs a message with three parameter substitutions in the message pattern.
      void println(int msgKind, java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
      This method outputs a message with four parameter substitutions in the message pattern.
      void println(int msgKind, java.lang.String msg, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
      This method outputs a message with five parameter substitutions in the message pattern.
      void reportError(java.lang.Object errMsg, java.lang.Object[] details, boolean wait)
      Pause the recording session and display an error message in both the monitor and in an error dialog.
      void setMonitorState(int currentState)
      To set the busy flag for the monitor.
    • Field Detail

      • READY_STATE

        static final int READY_STATE
        Flag to indicate the Ready state
        See Also:
        Constant Field Values
      • STOP_STATE

        static final int STOP_STATE
        Flag to indicate the Stop state
        See Also:
        Constant Field Values
      • PAUSE_STATE

        static final int PAUSE_STATE
        Flag to indicate the pause state
        See Also:
        Constant Field Values
      • PROCESSING_STATE

        static final int PROCESSING_STATE
        Flag to indicate the processing
        See Also:
        Constant Field Values
      • RQM_CONN_LOST_STATE

        static final int RQM_CONN_LOST_STATE
        since 8.2.2 MTA: Flag to indicate adapter connection with RQM server is lost
        See Also:
        Constant Field Values
      • RQM_CONN_RESTORE_STATE

        static final int RQM_CONN_RESTORE_STATE
        since 8.2.2 MTA: Flag to indicate adapter connection with RQM server is restored
        See Also:
        Constant Field Values
      • CLEAR_STATE

        static final int CLEAR_STATE
        since 8.2.2 Flag to clear the recorder status bar
        See Also:
        Constant Field Values
    • Method Detail

      • println

        void println(int msgKind,
                     java.lang.String message)
        Print the specified message.
        Parameters:
        msgKind - The type of
        msg - The message
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object[] args)
        This method outputs a message with some number of parameter substitutions in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        args - The arguments used to resolve substitution sequences the message pattern
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object arg0)
        This method outputs a message with one parameter substitution in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        arg0 - The zero argument used to resolve parameter substitution in the message pattern
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object arg0,
                     java.lang.Object arg1)
        This method outputs a message with two parameter substitutions in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        arg0 - The zero argument used to resolve parameter substitution in the message pattern
        arg1 - The one argument used to resolve parameter substitution in the message pattern
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object arg0,
                     java.lang.Object arg1,
                     java.lang.Object arg2)
        This method outputs a message with three parameter substitutions in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        arg0 - The zero argument used to resolve parameter substitution in the message pattern
        arg1 - The one argument used to resolve parameter substitution in the message pattern
        arg2 - The two argument used to resolve parameter substitution in the message pattern
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object arg0,
                     java.lang.Object arg1,
                     java.lang.Object arg2,
                     java.lang.Object arg3)
        This method outputs a message with four parameter substitutions in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        arg0 - The zero argument used to resolve parameter substitution in the message pattern
        arg1 - The one argument used to resolve parameter substitution in the message pattern
        arg2 - The two argument used to resolve parameter substitution in the message pattern
        arg3 - The three argument used to resolve parameter substitution in the message pattern
      • println

        void println(int msgKind,
                     java.lang.String msg,
                     java.lang.Object arg0,
                     java.lang.Object arg1,
                     java.lang.Object arg2,
                     java.lang.Object arg3,
                     java.lang.Object arg4)
        This method outputs a message with five parameter substitutions in the message pattern.
        Parameters:
        msgKind - The type of
        msg - The message
        arg0 - The zero argument used to resolve parameter substitution in the message pattern
        arg1 - The one argument used to resolve parameter substitution in the message pattern
        arg2 - The two argument used to resolve parameter substitution in the message pattern
        arg3 - The three argument used to resolve parameter substitution in the message pattern
        arg4 - The four argument used to resolve parameter substitution in the message pattern
      • reportError

        void reportError(java.lang.Object errMsg,
                         java.lang.Object[] details,
                         boolean wait)
        Pause the recording session and display an error message in both the monitor and in an error dialog.

        This should only be used for severe errors in which the record session has been compromised.

        Parameters:
        errMsg - Error message
        details - Detailed error information.<\br> If null, there are no details
        wait - Whether to wait for the message dialog to close before returning
        See Also:
        com.rational.test.ft.ui.jfc.MessageDoalog#show(Object[],String,int,int,String,boolean)
      • setMonitorState

        void setMonitorState(int currentState)
        To set the busy flag for the monitor.
        Parameters:
        busyFlag -