-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add Labels to a new Test Execution? in Cloud #111
Comments
I don't have access to Jira Xray to check how to add a label field, but I assume it should be added as {
"info": {
"summary": "Execution of automated tests for release v1.3",
"description": "This execution is automatically created when importing execution results from an external source",
"user": "admin",
"startDate": "2014-08-30T11:47:35+01:00",
"finishDate": "2014-08-30T11:53:00+01:00"
},
"tests": [
{
"testKey": "DEMO-25",
"start": "2014-08-30T11:47:35+01:00",
"finish": "2014-08-30T11:50:56+01:00",
"comment": "Successful execution",
"status": "FAIL",
"customFields": [
{
"id": 1,
"value": "true"
},
{
"id": 2,
"value": "13400"
},
{
"id": 3,
"value": "Test instance is refreshed"
}
]
}
] I can implement this if that's what you need. |
thanks for your help @fundakol . Based on the xray cloud documentation, I do not see "Labels" in the list of Test Execution custom fields. However, the field "Labels" is part of Execution, as shown in the snapshot attached. In the meantime can you add the field "Test Environments"? It is included in Test Execution custom fields. |
@fundakol: This repo https://github.com/mikepenz/xray-action is able to pass Labels to Xray. testExecution.json test.json { |
Test environments filed is already added (just check the readme), you can set it via environment variable:
or with the hook: def pytest_xray_results(results, session):
results["info"]["testEnvironments"] = [ "iOS", "Android" ] |
Running pytest with:
--jira-xray --testplan --cloud
After running command, I get the new Test Execution in my Test Plan. However, is there a way to add the field "Labels" ??
The text was updated successfully, but these errors were encountered: