Integrate Scriptless Web with Azure DevOps Pipeline

This section walks you through integrating your Scriptless Web project with Microsoft Azure DevOps Pipeline. The process assumes the following:

  • You have an Azure DevOps account.

  • You have created a project in this account.

If you need help with setting up an account and creating a project, see the following links:

Important: This integration is an example of how you can leverage the Perfecto platform. It is not a supported part of Perfecto.

Watch this short video to view the integration flow. Detailed steps follow.

To integrate Scriptless Web with Azure DevOps Pipeline, perform the following steps.

In Scriptless Web:

  1. Open the project that you want to integrate.

  2. Click the menu icon and select Jobs.

  3. In the Jobs view, click the job you want to integrate.

  4. In the Job view, on the left, click CI/CD Integration.

  5. If needed, generate a security token.

  6. Click the COMMAND LINE tab and keep it open. It includes the cmdlets you will need later.

In Azure DevOps:

  1. On the project's Summary page, click manage your services.

  2. Under Project Settings, on the Overview tab, scroll down to the Azure DevOps services section and turn on the Repos toggle.

  3. Return to the project's Summary page. In the left pane, you see that Repos are now present.

  4. In the left pane, click Pipelines, and then select Create Pipeline.

  5. Under Where is your code?, select Azure Repos Git, and then select a repository. If you do not see a repo, you may need to create one.

  6. Under Review your pipeline YAML, click Show Assistant.

    In the Search tasks field, enter cmd, and then select Command line from the list of results.

  7. In the code snippet on the left, under steps:, delete any unnecessary steps.
  8. In the right pane, in the Script field, do the following:
    1. Delete all content.
    2. Enter the commands listed in Scriptless Web on the COMMAND LINE tab:d

      Copy

      From the Prerequisites section

      npm install -g scriptless-cli
      Copy
      From the Procedure section
      scriptless-cli run --cloudURL "https://<your_cloud>.app.perfectomobile.com" --securityToken "<your_security_token>" -p "Demo" -v "Base" -j "AzureIntegrationJob" -l "Chrome 1024x768" -e "A_Perfecto_Site"
  9. Click Save and run. This steps injects the steps into the YAML script on the left.
  10. Click Save and run again to save the YAML script.

    You can now track the execution and see the report with video, screenshots, and steps inPerfecto Smart Reporting.