Our documentation site has been updated to AIO Tests Knowledge Base

Azure Devops Pipelines Integration

Continuous Integration/Continuous Deployment (CI/CD) is a set of practices to automate the process of integrating code changes into a shared repository and then deploying those changes to production environments. Continuous Testing is an essential aspect of the CI/CD process, ensuring that code changes are thoroughly tested at every stage of development and deployment.

Azure DevOps is a suite of cloud-based development tools provided by Microsoft, designed to help teams plan, build, test, and deploy software applications efficiently. Azure Pipelines, a component of Azure DevOps, facilitates the implementation of CI/CD pipelines. It allows developers to automate building, testing, and deploying applications across different platforms and environments.

The AIO Tests Jenkins plugin provides another easy-to-use interface to report test results right after the automated tests have run, thus easing the process of reporting results to AIO Tests. The plugin wraps the AIO public APIs to import test results from Cucumber (via cucumber.json), TestNG, JUnit, Newman, NUnit and Robot files. The plugin is available for all Cloud and Data Center instances.

Installing the AIO Tests Publisher Task

On the Azure Devops Marketplace, search for AIO Tests or click here.

image-20240303-100813.png

Click on the Get it Free button.
Select the Organization for which the task has to be used and click on Install

image-20240303-101009.png

Installation should proceed successfully and the following success screen is displayed.

Verify that the extension has successfully been installed in the Organization Settings.

Setting up Pipeline Task

  1. Search for the AIO Tests Publisher Task in the Pipeline Editor

  2. Add the Authentication details
    - For Cloud hosting, add the API Key without the AioAuth prepend text, generated from My Settings → API Keys.

- Jira DC : Add the Jira DC URL of your firm and add the PAT Token.

  1. Add the Project and Cycle Preferences information. Either a new cycle can be created or an existing cycle can be reused in a build.

  2. Select Reporting Preferences.
    - Report results as a Batch : A batch process would be queued in AIO Tests to process bigger files and a batch id will be returned (Batches run typically every 2 minutes). The batches are accessible from the Cycle screen of the cycle being used for the build.
    For bigger files, it is recommended to select the Batch option.
    - File Path : Add the path of the file from the base folder. If more than one file needs to be picked, then regular expression of *.json or * or *.xml can be used

  3. Click Add. The following yaml task gets added to the pipeline.

  4. Trigger the pipeline. If files are found with the specified results file path, then results should be reported to AIO Tests in they cycle