t3con15: the best do's and don'ts of a bug tracking workflow

73
The Do’s & Don’ts of a bug tracking workflow. @tompeham | @usersnap

Upload: usersnap

Post on 16-Jan-2017

3.146 views

Category:

Software


4 download

TRANSCRIPT

Page 1: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The Do’s & Don’ts of a bug tracking workflow.

@tompeham | @usersnap

Page 2: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

That’s me. Thomas Peham.

● Tech Marketer at Usersnap, a visual bug tracking tool.● managing bugtrackers.io

● previously:○ Project Manager at a TYPO3 agency○ Project Manager at Styria Digital One

● blogger for various web development & design blogs.

● @tompeham I @usersnap I @bugtrackers

Page 3: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Outline.

● The problem of bugs.

● 4 steps for tracking down bugs. (and fixing them.)

● From bugs to no bugs.

● Best bug tracking takeaways

Page 4: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Why I’d like to talk about bug tracking today.Or: What is Usersnap about?

@tompeham | @usersnap

Page 5: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

bug tracking, the black sheep?

Page 6: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Compared to other web development areas, bug tracking is pretty “old school”.

Page 7: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

How people react when it comes to tracking bugs...

Page 8: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Or this way...

Page 9: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.

Page 10: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.

Page 11: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.

Bugs are expensive.

Page 12: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.

Bugs are expensive.(approx. $ 312 billion per year globally)

source: Cambridge University

Page 13: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.

Developers don’t test their code?!

source: ashleynolan.co.uk

Page 14: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The problem of software bugs.What tool do you use to test your

JavaScript? (if any)

source: ashleynolan.co.uk

Page 15: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Web development has changed. Why bug tracking hasn’t?

Page 16: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

So, how do we solve that problem of bugs?

I SEE BUGSEVERYWHERE

Page 17: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 1: Ensure a bug-free development environment.

Page 18: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 1: Ensure a bug-free development environment.

Yeah, but there will always be some bugs.

Page 19: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Agree on: what is a bug. And what isn’t.

Find the real bugs.

Okay then. Step 1) Define + find bugs.

Page 20: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

“A software bug is an error, flaw, failure, or fault in a computer program or system that causes it to produce an incorrect or unexpected result or to behave in unintended ways.”

What is a bug?

Page 21: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

software bug

...error, flaw, failure, or fault….

...produce incorrect or unexpected result…

What is a bug?

Page 22: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

software bug

something which is not working as designed.

What is a bug?

Page 23: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

What is a bug?This is a bug...

Page 24: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

something not working as designed.

or.

not designed as it should work?

What is not a bug?

Page 25: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

in theory: it’s easy.

in practice: it’s not.

What is not a bug?

Page 26: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

So, who’s in charge?

The project manager?QA Team Lead?Development Team Lead?

What is not a bug?

Page 27: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Agile sounds great, right?

What is not a bug? Who’s in charge!?

Page 28: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

So, who’s in charge?

The project manager?QA Team Lead?Development Team Lead?

What is not a bug?

Decide + communicate

at the beginning of a

project!

Page 29: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

1) automated testing2) manual testing3) crowd testing4) the “banana principle”:

or testing with the customer

How to find bugs?

Page 30: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

How to find bugs? Automated testing.

Specify test cases run tests test report

Page 31: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

+ no infrastructure (devices, browsers, vms) needed.

+ many platforms & browsers are supported.

+ fast & reliable test cases.

How to find bugs? Automated testing. Benefits.

Page 32: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

- Investment in tools required.

- No “real device” feeling - tools have limitations- “agile testing” hardly

possible

How to find bugs? Automated testing. Drawbacks.

Page 33: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

How to find bugs? Manual testing.

write test cases & user stories manual testing test

report

Page 34: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

+ short-term cost is lower+ manual testing = agile

testing+ more user-centric than

automated testing.

How to find bugs? Manual testing. Benefits.

Page 35: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

- investment in human resources is required.

- test execution takes longer than automated testing.

- threat of “human errors”

How to find bugs? Manual testing. Drawbacks.

Page 36: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Let the crowd test your website.

Combines the benefits of manual + automated testing.

How to find bugs? crowdsourced testing.

write test cases & user stories

let the crowd test

test report

Page 37: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

+ user-centric feedback+ fast & reliable+ “outside” view to system

How to find bugs? crowdsourced testing. Benefits.

Page 38: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

- find the right crowd (=target group)

- still in its early beginnings

How to find bugs? crowdsourced testing. Drawbacks.

Page 39: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Automated vs Manual?

Robots vs human power.

TDD vs agile.

Pre-scripting vs user-centric.

Page 40: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 2) document bugs.

Page 41: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 2) document bugs.

How a bug report form should look like.

Not.

Page 42: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 2) document bugs.

How a bug report form should look like.

Not.

Page 43: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

But: Information needed when reporting a bug. Or:The Art of Bug Reporting.

Page 44: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

But: Information needed when reporting a bug. Or:The Art of Bug Reporting.

- The What? A description of what happened.- The Where? Place where the bug happened.- The When? Time frame when something

happened.- The Who? Person who discovered the issue.- The Why? Why do you think it happened?

Page 45: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

How to write the perfect bug report

- summary + prioritization- details on how to find the

bug again.- meta information.- ….

Page 46: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Your website = place where the error occured.

How to fix the bug documenting process.

crime scene:written document of problem description

bug report:place where the problem should get reproduced % fixed.

developer’s code:

Page 47: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Your website = Where the error occurs.

How to fix the bug documenting process.

crime scene:written document of problem description

bug report:place where the problem should get reproduced % fixed.

developer’s code:This is a loooong way for fixing bugs.

Page 48: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

= browser

Why not stay in the same medium?

crime scene:= browser

bug report:= browser?

developer’s code:

This is a visual experience This is a visual experience

Page 49: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 3) Reproduce it.

“If you can’t reproduce a bug, it’s almost impossible to fix.”

Page 50: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 3) Reproduce it. But how?

bug reporting tool

the client: the project team

project mgmt tool

development environment

But it works on my environment!

There’s a bug!

Page 51: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 3) Reproduce it. But how?

integrated PM + bug reporting tool

the client: the project team

development environment

screenshots screenshots+meta info

Page 52: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 4) Fix bugs.

Page 53: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 4) Fix bugs.

If you’ve followed step 1 - 3, step 4 is easy.

Is it? ;-)

Page 54: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 4) Fix bugs.

What does a closed bug mean?

Page 55: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 4) Fix bugs.

Page 56: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Step 4) Fix bugs.Who is responsible for

this decision?

Page 57: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

So, to the recap...

Page 58: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

From bugs to no bugs.

Bugs Find them. Document them.

Reproduce them. Fix them. No

bugs.

Page 59: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Key takeaways

Page 60: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The Waterfall...

Page 61: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

The Waterfall...

...is no longer valid.

Page 62: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

agile testing

Page 63: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

agile testing

#FTW

Page 64: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

agile testing

#FTW

Decide on responsibilities!

Page 65: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

ad-hoc bug reporting

Page 66: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

visual bug reporting

Page 67: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

bug tracking responsibilities

Page 68: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Open vs. closed bugs.

Page 69: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

But what if...

Page 70: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Communication matters.

Page 71: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Everybody is a QA agent

Page 72: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

Now it’s up to you.

Page 73: T3CON15: The Best Do's And Don'ts of a Bug Tracking Workflow

@tompeham @usersnap @bug trackers

[email protected]

Thomas Peham