Alert Context
Each triggered alert has an alert-context that consists of various information about the alert and the event that triggered the alert. The following information is availble.
Alert
The following information about the alert and its event-trigger are available:
Successful | This property is True if a single testcase or all testcases of a testsuite were successful. | Boolean |
Failed | This property is True if a single testcase or at least one testcase of a testsuite failed. | Boolean |
TestResultId | ID of the testresult. | Int64 |
Event | One of the following events that triggered the alert. ExecutionStarted The execution of a single testcase or a full testsuite has started. ExecutionFinished The execution of a single testcase or a full testsuite has finished. It doesn’t matter whether the result was positive or negative. | String |
EventScope | One of the following values indicate in wich context the alert was triggered. Suite The alert was triggered by a testsuite execution. TestInSuite The alert was triggered by a testcase that was run as part of a full testsuite. TestStandalone The alert was triggered by a testcase that was run standalone (not as part of a testsuite). | String |
Environment
Use the Environment-Object to access properties about the BiG EVAL environment or instance.
Environment.DisplayName | Displayname of the BiG EVAL instance that is also displayed in the header-bar of the user interface. | String |
Environment.FrontendUrl | The URL of the BiG EVAL frontend. | String |
Execution (Run)
Each testcase- or testsuite-execution owns a Run-object that provides information about the execution-context.
Run.RunId | ID of the Run. | Int64 |
Run.StartedAt | The point in time when the run started. | DateTime |
Run.FinishedAt | The point in time when the run finished. This property only contains a value in case of an ExecutionFinished-Event. | DateTime (nullable) |
Testcase
When the alert was triggered in the context of a single testcase, the Testcase-Property provides the following information.
TestId | ID of the testcase. | Int32 |
Test.TestId | ID 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, the Testsuite-Property provides the following information.
SuiteId | ID of the testsuite. | Int32 |
Suite.SuiteId | ID of the testsuite. | Int32 |
Suite.Name | Name of the testsuite. | String |
Suite.Description | Description of the testsuite. | String |
Statistics
Each alert-context has a statistics-object that provides the following information.
Statistics.SuccessRate | The successrate of the testcases run. | Single |
Statistics.ExecutedCount | The number of testcases that were run. | Int32 |
Statistics.SuccessfulCount | The number of testcases that were successful. | Int32 |
Statistics.FailedCount | The number of testcases that failed. | Int32 |
Statistics.ErrorCount | The number of testcases that had an error/exception when running. | Int32 |