Skip to main content

Alerts

Alerts enable you to notify your team (or anyone else you want) when test runs pass, fail, or complete with any status. You can send messages to various places like Slack, Microsoft Teams, OpsGenie, or even webhooks.

Specifying Criteria in Alerts​

Testery uses the SpEL expression language syntax for defining criteria in alerts. For example, you can use environment.key=='foo' to match a specific environment or passCount < 100 or failCount > 100 The following objects/parameters are available for use in expressions:

Test Run​

ParameterData TypeNullable
environmentenvironmentfalse
projectIdLongfalse
endedBooleanfalse
priorityInttrue
passCountIntfalse
failCountIntfalse
ignoredCountIntfalse
totalCountIntfalse
timeoutCountIntfalse
totalTestingTimeIntfalse
maxRunnersIntfalse
hasFlakyTestBooleanfalse
retryFailedTestsBooleanfalse
gitRefStringtrue
branchStringtrue
environmentIdLongfalse
testSuiteIdLongtrue
statusSetByUserBooleanfalse
includeTagsList<String>true
excludedTagsList<String>false
runnerConfigurationIdLongtrue
testFiltersList<String>false
defaultToParallelizeByFileBooleanfalse
testTimeoutSecondsIntfalse
timeoutMinutesIntfalse
recordVideoBooleantrue

Environment​

ParameterData TypeNullable
nameStringfalse
keyStringfalse
archivedBooleanfalse
pipelineStageIdLongtrue
urlStringtrue