How to add Environment to the Report? #211
-
I am using this testbeats.config.ts file; {
"project": "brokerpro_sanls",
"run": "E2E Tests",
"targets": [
{
"name": "teams",
"inputs": {
"url": "Webhook",
"title": "Tests Ran For Automation"
},
"extensions": [
{
"name": "hyperlinks",
"inputs": {
"links": [
{
"text": "Tests Ran For Automation",
"url": "($CIRCLE_BUILD_URL)",
"environment": "($ENV_UNDER_TEST)"
}
]
}
},
{
"name": "quick-chart-test-summary"
},
{
"name": "ci-info"
}
]
}
],
"results": [
{
"type": "junit",
"files": ["test-results/junit.xml"]
}
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
@asmarazaq Try using the Examples and details can be found here https://docs.testbeats.com/references/extensions/metadata.html |
Beta Was this translation helpful? Give feedback.
-
@leelaprasadv this solution did not work; {
"project": "brokerpro_sanls",
"run": "E2E Tests",
"targets": [
{
"name": "teams",
"inputs": {
"url": "webhook",
"title": "Tests Ran For Automation"
},
"extensions": [
{
"name": "hyperlinks",
"inputs": {
"links": [
{
"text": "Tests Ran For Automation",
"url": "($CIRCLE_BUILD_URL)"
}
]
}
},
{
"name": "metadata",
"inputs": {
"data": [
{
"key": "environment",
"value": "($ENV_UNDER_TEST)"
},
{
"name": "quick-chart-test-summary"
},
{
"name": "ci-info"
}
]
}
}
],
"results": [
{
"type": "junit",
"files": [
"test-results/junit.xml"
]
}
]
}
]
} |
Beta Was this translation helpful? Give feedback.
-
sorry for bothering you but its not reading the Environment value from circle ci, its just adding the text for value |
Beta Was this translation helpful? Give feedback.
Please refer this doc https://docs.testbeats.com/others/environment-variables.html