+ All Categories
Home > Documents > QWise software engineering – refactored! Testing, testing A first-look at the new testing...

QWise software engineering – refactored! Testing, testing A first-look at the new testing...

Date post: 16-Jan-2016
Category:
Upload: peter-hicks
View: 216 times
Download: 0 times
Share this document with a friend
35
QWise software engineering – refactored! www.qwise.se Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson Callista Knowledgebase | QWise
Transcript
Page 1: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Testing, testingA first-look at the new testing

capabilities in Visual Studio 2010

Mathias OlaussonCallista Knowledgebase | QWise

Page 2: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

About Mathias...

Page 3: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

About the Presentation...

• What’s on the menu?– Test planning and execution– Issue tracking with rich bugs – Eliminating the "works on my machine / cannot

reproduce" scenario– Automated UI Testing– Virtual Lab Management

Page 4: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

TEST PLANNING AND EXECUTION

Page 5: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Agile Testing

Page 6: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Core Practices

Page 7: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Agile Testing Quadrants

Functional Tests Exploratory Tests

Unit TestsComponent Tests

Performance TestsLoad Tests

Security Tests”-ilitets” Tests

Business-facing

Technology-facing

Supp

ortin

g th

e te

amCritisizing the product

Automated &Manual

Manual

AutomatedAutomated

Page 8: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Test TypesManual Tests

UI Tests

Acceptance Tests

Unit Tests / Component Tests

Page 9: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Testing in an Iteration

sprint plan

sprint plan

write tests for us1

write tests for us1

write tests for us2

write tests for us2

sprint plan

sprint plan

build 1build 1 build 2build 2 build 3build 3

implement user story ‘1’

(us1)

implement user story ‘1’

(us1)

test us1 & file bugs

test us1 & file bugs

Implement US2

Implement US2

build 4build 4

fix bugsfix bugs

build 6build 6 build 7build 7

regress impacted

tests

regress impacted

tests

build 5build 5

implement us2

fix bugsfix bugs

test us2 & file bugs

test us2 & file bugs

verify fixesverify fixes

verify fixesverify fixes

Page 10: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Microsoft Test Manager and Visual Studio

Team Foundation Server Reporting

Development (Teams)Testing (Teams)

Web Test

Load Test

Coded UI Test Unit Testing

Test Case Management

Lab Management

Microsoft Test Runner

Fast Forward For Manual Testing

GeneralistSpecialistEngineering Support

Data Collectors (IntelliTrace, Test Impact, Metrics)

Page 11: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

The Fundamentals

Page 12: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Defining and Running Tests

Page 13: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

ISSUE TRACKING WITH RICH BUGS

Page 14: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Should We Do Bug Tracking?

Pros– Tracability– Priority of work– Visibility

Cons– Overhead

Should we log bugs within an iteration?Source: Pixar ”A bugs’ life”

Page 15: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Defect Tracking in MTM and MTR

Page 16: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

No-more-no-repro

• Automatic data collection

• Test settings– Configuration of

diagnostic data collectors

– Assigned to test plan• Or per test run

Page 17: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Diagnostic Data Adapters

Page 18: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

No-more-no-repro

Page 19: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

AUTOMATED UI TESTING

Page 20: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Why Automated Testing?

Källa: Tools for Agility, Kent Beck

Page 21: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

iteration 1iteration 1 iteration 2iteration 2 release iterationrelease iteration

feature afeature a feature bfeature b feature cfeature c feature dfeature d

unit testing

manual testing

regression testing

performance testing

feature afeature a

Automation Strategy

Page 22: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Coded UI Tests

• Unit test for UI• High-level framework• Create test from– Recording– Test result (action

log)– Using API

Page 23: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Automation Platform Support

Page 24: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Coded UI Tests

Page 25: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

LAB MANAGEMENT

Page 26: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Motivation

Page 27: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Lab Management Aims To...

Page 28: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Lab Management Infrastructure

Team Foundation Server (TFS)

Lab Management

Test Case management

Build management

Work Item Tracking

Source Control

Hyper-V HostsVirtual

Machine1

Virtual Machine2

Virtual Machinen

Library SharesLibrary Share1

Library Share2

Library Sharen

System Center Virtual Machine Manager (SCVMM)

Team Foundation Server (TFS)

Lab Management

Test Case management

Build management

Work Item Tracking

Source Control

Hyper-V HostsVirtual

Machine1

Virtual Machine2

Virtual Machinen

Library SharesLibrary Share1

Library Share2

Library Sharen

System Center Virtual Machine Manager (SCVMM)

Page 29: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Environments

• An environment is a set of machines with different roles

• An environment can– Be deployed, saved, removed– Started, stopped– Snapsshot

VM1

Lab Agent

VM2

Lab Agent

Page 30: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Manual Tests in Lab

• Testing from the outside– Easy for web applications– Limitations in data collection

• Testing from the inside– Run application in lab via environment viewer

Page 31: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Automatic Tests in Lab

• Testing in VM– Test case connected to test environment– Test component comes from selected build

• Testing in build– Test case connected to build definition– Runs test list or test component

Page 32: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Lab Management Build Workflow

Page 33: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Build and Deploy

Page 34: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Summary

• Structured test planning with MTM• Integrated test execution• Effective defect tracking with rich bugs• Seamless integration with automated tests• Powerful lab management

Page 35: QWise software engineering – refactored!  Testing, testing A first-look at the new testing capabilities in Visual Studio 2010 Mathias Olausson.

QWise software engineering – refactored! www.qwise.se

Questions?

[email protected]://msmvps.com/blogs/molausson


Recommended