Can application built to run ONLY on Azure virtual desktop be run on Azure Devops pipeline for test automation?

Dev Joshi 5 Reputation points
2023-08-16T11:09:23.52+00:00

Hi,

I am currently working on building test automation framework using selenium. However, the applications I am planning to automate are ONLY accessible on Azure Virtual Desktop cloud.

My question is if I build a test automation pipeline in Azure Devops, will these applications run and be accessible on azure devops hosts?

Regards.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tech-Hyd-1989 5,816 Reputation points
    2023-08-16T11:16:33.5866667+00:00

    Hello Dev Joshi

    Yes, you can build a test automation pipeline in Azure DevOps that will run and be accessible on Azure Virtual Desktop cloud.

    To do this, you will need to create a virtual machine in Azure Virtual Desktop that is configured with the tools and libraries that you need to run your Selenium tests. You can then use Azure DevOps to create a pipeline that will automatically provision the virtual machine, install the Selenium tools and libraries, and run your tests.

    Here are the steps on how to build a test automation pipeline in Azure DevOps that will run and be accessible on Azure Virtual Desktop cloud:

    1. Create a virtual machine in Azure Virtual Desktop that is configured with the tools and libraries that you need to run your Selenium tests.
    2. In Azure DevOps, create a new pipeline.
    3. In the pipeline, select the Azure Virtual Machines task.
    4. In the Azure Virtual Machines task, select the virtual machine that you created in step 1.
    5. In the Azure Virtual Machines task, select the Install Selenium task.
    6. In the Install Selenium task, specify the version of Selenium that you want to install.
    7. In the Install Selenium task, specify the location where you want to install Selenium.
    8. In the pipeline, select the Run Selenium Tests task.
    9. In the Run Selenium Tests task, specify the path to the Selenium test scripts.
    10. Run the pipeline.

    The pipeline will automatically provision the virtual machine, install the Selenium tools and libraries, and run your tests. The results of the tests will be displayed in the Azure DevOps pipeline.

    Here are some additional things to keep in mind:

    • You can use the Azure Virtual Machine Templates feature in Azure DevOps to create a template for the virtual machine that you will use to run your Selenium tests. This can save you time and effort when you need to create new virtual machines for your test automation pipelines.
    • You can use the Azure Virtual Machine Scale Sets feature in Azure DevOps to create a pool of virtual machines that can be used to run your Selenium tests. This can help to improve the performance of your test automation pipelines by running the tests in parallel.
    • You can use the Azure Virtual Machine Scaling Triggers feature in Azure DevOps to automatically scale the pool of virtual machines up or down based on the demand for your test automation pipelines. This can help to save you money by only provisioning the virtual machines that you need.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.