...
It uses the test title to identify the case key [ based on the convention established]
Create a POST request
URL : For cloud the url host would be
https://tcms.aiojiraapps.com/aio-tcms/api/v1
. For Jira server, it would be the native Jira server hostname.Authorization : Please refer to Rest API Authentication to understand how to authorize users. The authentication information goes in the
headers: {'Authorization': '<Auth based on Jira Cloud/Jira Server>'},
POST Body : The body consists of data from the test and result object provided by Playwright. If the case has failed, the error is posted as comments.
If required, the basic example can be extended to upload attachments against the case using the upload attachment API.
Info |
---|
The above is a basic example of what can be done with the hooks and AIO Tests APIs. It is recommended to add appropriate error handling and enhance it based on your automation requirements. |
...
Post execution of a suite, the cucumber.json file can be uploaded either via
AIO Tests REST API ​call using multipart form-data to upload file
...
AIO Tests provides a rich set of APIs for Execution Management, using which users can not only report execution status, but also add effort, actual results, comments, defects and attachments to runs as well as steps.
AIO Tests also provides APIs to create cycles and to add cases to cycles for execution planning.
The basic sample below will show how Cucumber Hooks can leverage the AIO Tests REST APIs to report results.
...