169
DAY 1 MTLM

MTLM Visual Studio 2010 ALM workshop - day1

Embed Size (px)

DESCRIPTION

MTLM Visual Studio 2010 ALM workshop - day1 deck

Citation preview

Page 1: MTLM Visual Studio 2010 ALM workshop  - day1

DAY 1 MTLM

Page 2: MTLM Visual Studio 2010 ALM workshop  - day1

Testing Practices with ALM tools

Tune the value of MTLM, its capabilities and the processes it supports…

GOAL deep dive:

Know the value of MTLM and know how to use its capabilities …

GOAL general course:

Page 3: MTLM Visual Studio 2010 ALM workshop  - day1

Agenda Day 1 Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Lot of discussions and hands-on lab’s

Page 4: MTLM Visual Studio 2010 ALM workshop  - day1

Environments setup TFS supported operating system Installed: • Team Foundation Server with Basic configuration • Visual Studio 2010 with SP1 • Microsoft Test Manager 2010 (comes with VS10 Ultimate)

You get an USB with: • Demo applications (we create a Team Project for them, see lab 1)

• Microsoft Test Agents.msi (we install this together)

• Hands-on lab documents • This deck, talk through and useful information

Page 5: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 1

Create one team projects for the demo applications

Timebox: 15 minuts

Page 6: MTLM Visual Studio 2010 ALM workshop  - day1

People Introductions

Page 7: MTLM Visual Studio 2010 ALM workshop  - day1

Clemens Reijnen Sogeti Netherlands | Management Consultant http://www.ClemensReijnen.nl @ClemensReijnen

Page 8: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 9: MTLM Visual Studio 2010 ALM workshop  - day1

Application Lifecycle

Management

Understand the term ALM, know it’s value and Visual Studio’s ALM support

GOAL:

Page 12: MTLM Visual Studio 2010 ALM workshop  - day1

work together

__with work packages __on alm artifacts

Page 15: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 16: MTLM Visual Studio 2010 ALM workshop  - day1

Work items

Page 19: MTLM Visual Studio 2010 ALM workshop  - day1

VS2010 Process Support with Process Templates M

ult

iple

pro

cess

tem

pla

te

Page 20: MTLM Visual Studio 2010 ALM workshop  - day1

Artifact types

Work items

Reports

Workbooks

Dashboards

Metrics

Page 21: MTLM Visual Studio 2010 ALM workshop  - day1

User Story Work Item Type

Page 22: MTLM Visual Studio 2010 ALM workshop  - day1

Work Item Type Flow

User Story

Page 23: MTLM Visual Studio 2010 ALM workshop  - day1

Testing processes in the Lifecycle

Page 24: MTLM Visual Studio 2010 ALM workshop  - day1

Testing processes in the Lifecycle

Page 25: MTLM Visual Studio 2010 ALM workshop  - day1
Page 26: MTLM Visual Studio 2010 ALM workshop  - day1

Process template with work items, flows, links, queries and more

support | drive | enforce a way of work

Page 27: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 2

Create user stories (2 or 3) and development and test tasks (optional) for the employee application.

Timebox: 5 minuts

Page 28: MTLM Visual Studio 2010 ALM workshop  - day1

Workitem Queries

and Reports

Page 29: MTLM Visual Studio 2010 ALM workshop  - day1

Queries

Page 30: MTLM Visual Studio 2010 ALM workshop  - day1

create your own

Page 31: MTLM Visual Studio 2010 ALM workshop  - day1

Create your own – advanced –

Query Types

Page 32: MTLM Visual Studio 2010 ALM workshop  - day1

Default Reports

Page 33: MTLM Visual Studio 2010 ALM workshop  - day1
Page 34: MTLM Visual Studio 2010 ALM workshop  - day1

Excel Reports

Page 35: MTLM Visual Studio 2010 ALM workshop  - day1

create your own

Excel basic

Page 36: MTLM Visual Studio 2010 ALM workshop  - day1

create your own

Report Wizard Excel Pivot

Page 38: MTLM Visual Studio 2010 ALM workshop  - day1

Microsoft Test Manager

Page 39: MTLM Visual Studio 2010 ALM workshop  - day1

Microsoft Test Manager 2010 The UX

Page 40: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 42: MTLM Visual Studio 2010 ALM workshop  - day1

Test Plans Test Suites Test Configurations

Organize the testing effort in a Test Execution Plan Create dynamic test suites for changing selection criteria Define various test configurations and share automation across those

Page 43: MTLM Visual Studio 2010 ALM workshop  - day1

Test (Execution) Plans

Page 44: MTLM Visual Studio 2010 ALM workshop  - day1

Test (Execution) Plans

Page 45: MTLM Visual Studio 2010 ALM workshop  - day1

Test Plan Organization Naming of test plans for agile environments: Iteration number and name and one extra test plan for end to end tests.

Page 46: MTLM Visual Studio 2010 ALM workshop  - day1

Test Configurations

Page 47: MTLM Visual Studio 2010 ALM workshop  - day1

Test Configurations

Page 48: MTLM Visual Studio 2010 ALM workshop  - day1

Test Suites

Page 49: MTLM Visual Studio 2010 ALM workshop  - day1

Test Suites Organization Naming of test suites for agile environments: Suite per user story (requirement based) and one additional test suite for regression tests.(query based?) (test cases are copied to the regression test suite)

Page 50: MTLM Visual Studio 2010 ALM workshop  - day1

Proposed organization

Page 51: MTLM Visual Studio 2010 ALM workshop  - day1

Iteration 1 Create test plan for iteration and a ‘end to end’ test plan. Create requirement based test suites which hold test cases for that suite.

Page 52: MTLM Visual Studio 2010 ALM workshop  - day1

Iteration 1 Create two additional suites, one for regression sets, which will be taken along during the project and one specific for automation.

Page 53: MTLM Visual Studio 2010 ALM workshop  - day1

Copy Test Cases

ID 21 ID 21

ID 22

Copy a Test Case

ID 21

Copy the reference to a Test Case

Page 54: MTLM Visual Studio 2010 ALM workshop  - day1

End iteration 1, some important test case are promoted to the ‘end to end ’ test plan.

Page 55: MTLM Visual Studio 2010 ALM workshop  - day1

Iteration 2, test suites are created for the requirements and the regression test suit is copied (link or hard?)

Page 56: MTLM Visual Studio 2010 ALM workshop  - day1

During the execution of iteration 2 the regression test suit grows and an automation suit is added.

Page 57: MTLM Visual Studio 2010 ALM workshop  - day1

Again important ones are promoted to the ‘end to end’ test plan

Page 58: MTLM Visual Studio 2010 ALM workshop  - day1

TCM.exe

Page 59: MTLM Visual Studio 2010 ALM workshop  - day1

TCM plan /list

Page 60: MTLM Visual Studio 2010 ALM workshop  - day1

TCM suites /lists planid:16

Page 61: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 3

Create Test Plan, Test Configurations and make a test suite organization. Optional: use TCM.exe to list the lab results

Timebox: 10 minuts

Page 62: MTLM Visual Studio 2010 ALM workshop  - day1

Share MTM Artifacts

mtm://clemenes-pc:8080/tfs/defaultcollection/p:MSF/Testing/testplan/connect?id=19

Page 63: MTLM Visual Studio 2010 ALM workshop  - day1

mtm://server:8080/tfs/ProjectCollection/p:Project/testing/testcase/open?id=67

Open Test results Open Test Cases (or any work item) Open Test Runs Open Test Plans Connect to test plans

mtm://<server name>:<port>/<tfs vdir>/<Collection name>/p:<project name>/<center group>/<group specific>

http://blogs.msdn.com/b/vstsqualitytools/archive/2010/02/09/sharing-content-in-microsoft-test-manager.aspx

Page 64: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

BREAK TILL:

11:00

(extra time to finish the labs :)

Page 65: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 67: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Shared Steps Test Data Iterations

Link test cases and requirements to provide requirement traceability Data drive test cases with different parameters Refactor common shared steps in test cases

Page 68: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case

Page 69: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Naming of test case: Purpose: • Finding the right test case • Common understanding • Intention from the title • Scan test plans more effectively and efficiently

Proposed solution #1 make use of linked work items #2 maximal length of the title 20 characters #3 format <functionality identifier> <action> <additional information> #4 make useful queries

Page 70: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case from Excel

Page 72: MTLM Visual Studio 2010 ALM workshop  - day1

Test steps Make them descriptive Not every step is a validation step Use the step attachment

Page 73: MTLM Visual Studio 2010 ALM workshop  - day1

Test steps copy-past

Page 74: MTLM Visual Studio 2010 ALM workshop  - day1

Test Data Iterations Data drive test cases with different parameters

Page 75: MTLM Visual Studio 2010 ALM workshop  - day1

Test Data Iterations

Page 76: MTLM Visual Studio 2010 ALM workshop  - day1

Test data copy-past

Page 77: MTLM Visual Studio 2010 ALM workshop  - day1

Shared Steps Refactor common shared steps in test cases Reduce test maintenance by sharing test steps across test cases

Page 78: MTLM Visual Studio 2010 ALM workshop  - day1

Shared Steps Shared Step candidates?

• REUSE – Many steps, reused for many test cases . Benefit: time, retyping, boring work.

• EXPECTED CHANGES – for example environment variables change [URL]. Benefit: Time, test cases

which need this step are updated automatically, also action recording.

• PRE- CONDITIONS – bring the system under test to a certain state and execute the different

verifications. Benefit: beside time, you are certain the application under test is in the same state for every test case

• BACK TO INITIAL STATE - after test execution bring the environment back to the initial state for

new test cases. Benefit: beside time, you are certain the application under test is always in a clean state for new test cases.

Page 79: MTLM Visual Studio 2010 ALM workshop  - day1

Shared Steps what about parameters and expected result in shared steps?

Page 80: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 4

1. Specify multiple test cases. 2. Add some test data iterations. 3. Create shared step and reuse it.

Optional: play with the parameters and expected result steps in the shared steps…

Timebox: 15 minuts

Page 81: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 82: MTLM Visual Studio 2010 ALM workshop  - day1

Test Execution

Test Runner

A test that you will want to run multiple times. Different manual tests that contain common steps. Verifying a bug is fixed by using a manual test.

Page 84: MTLM Visual Studio 2010 ALM workshop  - day1
Page 85: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Execution

Page 86: MTLM Visual Studio 2010 ALM workshop  - day1
Page 87: MTLM Visual Studio 2010 ALM workshop  - day1

Action recording

Page 88: MTLM Visual Studio 2010 ALM workshop  - day1

TCM run /create

Page 89: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Execution Results

Page 90: MTLM Visual Studio 2010 ALM workshop  - day1

View Test Results Using Microsoft Test Manager 1: from the ‘Run Tests’ 2: from the ‘Analyze Test Runs’

Page 91: MTLM Visual Studio 2010 ALM workshop  - day1

From Analyze Test Runs Test Results for multiple Test Cases

Page 92: MTLM Visual Studio 2010 ALM workshop  - day1

From Run Tests Test Result for a Test Case

Page 93: MTLM Visual Studio 2010 ALM workshop  - day1

Test Plan

Page 94: MTLM Visual Studio 2010 ALM workshop  - day1

From TCM run /export id:239 /resultsfile:”c:\runresult”

Page 95: MTLM Visual Studio 2010 ALM workshop  - day1

Share with mtm://

mtm://clemens-pc:8080/tfs/defaultcollection/p:MSF/Testing/testrun/open?id=292

Page 96: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 5

Execute the created test cases, view the results Optional: run them from TCM.exe

Timebox: 10 minuts

Page 97: MTLM Visual Studio 2010 ALM workshop  - day1

Test queries

Page 98: MTLM Visual Studio 2010 ALM workshop  - day1

Test reports

Page 99: MTLM Visual Studio 2010 ALM workshop  - day1
Page 100: MTLM Visual Studio 2010 ALM workshop  - day1
Page 101: MTLM Visual Studio 2010 ALM workshop  - day1
Page 102: MTLM Visual Studio 2010 ALM workshop  - day1

Excel Reports for Tests

Page 103: MTLM Visual Studio 2010 ALM workshop  - day1

• POINT COUNT TREND - I want to see the results for test in a particular test run

• RESULT COUNT - I want to see trend report for my tests regardless of build or plan

• RESULT COUNT TREND - I want to see trend report for my tests regardless of build or plan

• TEST CASE COUNT - I want to see the number of test cases that have been planned for automation

Page 105: MTLM Visual Studio 2010 ALM workshop  - day1

Test Plans and TFS items

Server

TCM Server Plan “Iteration 2” Suite US1 Suite US2

Test Case A Test Case B Test Case C Test Case D

MTLM Client

Plan “Iter 1”

Plan “Iter 3”

TFS

User Story 2

Test Case A

Test Case B

Test Case C

Task X

Task Y

Task Z Test Case C

Page 106: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 6

Create excel pivot table to list test points per Tester.

Timebox: 10 minuts

Page 107: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

LUNCH TILL:

12:45

(extra time to finish the labs :)

Page 108: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 109: MTLM Visual Studio 2010 ALM workshop  - day1

Controlling the testing effort BUG’s

Page 110: MTLM Visual Studio 2010 ALM workshop  - day1

File a BUG

Page 111: MTLM Visual Studio 2010 ALM workshop  - day1

Diagnostic Data Adapters File a Bug File an Exploratory Bug Verify a Bug

Page 112: MTLM Visual Studio 2010 ALM workshop  - day1

Diagnostic Data Adapters

Page 113: MTLM Visual Studio 2010 ALM workshop  - day1

File a Bug Submit a Bug using Test Runner

Page 114: MTLM Visual Studio 2010 ALM workshop  - day1

Ways to file a Bug

Submit a Bug from the Test Runner Submit a Bug from the Verify Bugs View Submit a Bug from Test Results for a Test

Page 115: MTLM Visual Studio 2010 ALM workshop  - day1

Verify a Bug Verify a Bug Fix Using Microsoft Test Manager

Page 116: MTLM Visual Studio 2010 ALM workshop  - day1

The Bug Flow

T

E

S

T

D

E

V

Link build 2 test plan. Configure Data collectors.

Setup build and deploy

Build definition is

the intergration

Execute Manual Tests

File Bug

Resolve Bug

Checkin Build Deploy

Verify fix by using playback

Close or reopen Bug

Page 117: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 7

Create a build File a bug Resolve a bug Verify a bug

Timebox: 15 minuts

Page 118: MTLM Visual Studio 2010 ALM workshop  - day1

Bug Reports

Bug Status Report Bug Trends Report Reactivations Report

Page 119: MTLM Visual Studio 2010 ALM workshop  - day1

Bug Status Report

Page 120: MTLM Visual Studio 2010 ALM workshop  - day1

Bug Trends Report

Page 121: MTLM Visual Studio 2010 ALM workshop  - day1

Reactivations Report

Page 122: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 123: MTLM Visual Studio 2010 ALM workshop  - day1

Test Impact

Page 124: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Execute ‘passed’ Tests

Execute ‘passed’ Tests

Test Impact

D

E

V

Assign build 2 test plan. Configure Data collectors.

Setup build and deploy

Build definition is

the intergration

Execute ‘passed’ Tests

Make code changes

Checkin Build Deploy

Assign ‘NEW’ build 2 Test Plan

Evaluated and reset tests impacted by code churn

Page 125: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 8

Attach build to test plan Execute tests Make code change Kickoff build Attach new build to test plan Evaluate impacted tests Timebox: 15 minuts

Page 126: MTLM Visual Studio 2010 ALM workshop  - day1

E2E Scenario

Page 127: MTLM Visual Studio 2010 ALM workshop  - day1

Iteration N

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Implement US2

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Page 128: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Sprint plan

Write tests for US1

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Sprint plan

Write tests for US1

Key Value: Requirements Planning

Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

User Stories and corresponding done dev tasks. Create test tasks and assign to someone else.

Page 129: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Sprint plan

Write tests for US1

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Sprint plan

Write tests for US1

Key Value: Requirements Planning

Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Execute the Test Specification Tasks and other test tasks

Page 130: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Sprint plan

Write tests for US1

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Sprint plan

Write tests for US1

Key Value: Requirements Planning

Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Execute the Test Execution Tasks and file bugs (if any)

Page 131: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Test US1 & file bugs

Fix bugs

Verify fixes

Build 3 Build 5

Fix bugs

Test US1 & file bugs

Build 5

Verify fixes

Key Value: Virtuous Bug Cycle Dev solves the bugs. Test Verifies tests

Page 132: MTLM Visual Studio 2010 ALM workshop  - day1

T

E

S

T

Sprint plan

Write tests for US1

Write tests for US2

D

E

V

Sprint plan

Build 1 Build 2 Build 3

Implement User Story ‘1’

(US1)

Test US1 & file bugs

Build 4

Fix bugs

Build 6 Build 7

Regress impacted

tests

Build 5

Implement US2

Fix bugs

Test US2 & file bugs

Verify fixes

Verify fixes

Key Value: Virtuous Bug Cycle Check Results

Page 133: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

BREAK TILL:

14:30

(extra time to finish the labs :)

Page 134: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 135: MTLM Visual Studio 2010 ALM workshop  - day1

Create test from Bug

Page 136: MTLM Visual Studio 2010 ALM workshop  - day1
Page 137: MTLM Visual Studio 2010 ALM workshop  - day1

File an Exploratory Bug Submit an Exploratory Bug using Test Runner

Page 138: MTLM Visual Studio 2010 ALM workshop  - day1

Record scenario by business user with MTM on application under test. Action recording is captured.

1

Create test steps (with parameters) in MTM by using the action recording.

2

Save test case and execute it by a tester on application under test, by using MTM.

3

CON: - Manual actions and tests. - Test steps text are technical names - Action recording (step 1) must be clean. - Unknown what is validated, during step 2, need

additional knowledge. - The business user must think of the important

scenarios The action recording during step 1 can have unnecessary steps, these can be removed during the execution (1) or during the specification (2).

PRO: - Reuse scenario knowledge business user - No typing detailed test steps - Easy to parameterize - Writing standards for test steps - MTM capabilities in step 3. (bug, codedUI,

recommended test etc …) Most benefit during step 2 (test case writing), benefit in step 1: run once in common situation. Benefit in step 3: common MTM benefits (record playback, fast forward, parameters etc) and benefit of well written steps.

Page 139: MTLM Visual Studio 2010 ALM workshop  - day1

Lab 9

Timebox: 10 minuts

Create an exploratory bug and create a test case from it

Page 140: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 141: MTLM Visual Studio 2010 ALM workshop  - day1

Test Infrastructure

Where and how to run the automated test?

Page 143: MTLM Visual Studio 2010 ALM workshop  - day1

Test lab Visual Studio 2010 Lab Management

Page 144: MTLM Visual Studio 2010 ALM workshop  - day1

physical test environments virtualized test environments

Where and how to run the automated test?

Page 145: MTLM Visual Studio 2010 ALM workshop  - day1

TFS 2010

Physical Test Client

MTLM Client

Physical Test Client

Hyper-V Host

VM

System Center Virtual Machine Manager (SCVMM)

TFS 2010

VM

Library Shares

share

share

MTLM Client

physical test environments

virtualized test environments

Page 146: MTLM Visual Studio 2010 ALM workshop  - day1

Build application

Provision ‘clean’ env

Deploy application

Run tests

physical test environments versus virtualized test environments

Page 147: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 148: MTLM Visual Studio 2010 ALM workshop  - day1

Visual Studio

Test Manager

Team Foundation Server

Build Server

Test Agent

Test Agent

Test Agent

Lab for Physical Environments, the different flavors…

Page 149: MTLM Visual Studio 2010 ALM workshop  - day1

A

Flavor A: Execution from VS2010…

Configurations for automated test execution:

Real developer test / test automation dry run (Triggered by: right mouse click – run tests, in test project) http://msdn.microsoft.com/en-us/library/dd286580.aspx No additional configuration needed* * Data Diagnostic Settings in the Local.Testsettings file are configurable.

Pro: Easy setup

Debug-able test automation

Con: No collection of test results in TFS Run on developer environment

Page 150: MTLM Visual Studio 2010 ALM workshop  - day1

B

Flavor B: Execution during build with Build controller…

Configurations for automated test execution:

Part of Build Verification Tests (triggered by: build) Set the Build Service to run in interactive mode http://blogs.msdn.com/b/mathew_aniyan/archive/2009/05/26/coded-ui-test-in-a-team-build.aspx Configure the build to run the tests http://msdn.microsoft.com/en-us/library/ms182465.aspx#CreateBuildType * Data Diagnostic Settings in the *.Testsettings file are configurable.

Pro: Easy setup

Test results in build result

Con: No collection of test results in TFS Build Controller needs to run in interactive mode Tests are executed on build environment Run on build environment

not recommended, strange to run UI tests on build

Page 151: MTLM Visual Studio 2010 ALM workshop  - day1

C

Flavor C: Execution during build with Test controller…

Configurations for automated test execution:

Part of Build Verification Tests on multiple test agents (triggered by: build) Configure Test Controller (don’t register it with a project collection ) http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestControllers Configure Test Agents on clients (interactive mode) http://msdn.microsoft.com/en-us/library/dd648127.aspx#TestAgents Configure *.Testsettings file in solution to use Test Controller and Test Agents Configure the build to run the tests (see B)

Pro: Test run on test environments

Tests run on multiple environments Test Results in Build result

Con: No collection of test results in TFS Harder to configure Need for specific test client environments Test Settings from VS

Preferred configuration above flavor B

Page 152: MTLM Visual Studio 2010 ALM workshop  - day1

D

Flavor D: Execution from Microsoft Test Manager…

Configurations for automated test execution:

Part of Regression Tests (triggered by: MTM user, right mouse click on test case, run) Configure Test Controller (register it with a project collection ) Configure Test Agents on clients (interactive mode, can be the same as MTM) Configure Lab Center in MTM to use test controller and create test ‘agent’ environment. http://msdn.microsoft.com/en-us/library/ee390842.aspx http://msdn.microsoft.com/en-us/library/dd293551.aspx Associate CodedUI test with WI Test Case from VS. http://www.richard-banks.org/2010/11/how-to-use-codedui-tests-watin-and-mtm.html

Pro: Test run on test environments

Tests run on multiple environments Test Result in MTM and TFS

Test Settings from MTM

Con: Manually triggered by Tester Hard to configure Need for specific test client (same as MTM?)

Other type of test than BVT

Page 153: MTLM Visual Studio 2010 ALM workshop  - day1

E

Flavor E: Execution from MTM during Build…

Configurations for automated test execution:

Part of BVT (triggered by: Build) Configure Test Controller (register it with a project collection ) Configure Test Agents on clients (interactive mode, can be the same as MTM) Configure Lab Center in MTM to use test controller and create test ‘agent’ environment. Associate CodedUI test with WI Test Case from VS. Create Build task to run TCM or MSTEST task for Test Plan http://blogs.microsoft.co.il/blogs/shair/archive/2010/10/30/how-to-run-coded-ui-tests-from-command-line.aspx

Pro: Test run on test environments

Tests run on multiple environments Test Result in MTM and TFS

Triggered by build Test Settings from MTM

Con: Hard to configure Need for specific test client (same as MTM?)

Preferred configuration above flavor C Flavor D and E can be configured together

Page 154: MTLM Visual Studio 2010 ALM workshop  - day1

Test Controller

Page 155: MTLM Visual Studio 2010 ALM workshop  - day1

Test Agent

Page 157: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Introduction, environments setup 9:15 introduction by the students 9:45 Application Lifecycle Management and Visual Studio General 9:55 Test Planning 10:15 Managing, controlling the testing effort, test plans, test suites and test

configuration 10:45 BREAK 11:00 Specify test cases and corresponding capabilities of MTM 11:45 Test execution, fast forward, reporting, olap cub 12:00 Lunch 12:45 Bug workflow, infrastructure configuration for data diagnostic adapters 13:30 Test impact and recommended tests 14:15 Break 14:30 Exploratory testing and create test from bug 14:45 Test Controllers and Agents 15:45 Test Environments in MTLM

Page 158: MTLM Visual Studio 2010 ALM workshop  - day1

New physical environment

Page 159: MTLM Visual Studio 2010 ALM workshop  - day1
Page 160: MTLM Visual Studio 2010 ALM workshop  - day1
Page 161: MTLM Visual Studio 2010 ALM workshop  - day1
Page 162: MTLM Visual Studio 2010 ALM workshop  - day1
Page 163: MTLM Visual Studio 2010 ALM workshop  - day1
Page 164: MTLM Visual Studio 2010 ALM workshop  - day1

Test Activities Planning…

RECAP

Page 165: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Management RECAP

Page 166: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Specification

RECAP

Page 167: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Execution

RECAP

Page 168: MTLM Visual Studio 2010 ALM workshop  - day1

Test Case Management RECAP

Page 169: MTLM Visual Studio 2010 ALM workshop  - day1

Start Topics

9:00 Recap

9:15 Create Basic CodedUI, from Test Case and Manual

9:45 UIMap and customize the code for optimization

10:15 Data driven Tests and assertions

10:45 break

11:00 Troubleshoot CodedUI, Common Practices and questions

11:30 Configure the build to execute the CodedUI tests, test settings from VS2010, Execute from VS2010 with test agents and analyze the results

11:30 Associate test automation with test case, execute automated test case from MTM, configure the build to run from the build within MTM and analyze the results

12:30 break

13:15 MTLM, Scrum and other project Methodologies

13:45 Lab Management - Virtualized Test Environment and execution Demo

14:15 Test info in the OLAP Cube

14:30 Extensibility - test Scribe, TCMIMport

14:45 Create your own Data Diagnostic Adapter

15:15 MTLM usages with Azure projects

16:00 Closing

DAY 2