Bitbucket is a Git-based source code repository hosting service owned by Atlassian. It also offers the ability to build, test and deploy code through it’s integrated CI/CD service, Bitbucket Pipelines.
AIO Tests, today, doesn’t provide a native support for Bitbucket, but the results from supporting frameworks can still be uploaded using AIO Tests REST APIs.
AIO Tests supports Junit and TestNG xmls and also supports the Cucumber json reports.
Add Variables. In the below example, we have parametrized the Authorization token, the Jira project and the Cycle which needs to be updated
Run the pipeline. The pipeline will run and at the end of the run, the cucumber.json file will be posted to AIO Tests for marking results.
Decoding the Curl command
The curl command used reads the environment variables and sets the properties available for configuration in the Import Results API exposed by AIO Tests.
createNewRun - Creates a new run for each case
addCaseToCycle - If case is not already existing in the cycle, then the case is added to the cycle. False will mark such a case in failures
createCase - If a key or automation key is not found in the tags, then a new case will be created if set to true.
bddForceUpdateCase - (only applicable for Cucumber) If the automation results file has different steps then the mapped case in AIO Tests, then they would be overwritten with the one from the results file if the value is set to true.
In our example, we have used framework as Cucumber, however, it should change based on the framework being used.