Top Banner
TechNight Clemens Reijnen
52

Test Tooling in Visual Studio 2012 an overview

Nov 02, 2014

Download

Technology

Clemens Reijnen

Test Tooling in Visual Studio 2012 an overview.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Test Tooling in Visual Studio 2012 an overview

TechNightClemens Reijnen

Page 2: Test Tooling in Visual Studio 2012 an overview

Continuous Quality

Page 3: Test Tooling in Visual Studio 2012 an overview

‘ility’ testingAlpha/ BetaComponent TestsExamplesExploratory TestingFunctional TestingLoad TestingPerformance PrototypesScenariosSecurity TestingSimulationsStory TestsUnit TestsUsability TestingUser Acceptance Testing

Page 4: Test Tooling in Visual Studio 2012 an overview

Master Test Plan

Page 5: Test Tooling in Visual Studio 2012 an overview

Managing the Total Test ProcessWhat will be tested for each test level

Based on Business Driven aspects of Result, Risks, Time and Cost.

BusinessDevelopment Test Operations

Page 6: Test Tooling in Visual Studio 2012 an overview

Every test must be able to rely on previous testsTest goals and depth of test coverage per phase are made compatible with each other using a Master Test Plan.

All test types are supported by Visual Studio 2012Functional Testing, Examples, Story Tests, Prototypes, Simulations, Exploratory Testing, Scenarios, Usability Testing, User Acceptance Testing, Alpha/ Beta, Unit Tests, Component Tests, Performance & Load Testing, Security Testing, ‘ility’ testing.

Test Levels, Phases and Types

Rely

Support

http://www.tmap.net/en/tmap/4-essentials/structured-test-process/master-test-plan

Page 7: Test Tooling in Visual Studio 2012 an overview

Performance & Load TestingSecurity Testing‘ility’ testing

Unit TestsComponent Tests

Exploratory TestingScenariosUsability TestingUser Acceptance TestingAlpha/ Beta

Functional TestingExamplesStory TestsPrototypesSimulations

Tests in the top quadrants proof business needs.

Test in the bottom quadrants support the implementation.

Agile Testing Quadrants

Page 8: Test Tooling in Visual Studio 2012 an overview

Performance & Load TestingSecurity Testing‘ility’ testing

Unit TestsComponent Tests

Exploratory TestingScenariosUsability TestingUser Acceptance TestingAlpha/ Beta

Functional TestingExamplesStory TestsPrototypesSimulations

Tests in the right-hand quadrants help the product.

Agile Testing QuadrantsTests in the

left-hand quadrants

help the team.

Page 9: Test Tooling in Visual Studio 2012 an overview

Performance & Load TestingSecurity Testing‘ility’ testing

Unit TestsComponent Tests

Exploratory TestingScenariosUsability TestingUser Acceptance TestingAlpha/ Beta

Functional TestingExamplesStory TestsPrototypesSimulations

Visual Studio Support

Page 10: Test Tooling in Visual Studio 2012 an overview

Supporting the Team and Implementation

Unit TestsComponent Tests

Page 11: Test Tooling in Visual Studio 2012 an overview

Isolate each part of the program and show that the individual parts are correct.

Crafted during the sprint, executed continuously.

Unit Tests

Page 12: Test Tooling in Visual Studio 2012 an overview

DEMOUnit test

Page 13: Test Tooling in Visual Studio 2012 an overview

Developer Focused Testing

Red Green Refactor

Pluggable test frameworks

Run test after build

Unit Test Explorer

Page 14: Test Tooling in Visual Studio 2012 an overview

Run from Unit Test Explorer

Code Coverage

Page 15: Test Tooling in Visual Studio 2012 an overview

Isolating code for better testing

Shims – run-time interception lets you replace callStubs – concrete implementations of interfaces or abstract classes

Fakes

Strive to refactor the code so you don’t need the Shims anymore

Page 16: Test Tooling in Visual Studio 2012 an overview

Supporting the Team and Implementation

Unit TestsComponent Tests

But Wait, There's

More!

Page 17: Test Tooling in Visual Studio 2012 an overview

Find semantically similar code

Code Clone

Page 18: Test Tooling in Visual Studio 2012 an overview

Understanding Class Coupling

Code Analysis

Page 19: Test Tooling in Visual Studio 2012 an overview

Check coding rules

Code Analysis

Page 20: Test Tooling in Visual Studio 2012 an overview

Code Performance

Page 21: Test Tooling in Visual Studio 2012 an overview

Supporting the Team and Business

Functional TestingExamplesStory TestsPrototypesSimulations

Page 22: Test Tooling in Visual Studio 2012 an overview

Story Boarding

Prototypes Simulations

Beginning of the sprint make pbi’s clear.

Page 23: Test Tooling in Visual Studio 2012 an overview

DEMOPowerPoint Storyboarding

Page 24: Test Tooling in Visual Studio 2012 an overview

Specify Functional Tests

Page 25: Test Tooling in Visual Studio 2012 an overview

Test Runner

Action Recording

Execute Test Cases

Page 26: Test Tooling in Visual Studio 2012 an overview

Coded UI

Page 27: Test Tooling in Visual Studio 2012 an overview

DEMOManual test case specification and execution with Microsoft Test ManagerCreate and execute Coded UI test

Page 28: Test Tooling in Visual Studio 2012 an overview

TIP for get testing done in a sprint

Test Automation Levels0

1

2

3

4

No automation

Shared Steps with action recordingTest Cases with action recordingGenerated Coded UI

Customized Coded UI

Page 29: Test Tooling in Visual Studio 2012 an overview

Test Automation Levels

Number of test cases per level in a

sprint.

Page 30: Test Tooling in Visual Studio 2012 an overview

Supporting the Product and Implementation

Performance & Load TestingSecurity Testing‘ility’ testing

Page 31: Test Tooling in Visual Studio 2012 an overview

Performance test: To determine or validate speed, scalability, and/or stability.

Load test:To verify application behavior under normal and peak load conditions.

Performance & Load Testing

Supporting the Product

proof business needs

Automated

Page 32: Test Tooling in Visual Studio 2012 an overview

Web Performance Test

Page 33: Test Tooling in Visual Studio 2012 an overview

Load Test

Page 34: Test Tooling in Visual Studio 2012 an overview

DEMOWeb Performance and Load Test

Page 35: Test Tooling in Visual Studio 2012 an overview

Supporting the Product and Business

Exploratory TestingScenariosUsability TestingUser Acceptance TestingAlpha/ Beta

Page 36: Test Tooling in Visual Studio 2012 an overview

Simultaneous test design and execution.

Test working software.

Exploratory Tests

support the implementation

Supporting the Product

Automated

Page 37: Test Tooling in Visual Studio 2012 an overview

3 Components of Testing

time spent during exploratory testing.(courtesy Jon Bach)

test setupbug fillingtesting

Page 38: Test Tooling in Visual Studio 2012 an overview

DEMOExploratory Test

Page 39: Test Tooling in Visual Studio 2012 an overview

The Planning Phase

Formulating a cohesive and broadly supported approach with which the test assignment can be successfully executed. An important part of the planning phase is the creation of the test plan, for the purpose of informing the client and other stakeholders concerning the approach, schedule, budget, activities and the (end) products to be delivered in relation to the test process. If an overall master test plan exists, the test plan should be derived from it.

http://www.tmap.net/en/tmap/4-essentials/structured-test-process/acceptance-and-system/planning-phase

Page 40: Test Tooling in Visual Studio 2012 an overview

Planning the test effort

Master Test Plan

Product Backlog Sprint Backlog Scrum Board

Page 41: Test Tooling in Visual Studio 2012 an overview

Product Backlog

Page 42: Test Tooling in Visual Studio 2012 an overview

Value, risk, priority, and necessity.

Logical Test Cases

Risk Classification Business Value

Acceptance Criteria

Grooming Backlog

Page 43: Test Tooling in Visual Studio 2012 an overview

Acceptance Criteria

Title / Description(describing the story)Narrative:As a [role] I want [feature] So that [benefit]

Acceptance Criteria: (presented as scenarios)Given [context]  And [some more context]...When  [event]Then  [outcome]  And [another outcome]...

Page 44: Test Tooling in Visual Studio 2012 an overview

Acceptance Test Driven

Logical Test CasesThe logical test cases consist of the combining of the test situations derived from the scenarios and data.

Test CoverageA test design technique is used to derive the necessary test cases that achieve the required coverage from a specific test basis.

Page 45: Test Tooling in Visual Studio 2012 an overview

The Done List

"Are you done yet?“Development Teams deliver an Increment of product functionality every Sprint. This Increment is useable, so a Product Owner may choose to immediately release it.

Shared UnderstandingEveryone must understand what “Done” means.

Page 46: Test Tooling in Visual Studio 2012 an overview

Testing in a Sprint

Get a TeamPeople work together, also with testers.

Get Testing knowledgeIt is a must for planning the developmenteffort.

Have Test TasksTest is part of the ‘Definition of Done’.

Collaborative cultureTrust

Reward

Multi disciplinary

Page 47: Test Tooling in Visual Studio 2012 an overview

Test Specification Tasks

Define Test Cases based on the PCT2 Test Design Technique

Page 48: Test Tooling in Visual Studio 2012 an overview

Path combinations for decision point 1: (1,2) and (1,3)Path combinations for decision point 2: (2,4) and (3,4)

Based on PCT path combinations for test measure 2 are 1-2-4 and 1-3-4 for these paths test cases should be created.

Page 49: Test Tooling in Visual Studio 2012 an overview

Test Lifecycle

Every phase has it’s specific test tasksPlanning, Control, Preparing, Specification, Execution, Completion, Control, Infrastructure.

Page 50: Test Tooling in Visual Studio 2012 an overview

Implementation Sequence

The PBI isn’t ready to be tested till coding is done.

Page 51: Test Tooling in Visual Studio 2012 an overview

DEMOPlanning the Sprint

Page 52: Test Tooling in Visual Studio 2012 an overview

www.ClemensReijnen.nl@ClemensReijnen