This tutorial will guide you through the fundamental features and workflows of Azure Test Plans, a comprehensive suite of tools for manual and exploratory testing within Azure DevOps.
Azure Test Plans empowers your team to deliver high-quality software by providing robust capabilities for creating test plans, designing test cases, executing tests, and tracking results.
Step 1: Creating a Test Plan
Test plans provide a container for your testing activities. You can organize test cases by sprint, feature, or any other logical grouping.
- Navigate to your Azure DevOps project.
- In the left-hand navigation pane, select Test Plans.
- Click on the New Test Plan button.
- Enter a descriptive name for your test plan (e.g., "Sprint 12 Features Testing").
- Optionally, select a Iteration Path and assign the plan to a Area Path.
- Click Create.
Step 2: Adding Test Cases
Test cases define the specific steps and expected results for verifying a requirement or feature.
- Open the test plan you created in Step 1.
- Click the Add Test Case button.
- You can either create a new test case or add an existing one.
- To create a new test case:
- Enter a title for the test case.
- Click the Open test case editor link.
- In the test case editor, define the Steps, Expected Results, and any relevant Parameters.
- Save the test case.
- To add an existing test case:
- Click Add existing.
- Use the work item search to find and select the test cases you want to add.
- Click OK.
Tip: You can link test cases to user stories or requirements to ensure traceability.
Step 3: Creating Test Suites
Test suites help organize your test cases within a test plan, allowing for better management and execution.
- Within your test plan, right-click on the test plan name or a folder.
- Select New suite.
- Choose the type of suite:
- Requirement based suite: Links to one or more requirements. Test cases are automatically added when requirements are created or linked.
- Test case suite: A static collection of test cases.
- Shared test suite: A reusable suite of test cases that can be linked to multiple test plans.
- Enter a name for your suite and click Create.
- Drag and drop test cases from the unassigned list into your newly created suite.
Step 4: Running Tests
Execute your test cases and record the outcomes.
- Navigate to the test suite containing the test cases you want to run.
- Select the test case(s) you wish to execute.
- Click the Run for manual testing button.
- The Microsoft Test Runner will launch. Follow the steps outlined in the test case and record your results (Pass/Fail/Blocked).
- Provide any necessary attachments or comments.
- Click Close to save the test results.
Tip: You can also use the web-based Test Runner for a lighter execution experience.
Step 5: Analyzing Results
Monitor the progress and outcomes of your testing efforts.
- In the Test Plans hub, you can view the status of your test cases directly within the plan or suite.
- Click on the Charts tab to visualize test execution progress, pass/fail rates, and other key metrics.
- Azure Test Plans integrates with Azure Boards, allowing you to link test results to bugs and user stories for comprehensive tracking.