Every triggered alert has an alert-context that contains information about the alert. The following variables are available.
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|
Returns True when the single testcase or at least one of the testcases of the testuite failed.
|TestResultId||ID of the testresult.||Int64|
Contains the event that triggered the alert. The following possibilities are available.
Shows in which context the alert was triggered.
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
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|
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|
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|