0
votes

I am being tasked to work on Azure DevOps implementation of an existing legacy application. Application has a QA team which uses 500+ automated test cases. This test cases have been developed using Protractor. All test cases are developed using JavaScript.

With Existing setup, below are the steps taken: a. release pipeline deploys an ASP.NET application to Azure app services b. QA person manually logs on to the VM and initiates the protractor tests.

Can we use any tasks from Azure devOps pipeline to test the same deployed application?

1
Hi @DevTocloud. Is there any update about this ticket? Feel free to let me know if the answer could give you some help. Just a remind of this . Thank you.Kevin Lu-MSFT

1 Answers

1
votes

Can we use any tasks from Azure devOps pipeline to test the same deployed application?

To run the test with Protractor, you can use the Command Line task with node tool to run the test.

If you want to use the Microsoft-hosted agent to run the test, you need to install the appropriate version of the node tool and protractor package before running the test.

Here is an example:

steps:
- task: NodeTool@0
  displayName: 'Use Node 10.x'
  inputs:
    versionSpec: 10.x

- task: Npm@1
  displayName: 'npm install'
  inputs:
    workingDir: EndToEndTests/EndToEndTests
    verbose: false

- script: 'node $(build.sourcesdirectory)/EndToEndTests/EndToEndTests/node_modules/protractor/bin/webdriver-manager update --versions.chrome=xxxx.x.x.x'
  displayName: 'Command Line Script'

- script: |
   
   npm run e2e  #Run the same script as you are on the VM
  displayName: 'Command Line Script'

For more detaield info, you could refer to this blog or this ticket .

On the other hand, if your test cases requires more additional configuration, you can also install a self-hosted agent on the VM.

In this case, the QA person don't need to log on the VM. They could directly run the Pipeline tasks on the self-hosted agent(create on the VM). This is equivalent to testing on the VM.