Azure DevOps Test Cases Tutorial: Master Automated Testing

Embarking on your Azure DevOps test case management journey? You're in the right place. Azure DevOps offers a comprehensive suite of tools to streamline your software development lifecycle, and creating effective test cases is a crucial part of this process. Let's dive into a step-by-step tutorial on how to create, manage, and run test cases in Azure DevOps.

Azure DevTest Labs documentation
Azure DevTest Labs documentation

Before we start, ensure you have an Azure DevOps project set up and you're familiar with its basic navigation. If not, check out the official Azure DevOps documentation for a quick start guide.

UI testing for Windows apps with WinAppDriver and Appium - Azure DevOps | Microsoft Community Hub
UI testing for Windows apps with WinAppDriver and Appium - Azure DevOps | Microsoft Community Hub

Creating Test Cases

Let's begin by understanding how to create test cases in Azure DevOps.

Azure DevOps Tutorial for Beginners
Azure DevOps Tutorial for Beginners

Azure DevOps allows you to create test cases at the test suite level. A test suite is a container for test cases, making it easier to organize and manage your tests.

Creating a Test Suite

Microsoft Azure Fundamentals Preparation Resources
Microsoft Azure Fundamentals Preparation Resources

To create a test suite, navigate to your project's 'Test' hub, then select 'Test Suites'. Click on 'New test suite' and fill in the required details like name, description, and area path.

Once created, you can add test cases to this suite. Click on the suite, then select 'Add test case' from the toolbar.

Creating Test Cases

Microsoft Azure Tutorial for Beginners
Microsoft Azure Tutorial for Beginners

In the 'Add test case' dialog, provide a name, description, and steps to reproduce the test. You can also link work items, attach files, and set other parameters.

After creating your test case, you can view and edit it by selecting it from the test suite. Here, you can also run the test case, view its history, and manage its parameters.

Managing Test Cases

the daily devops engineer commands are displayed in this diagram, which shows how to use them
the daily devops engineer commands are displayed in this diagram, which shows how to use them

Azure DevOps provides several ways to manage your test cases efficiently.

You can filter test cases based on various parameters like status, priority, or assigned to. You can also sort them by name, ID, or last updated date.

8 Tips to Prepare for Azure DevOps Certification Like a Pro
8 Tips to Prepare for Azure DevOps Certification Like a Pro
CICD In DevOps
CICD In DevOps
Software Testing Life Cycle
Software Testing Life Cycle
Tech Fusionist (@techyoutbe) on X
Tech Fusionist (@techyoutbe) on X
Update Work Items with Templates in Azure Boards - Azure Boards
Update Work Items with Templates in Azure Boards - Azure Boards
I spent 3 years building CI/CD pipelines at Microsoft. They transformed… | Julio Casal | 16 comments
I spent 3 years building CI/CD pipelines at Microsoft. They transformed… | Julio Casal | 16 comments
Build Smarter Serverless Automation with Azure Functions
Build Smarter Serverless Automation with Azure Functions
Azure DevOps Project with Azure Kubernetes Service(AKS)
Azure DevOps Project with Azure Kubernetes Service(AKS)
the user's guide to installing and configuring asus entra ii troubleshooting checklist
the user's guide to installing and configuring asus entra ii troubleshooting checklist
Introduction to Azure DevOps for Machine Learning | Microsoft Community Hub
Introduction to Azure DevOps for Machine Learning | Microsoft Community Hub
the 5 devops - kodakoud poster shows how to use it for learning
the 5 devops - kodakoud poster shows how to use it for learning
How Azure Certification Training Helps Build Cloud Skills
How Azure Certification Training Helps Build Cloud Skills
#qa #qualityassurance #testing #selenium #automationtesting #manualtesting #qajobs #interviewprep #careergrowth | Chetanya Chhaparwal
#qa #qualityassurance #testing #selenium #automationtesting #manualtesting #qajobs #interviewprep #careergrowth | Chetanya Chhaparwal
Azure DevOps to Zephyr Essential: The Hidden Challenges of Test Migration (and How to Solve Them)
Azure DevOps to Zephyr Essential: The Hidden Challenges of Test Migration (and How to Solve Them)
Acceptance Testing Explained: Types, Process & Best Practices
Acceptance Testing Explained: Types, Process & Best Practices
the diagram shows how to use different types of data in an organization's workflow
the diagram shows how to use different types of data in an organization's workflow
API gateway use cases
API gateway use cases
Cloud DevOps Best Practices
Cloud DevOps Best Practices
AZ-900
AZ-900
the web page is designed to look like it has been created
the web page is designed to look like it has been created

Querying Test Cases

Azure DevOps allows you to create queries to filter test cases based on specific criteria. This helps in finding and managing test cases more effectively.

To create a query, go to the 'Queries' hub, click on 'New query', and define your query criteria. You can save and reuse these queries for future use.

Organizing Test Cases

You can organize your test cases into folders within the test suite for better management. This helps in grouping related test cases together.

To create a folder, right-click on the test suite, select 'New folder', and provide a name. You can then drag and drop test cases into this folder.

Running Test Cases

Now that you've created and managed your test cases, let's see how to run them.

You can run test cases individually or as part of a test run. A test run groups multiple test cases together, providing a more organized way to execute and track tests.

Running Individual Test Cases

To run a test case, select it from the test suite and click on 'Run' from the toolbar. Fill in the run details like title, description, and then click 'Run'.

Once the test run is created, you can view its results, update the test case status, and add comments.

Running Test Cases in a Test Run

To create a test run, go to the 'Test' hub, then select 'Test runs'. Click on 'New test run' and fill in the run details.

In the 'Select tests' dialog, choose the test cases you want to run, then click 'OK'. After creating the test run, you can view and manage its results.

And there you have it! You're now equipped to create, manage, and run test cases in Azure DevOps. Happy testing!

Related Articles

Image Upload Example Orbit Party Rentals Test Case Template In Excel Test Case Template Reddit Test Case Template Example Excel Test Case Report Template Excel File Upload Example What Happens When You Upload A File Which Is Correct Reupload Or Re Upload Test Case Spreadsheet Example