180 likes | 259 Views
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.
E N D
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
What the Study Guide says… • Define parameters • managing Test Case iterations • creating a parameter variable • renaming parameters • deleting parameters
The need for data driven tests • Testers will often run tests multiple times using different data for each test run
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
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
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
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.
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
What the Study Guide says… • Manage requirements • reviewing requirements • verifying requirements • verifying all requirements are accounted for • validating Test Coverage
EXAM BEST BETS • Practice adding test iterations • Be sure you can work with parameters • Understand the benefit of Shared Steps • Use Shared Steps in Test Cases