Alert-Context

    Every triggered alert has an alert-context that contains information about the alert. The following variables are available.

    Alert

    The following information about the alarm it the trigger is available.

    Successful Returns True when the single testcase of all testcases of the testuite are successful. Boolean
    Failed

    Returns True when the single testcase or at least one of the testcases of the testuite failed.

    Boolean
    TestResultId  ID of the testresult. Int64
    Event

    Contains the event that triggered the alert. The following possibilities are available.

    • ExecutionStarted
      The execution of a single testcase or a whole testsuite has started.
    • ExecutionFinished
      The execution of a single testcase of a whole testsuite has finisehd. It doesn't matter whether the result was postive or negative.
    String
    EventScope

    Shows in which context the alert was triggered.

    • Suite
      The alert was triggered by a testsuite that was executed.
    • TestInSuite
      The alert was triggered by a testcase that was executed within a testsuite.
    • TestStandalone
      The alert was triggered by a testcase that was executed standalone.
    String

     

    Execution (Run)

    For every testcase- or testsuite-execution there exists a Run-object that contains information about the execution.

    Run.RunId ID of the testrun. Int64
    Run.StartedAt Point in time when the run was started. DateTime
    Run.FinishedAt Point in time when the run has finished. The value could be null when the run didn't finished when the alert was triggered. DateTime
    (nullable)

     

    Testcase

    When the alert was triggered during a single testcase execution, the following information is available.

    TestId ID or number of the testcase. Int32
    Test.TestId ID or number of the testcase. Int32
    Test.Name Name of the testcase. String
    Test.Description Description of the testcase. String
    Test.MethodUniqueName Unique name of the testmethod used in the testcase. String

     

    Testsuite

    When the alert was triggered in the context of a testsuite execution, the following information is available.

    SuiteId ID or number of the testsuite. Int32
    Suite.SuiteId ID or number of the testsuite. Int32
    Suite.Name Name of the testsuite. String
    Suite.Description Description of the testsuite. String

     

    Statistics

    There are statistical information available on every alert.

    Statistics.SuccessRate Successrate of the testcases that were executed. Single
    Statistics.ExecutedCount Amount of testcases that were executed. Int32
    Statistics.SuccessfulCount Amount of successful testcases. Int32
    Statistics.FailedCount Amount of failed testcases. Int32
    Statistics.ErrorCount Amount of testcases that throw an error and therefore couldn't complete. Int32

     

    Was this article helpful?
    0 out of 0 found this helpful

    Comments