Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

61
Documenting Software Testing Instructions - A Survey of Successful Approaches STP Con October 25th, 2011 Justin Hunter

description

Summary from the STP Con Testing Conference: Documenting Tester instructions – a Survey of Successful approaches Track: Test Process Justin hunter, CEO, Hexawise This session provides an overview of several different approaches that are successfully used by testers to address the questions of: What type of testing documentation should you create; and how much detail is appropriate to include in order to guide testers and/or satisfy compliance requirements? This session will discuss pros and cons of several approaches, including: • Checklists • Mindmaps • Test ideas • Specification by example • Detailed test scripts In some software testing presentations, the speaker will explain why they think one particular approach is particularly attractive. This won’t be one of those talks. Justin is a test design specialist who has enjoyed teaching testers how to improve the efficiency and effectiveness of their test case selection and documentation approaches.

Transcript of Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Page 1: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Documenting Software Testing Instructions - A Survey of

Successful Approaches

STP Con October 25th, 2011Justin Hunter

Page 2: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Topics

Tradeoffs

Considerations

Documents

Idea Triggers

Context Objectives

Mind Maps“Straw Man”

ChecklistsPersonas

“Kan Ban Cards”

Combinations

Page 3: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Topics

3

Page 4: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Context is Critical

4

Tester’s experience

level / Exploratory

Testing skills

Importance of keeping detailed records (e.g., for regulatory compliance or lawsuit defense)

Page 5: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Context is Critical

5

Tester’s experience

level / Exploratory

Testing skills

Importance of keeping detailed records (e.g., for regulatory compliance or lawsuit defense)

Relatively littledetail

Enough detail to satisfy lawyers

Very detailed

Enough detail to avoid tester confusion

Page 6: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Appropriate Amt. of Detail

6Sources: Key Terms (“Cloud Level” / “Clam Level”, etc.)

http://alistair.cockburn.us/Use+casesImage: accelerateddeliveryplatform.com

Page 7: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Objectives

7

Page 8: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Objectives & Assumptions

8

Who? W

hen?

Prescriptive vs. Exploratory?

Page 9: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Tradeoffs

9

Page 10: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Practical Tradeoffs

10

ManyFew

Reqs Docs and the SUT

Reqs Docs Only

Test ideas from

looking at...

Detailsin tests

Page 11: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Practical Tradeoffs

11

ManyFew

Reqs Docs and the SUT

Reqs Docs Only

Test ideas from

looking at...

Detailsin tests

Prescriptive /Designed Before

Exploratory /Designed During

Page 12: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Documentation Strategy

12

Page 13: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

“Straw Man”

13

Every test scriptMUST have:

• Test Name• Test Number• Tester’s Name • Tester’s Dept.• Type of Test • Requirement Number• Pre-conditions• Configuration Details• Test Data• Specific Steps• Designer• Approver• Execution Time (est.)• Expected Results

Page 14: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Time Management

14

Page 15: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Overly-Detailed Documentation

15

ActualTesting

Page 16: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Mind Maps

16

Page 22: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Mind Maps

22

Benefits of mind maps so far... Benefits of mind maps so far...

Creation

Quick and Easy Maintenance

Quick and Easy Collaboration

Quick and Easy

Reporting

Quick and Easy

But would mind maps be detailed enough...

... For junior testers?

... For testers who will join team in six months?

Page 23: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

“MindMapping 101 for Testers”

23

http://www.bettertesting.co.uk/content/?p=956

Page 24: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Test Details into Test Mgmt Tool

24

Page 25: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

25

Collaboration is Easy

Page 29: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Documentation

29

Page 30: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Kan Ban Boards

30

Page 32: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Paul Holland - (Testing-Focused)

32

Paul HollandAlcatel-Lucent

(personal photo of histesting board, used with permission)

Page 33: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Paul Holland - (Testing-Focused)

33

Each note represents a half-day of testing activity (via Session-Based Testing)

Highly recommended reading: For a detailed description of Paul’s experiences with this approach and his lessons learned, check out Michael

Bolton’s “A Sticky Situation” in an upcoming version of STP Magazine. Also, Google “Session-based Test Management”

Page 34: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Kan Ban-ish Tool: Pivotal Tracker

34

Page 35: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

More Details on Hover-Overs

35

Page 36: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

More Detail Still by Clicking

36

Page 37: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Including Recent Test Results

37

Page 38: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Test Descriptions / Size Estimates

38

Page 39: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

39

Page 40: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Soap Opera Testing

40

http://www.logigear.com/logi_media_dir/Documents/Soap_Opera_Testing.pdf

Tests should be fun and aggressive.

Write scenarios that are:

• Reality-based• Exaggerated, and • Condensed

Page 45: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Behavior-Driven Development

45

Page 46: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Behavior-Driven Development

46

Page 47: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

47

Page 48: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

How to Select?

48

Page 49: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

49

... How to Handle More Details?

Page 50: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

50

... and still MORE Details?

Page 51: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

How to Document?

51

Test inputs from all 3

mind maps are entered.

Page 52: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

jklhlkjhkjhkjh

52

Pairwise coverage in 19 highly-varied tests

Page 53: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Auto-populate Mad Libs-like tests

53

Page 54: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Turned into Detailed Test Scripts

54

Detailed test scripts: quickly generated by Hexawise.

Page 55: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Checklists

55

Page 56: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Checklists

56

• Cem Kaner - The Value of Checklists and the Danger of

Scripts: What Legal Training Suggests for Testers http://

www.kaner.com/pdfs/ValueOfChecklists.pdf

• Justin Hunter - http://hexawise.wordpress.com/2009/11/04/

checklists-good-test-scripts-bad/

• Thoughts from the Test Eye - Software Quality

Characteristics

• Michael Hunter, “You Are Not Done Yet”

• Elizabeth Hendrickson - Testing Cheat Sheet

Page 58: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Rapid Reporter (Free Tool)

58

http://testing.gershon.info/reporter/

Page 59: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Checklists

59

www.kaner.com/pdfs/ValueOfChecklists.pdf

Page 60: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

“Easy-Access Executive Summary”

60

http://bitly.com/bundles/hexawise/2

An organized summary of all the links referred to in this presentation is

available in the link below:

Page 61: Test Plan Documentation Strategies - Mind Maps, Test Scripts, and More

Invitation to SlideShare Viewers

61

https://app.hexawise.com/signup-1-5

If you have read this far, odds are very good that you’re the kind of tester who is interested in trying out promising new testing tools.

Hexawise is a powerful test design tool that allows testers to zero in on a small set of unusually-powerful tests. We’d like you to try it and let us

know what you think about it.

We have an unusual - some have even said bizarre - pricing policy. While enterprise licenses of Hexawise start at $50,000 / year, we make fully-featured versions of Hexawise available at no cost for teams of 1 to 5

testers. It’s like having a rich uncle with a $50,0000 BMW who gave you the keys to his car indefinitely. And he wouldn’t get upset even if you kept it or ruined it. Wouldn’t you at least want to take it out for a test drive?

Sign up now