18
03b | Manage Test Cases (2 of 2) Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence

Anthony Borton | ALM Consultant, Enhance ALM

  • Upload
    binh

  • View
    31

  • Download
    0

Embed Size (px)

DESCRIPTION

03b | Manage Test Cases (2 of 2). Anthony Borton | ALM Consultant, Enhance ALM Steven Borg | Co-founder & Strategist, Northwest Cadence. Module Overview. Create Test Cases Create Test Steps Define Parameters Manage Shared Steps Manage Requirements. Define Parameters. - PowerPoint PPT Presentation

Citation preview

Page 1: Anthony Borton | ALM Consultant, Enhance ALM

03b | Manage Test Cases (2 of 2)

Anthony Borton | ALM Consultant, Enhance ALMSteven Borg | Co-founder & Strategist, Northwest Cadence

Page 2: Anthony Borton | ALM Consultant, Enhance ALM

• Create Test Cases• Create Test Steps• Define Parameters• Manage Shared Steps• Manage Requirements

Module Overview

Page 3: Anthony Borton | ALM Consultant, Enhance ALM

Click to edit Master subtitle style

Microsoft Virtual Academy

Define Parameters

Page 4: Anthony Borton | ALM Consultant, Enhance ALM

What the Study Guide says…

• Define parameters–managing Test Case iterations– creating a parameter variable– renaming parameters– deleting parameters

Page 5: Anthony Borton | ALM Consultant, Enhance ALM

The need for data driven tests

• Testers will often run tests multiple times using different data for each test run

Page 6: Anthony Borton | ALM Consultant, Enhance ALM

Parameterising tests

• When recording manual tests you simply prepend an “@” symbol in your test step in front of the place where the parameter should appear.

• For example.– “Enter the @username in the sign-in textbox”– The step above would create a parameter called

“username” and this will appear in a table as the bottom of the MTM as a column heading in a table.

– Add values under the column heading for each iteration of the test case

Page 7: Anthony Borton | ALM Consultant, Enhance ALM

Playback of parameterised test cases

• When you use the Microsoft Test Runner to execute a test case that contains parameters, the parameters are shown in the specific test step where you created them

• To reduce typo’s and increase speed, you can select a control where you want to place the parameter value and simply choose Paste (CTRL+V) to have the appropriate value pasted into the control.

• This process also maps the parameter to the control for subsequent test iterations

Page 8: Anthony Borton | ALM Consultant, Enhance ALM

DEMO

Microsoft Virtual Academy

Define Parameters

Page 9: Anthony Borton | ALM Consultant, Enhance ALM

Click to edit Master subtitle style

Microsoft Virtual Academy

Manage Shared Steps

Page 10: Anthony Borton | ALM Consultant, Enhance ALM

What the Study Guide says…

• Manage Shared Steps– creating Shared Steps– designing Shared Steps that can be reused effectively

across different Test Cases–moving Shared Steps– creating Action Recording for Shared Steps

Page 11: Anthony Borton | ALM Consultant, Enhance ALM

The need for shared steps

• As any testers who have had development experience will know, developers often refactor code to identify sections that can be easily reused and duplication of code in an application is frowned upon

• In the same way, a tester can identify steps that are used in multiple test cases (eg. A user signs into the application) and these can be “refactors” out into what is called a shared step.

Page 12: Anthony Borton | ALM Consultant, Enhance ALM

Shared Steps

• Characteristics of shared steps;– Are like mini test cases– Can be imported into any part of a test case, not just at

the start or end– Can be created by selecting a number of steps and

choosing “Convert into Shared Steps” from the context menu

– Can be easily changed and the change automatically applies to everywhere the shared step is referenced

Page 13: Anthony Borton | ALM Consultant, Enhance ALM

DEMO

Microsoft Virtual Academy

Manage Shared Steps

Page 14: Anthony Borton | ALM Consultant, Enhance ALM

Click to edit Master subtitle style

Microsoft Virtual Academy

Manage Requirements

Page 15: Anthony Borton | ALM Consultant, Enhance ALM

What the Study Guide says…

• Manage requirements– reviewing requirements– verifying requirements– verifying all requirements are accounted for– validating Test Coverage

Page 16: Anthony Borton | ALM Consultant, Enhance ALM

DEMO

Microsoft Virtual Academy

Manage Requirements

Page 17: Anthony Borton | ALM Consultant, Enhance ALM

• Practice adding test iterations• Be sure you can work with parameters• Understand the benefit of Shared Steps• Use Shared Steps in Test Cases

EXAM BEST BETS

Page 18: Anthony Borton | ALM Consultant, Enhance ALM

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.