How To Optimize Automation Using Azure DevOps

microsoft azure devops automation

Before doing all these we need to write test cases that contain test steps. The Test Steps describe the execution steps and expected results for each test step. The results of the comparison between the expected and actual outcomes are used to mark each step as pass or fail.

azure devops dashboard
login into dynamics window

Save test case and copy its id.

Now we need to associate this test to our unit project for it we need to place code on the repository. From the test explorer, we need to associate the test as below.

associate the test case
create in azure DevOps’s test case

You need to add the ID of the test case created in azure DevOps’s test case.

test case in ID column directly opens into azure DevOps

You got the link of a test case in ID column which directly opens into azure DevOps.

Here we are ready enough to use one of the most useful features of DevOps which provide true automation. The Azure Pipelines service enables you to automatically build, test, and make your code available to other users. It works with almost any type of language or project. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to continuously test and build your code, and then deliver it. 

Azure Pipeline is its self topic which I will cover in the next blog. Here I would like to discuss the pipeline that will automate the test cases.

create a configuration of test plan in Azure DevOps

Before creating a pipeline we need to create a configuration of test plan in Azure DevOps. The configuration is a platform on which the test code will run. Like which OS to use, which browser to use, etc. All these definitions provided in the configuration.

configuration to run its test cases.

We need to assign a configuration to test suits so suits will use configuration to run its test cases.

add test cases into a pipeline and configure

Now we are good to use the pipeline’s vsTest task add it into a pipeline and configure it below.

Select test plan from the dropdown, select test suits, and select test configuration.

check Test mix contains UI test as it is automation we need to check this.  

Save and queue the pipeline and run it

Save and queue the pipeline and run it. you can see real-time logs as tasks are running.

get a summary of test cases

We can get a summary of test cases also we can get logs of fail test cases. All these features going to provide ease in the development process and help develop more effective softwares.

Comments

  1. X03bet user Avatar

    X03bet is a new experience, and what I’ve seen so far has been pretty good. If you want to try it, you can find it here: x03bet

  2. 911betbr Avatar

    Been messing around on 911betbr a bit lately. Not a huge fan of everything, but they have some interesting niche options. Worth a browse if you’re bored. Check it out 911betbr.

  3. 123betwin Avatar

    Alright mates, 123betwin’s the name and quick bets are the game! Been having a fair go on there lately. Give 123betwin a burl, you might just like it.

Leave a Reply

Your email address will not be published. Required fields are marked *