Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jan 08, 2020 14:50

This section walks you through integrating your Perfecto project with Azure Pipelines. It assumes that you have an Azure DevOps Account and that you have created a project there. If you need help with setting up an account and creating a project, see the following links:

This example will use a test project based on Quantum- Perfecto's recommended Java framework, although many types of frameworks are supported by Azure Pipelines.

On this page:

Demo video

The following video illustrates the integration process.

Step-by-step instructions

  1. Go to Azure Pipelines and select New Pipeline.

     Click to view image
  2. Specify where your code is. In this example, we point to a GitHub project.

     Click to view image
  3. Click Authorize and enter credentials if prompted.

     Click to view image
  4. Select the relevant repository. You may be prompted for your password again.

     Click to view images

  5. When redirected to the following page (, configure Azure Pipelines in GitHub as per:

     Click to view image

    Scroll down to find this:

     Click to view image
  6. When you have selected the desired repositories, click Approve and Install.
  7. Select the Pipeline you would like to set up.

     Click to view image
  8. Click Show more and select Maven.

     Click to view image

    The YAML file is prepared for you. 

     Click to view image

    The default file looks like the following. You can edit it as needed.

    	# Maven
    	# Build your Java project and run tests with Apache Maven.
    	# Add steps that analyze code, save build artifacts, deploy, and more:
    	- master
    		vmImage: 'ubuntu-latest'
    	- task: Maven@3
    			mavenPomFile: 'pom.xml'
    			mavenOptions: '-Xmx3072m'
    			javaHomeOption: 'JDKVersion'
    			jdkVersionOption: '1.8'
    			jdkArchitectureOption: 'x64'
    			publishJUnitResults: false
    			testResultsFiles: '**/surefire-reports/TEST-*.xml'
    		goals: 'package'

    If you want to integrate the result with the CI Dashboard in Perfecto, delete the line goals: 'package' and import these lines:

    • goals: 'clean install'
    • options: '-Dreportium-job-name=$(Build.DefinitionName) -Dreportium-job-number=$(Build.BuildId) -Dreportium-job-branch=$(Build.SourceBranch)'
  9. At the top right, click Save and Run.

     Click to view image
  10. Wait for Azure to finish.

     Click to view image

    You will see the test running like this:

     Click to view images

  11. In the Perfecto Report Library, check the reports to verify that your tests are running.

     Click to view image