Predefined properties in config file hooks
The following predefined properties are found in the various config hooks, as described below, and include information that can found in the "info" of the execution. These properties can be used to gather additional information about the test/suite. For example, you can print the value of the projectId property when using the Before Suite hook.
Before Suite Predefined Properties
|
Property Name |
Description |
Uses |
|---|---|---|
|
projectId |
|
|
|
executionId |
|
|
After Suite Predefined Properties
|
Property Name |
Description |
Uses |
|---|---|---|
|
testId |
|
|
|
status |
|
|
|
name |
|
|
|
resultId |
|
|
|
istestContainer |
|
|
|
testStatus |
|
|
|
testCreatorName |
|
|
|
testCreatorEmail |
|
|
|
testOwnerName |
|
|
|
testOwnerEmail |
|
|
|
testLables |
|
|
|
testSuites |
|
|
|
config |
|
|
|
workerId |
|
|
|
startTime |
|
|
|
sessionId |
|
|
|
duration |
|
|
|
failureReason |
|
|
|
failurePath |
|
|
|
success |
|
|
|
resultUrl |
|
|
|
total |
|
|
|
passed |
|
|
|
skipped |
|
|
Before Test Predefined Properties
|
Property Name |
Description |
Uses |
|---|---|---|
|
testId |
|
|
|
isTestsContainer |
|
|
|
parallel |
|
|
|
browser |
|
|
|
gitBranch |
|
|
|
gitCommit |
|
|
|
gitRepoUrl |
|
|
|
runnerVersion |
|
|
|
gridHost |
|
|
|
testimBranch |
|
|
|
canaryMode |
|
|
|
source |
|
|
|
testPlans |
|
|
|
testLabels |
|
|
|
testNames |
|
|
|
testIds |
|
|
|
testConfigs |
|
|
|
testConfigIds |
|
|
|
port |
|
|
|
browserTimeout |
|
|
|
timeout |
|
|
|
newBrowserWaitTimeout |
|
|
|
tunnel |
|
|
|
tunnelPort |
|
|
|
tunnelHostHeader |
|
|
|
runnerMode |
|
|
|
gridId |
|
|
|
gridName |
|
|
|
retentionDays |
|
|
|
sessionType |
|
|
|
companyId |
|
|
|
testData |
|
|
|
isBeforeTestPlan |
|
|
|
isAfterTestPlan |
|
|
|
testDataTotal |
|
|
|
testDataIndex |
|
|
|
baseUrl |
|
|
|
testConfig |
|
|
|
resolution |
|
|
|
id |
|
|
|
name |
|
|
|
browser |
|
|
|
os |
|
|
|
isMobileWeb |
|
|
|
isMobile |
|
|
|
workerId |
|
|
|
exportsGlobal |
|
|
After Test Predefined Properties
|
Property Name |
Description |
Uses |
|---|---|---|
|
testId |
|
|
|
status |
|
|
|
name |
|
|
|
resultId |
|
|
|
isTestsContainer |
|
|
|
config |
|
|
|
parallel |
|
|
|
browser |
|
|
|
gitBranch |
|
|
|
gitCommit |
|
|
|
gitRepoUrl |
|
|
|
runnerVersion |
|
|
|
gridHost |
|
|
|
testimBranch |
|
|
|
canaryMode |
|
|
|
source |
|
|
|
testPlans |
|
|
|
testLabels |
|
|
|
testNames |
|
|
|
testIds |
|
|
|
testConfigs |
|
|
|
testConfigIds |
|
|
|
port |
|
|
|
browserTimeout |
|
|
|
timeout |
|
|
|
newBrowserWaitTimeout |
|
|
|
tunnel |
|
|
|
tunnelPort |
|
|
|
tunnelHostHeader |
|
|
|
runnerMode |
|
|
|
gridId |
|
|
|
gridName |
|
|
|
retentionDays |
|
|
|
sessionType |
|
|
|
companyId |
|
|
|
testData |
|
|
|
isBeforeTestPlan |
|
|
|
isAfterTestPlan |
|
|
|
testDataTotal |
|
|
|
testDataIndex |
|
|
|
baseUrl |
|
|
|
testConfig |
|
|
|
resolution |
|
|
|
id |
|
|
|
name |
|
|
|
browser |
|
|
|
os |
|
|
|
isMobileWeb |
|
|
|
isMobile |
|
|
|
gridInfo |
|
|
|
host |
|
|
|
port |
|
|
|
protocol |
|
|
|
accessToken |
|
|
|
slotId |
|
|
|
gridId |
|
|
|
user |
|
|
|
key |
|
|
|
type |
|
|
|
name |
|
|
|
arn |
|
|
|
workerId |
|
|
|
startTime |
|
|
|
sessionId |
|
|
|
duration |
|
|
|
failureReason |
|
|
|
success |
|
|
| globalParameters | | |