Set Environment When Uploading Test Execution Result to Zephyr
We are using Zephyr Test Managment and Automation for Jira Cloud. We were able to setup a test execution via Gitlab CI and upload the result to Zephyr via https://api.zephyrscale.smartbear.com/v2/automations/executions/custom. But one thing that we can't figure out is to set the environment where we did the execution. We've tried passing "environment", "environmentId", "environmentName", etc. But none of them works. Zephyr doesn't seem to recognize them. We can't seem to find any documentation about it as well.
Here's what we tried so far:
{
"version": 1,
"executions": [
{
"source": "My Request",
"result": "Failed",
"testCase": {
"name": "API response has status 200",
"key": "TESTKEY-T123123",
"environment": 3814706,
"environmentId": 3814706,
"environmentName": "QA"
}
}
]
}
And here's what we're always seeing in Zephyr:
Can anyone shed some light as to how we can make it work?