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:
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:
-
Open the project that you want to integrate.
-
Click the menu icon and select Jobs.
-
In the Jobs view, click the job you want to integrate.
-
In the Job view, on the left, click CI/CD Integration.
-
If needed, generate a security token.
-
Click the COMMAND LINE tab and keep it open. It includes the cmdlets you will need later.
In Azure DevOps:
-
On the project's Summary page, click manage your services.
-
Under Project Settings, on the Overview tab, scroll down to the Azure DevOps services section and turn on the Repos toggle.
-
Return to the project's Summary page. In the left pane, you see that Repos are now present.
-
In the left pane, click Pipelines, and then select Create Pipeline.
-
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.
-
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. - In the code snippet on the left, under steps:, delete any unnecessary steps.
- In the right pane, in the Script field, do the following:
- Delete all content.
Enter the commands listed in Scriptless Web on the COMMAND LINE tab:d
CopyFrom the Procedure sectionscriptless-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"
- Click Save and run. This steps injects the steps into the YAML script on the left.
-
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.