Integrate Test Activities in Agile

35
Integrate Test Activities in Agile Projects

description

To be able to effectively and sustainably test in Agile projects the test activities must be properly integrated in the Agile approach. To be efficient and effective automation is essential. In this webinar Rik will cover subjects like Footholds for testing from the Manifesto, the role of Product Owner, Scrum Master and Agile team members, Test Strategy and Test Levels (e.g. E2E-testing), TMap & ISTQB (Agile Extension) and DevOps. Key Takeaways: 1) Be adaptive 2) Use a risk-based approach 3) Testing activities must be automated as much as possible www.eurostarconferences,com http://testhuddle.com/resource/integrate-test-activities-in-agile/

Transcript of Integrate Test Activities in Agile

Page 1: Integrate Test Activities in Agile

Integrate Test Activities in Agile Projects

Page 2: Integrate Test Activities in Agile

|

Integrate Test Activities in Agile Projects

Rik Marselis23 July 2014Live webinar

2Based on the EuroSTAR eBook by Leo van der Aalst & Rik Marselis

Page 3: Integrate Test Activities in Agile

|

Agile is always QD !!

Agile = Quality Development

Agile = Quick Development

Agile = Quick & Dirty

Agile = Quite a Disaster

What is your QD ???

3

Page 4: Integrate Test Activities in Agile

|

Does the Agile Manifesto have good footholds for testing?

4

Page 5: Integrate Test Activities in Agile

|

Does the Agile Manifesto have good footholds for testing?

5NOT REALLY

Page 6: Integrate Test Activities in Agile

|

This is what the Scrum Guide states about quality and testing

6

Page 7: Integrate Test Activities in Agile

|

Benefits of a structured approach to testing in Agile projects

• Insight into and advice about risks related to the quality of the system under test

• Defects found and tracked at an early stage

• Insight into root cause of defects

• Defects prevented

• Test products, such as test cases, can be reused

• The test process is transparent and controllable

• The automation of testing tasks (e.g. test specification or test execution) can be pulled earlier into the project. 7

Page 8: Integrate Test Activities in Agile

|

What are the roles of the Product Owner and the Scrum Master in testing?

8

Page 9: Integrate Test Activities in Agile

|

An Agile team consists of “developers”

9

So specialized testers are no longer needed?

Development team

Scrum master

Product Owner

Deve-

loper

Scrum guide:• Development teams are cross-functional,

with all of the skills necessary

• No sub-teams regardless of domains like business analysis or testing

Testing one of the skills

Scrumteam

Page 10: Integrate Test Activities in Agile

|

What is the role of the Product Owner?

(related to the quality risks)

Set the criteria for the level of quality that is needed to reach a fit for purpose business solutionat an acceptable level of risk

10Focus on Quality and Risk

Page 11: Integrate Test Activities in Agile

|

What is the role of the Product Owner?

Accept the result (or not)

This may need acceptance testing

11

Page 12: Integrate Test Activities in Agile

|

What is the role of the Scrum Master in quality control and

testing?Scrum guide:• The Scrum Master helps the development team

to create high-value products assists the team in achieving the right quality level

• A Scrum Master can detect incomplete transparency by inspecting the artifacts, sensing patterns, listening closely to what is being said, and detecting differences between expected and real results this sounds like quality control, doesn’t it?By applying early quality measures the Scrum team makes sure to minimize rework. 12

Page 13: Integrate Test Activities in Agile

|

Which team member(s) perform(s) the testing activities and when?

13

Page 14: Integrate Test Activities in Agile

|

Which team member(s) perform(s) the testing activities and when?

14

Development team

Scrum master

Product Owner

Deve-

loper

Every team member takes her/his share of testing tasks

(and the Product Owner and Scrum Master also take part to a certain extent)It is advisable to have a professional tester in the team to support the other members with quality & testing tasks, e.g. risk analysis, reviewing, create test cases, etc.

Page 15: Integrate Test Activities in Agile

|

Collaboration…

15

Page 16: Integrate Test Activities in Agile

|

Model Based Testing

In Agile projects time pressure is felt even more than in tradional ITSo creating test cases must be done as easy as possible

Let the analysis/design-specialist of the team create “models” (e.g. flowcharts, UML, etc.)

Use a Model Based Testing tool to derive test cases.

(and sometimes the tester first has to translate a “white-board-model” to a useable format)

16

Page 17: Integrate Test Activities in Agile

|

Exploratory Testing

Creating test cases in an automated way is great

BUT…

In order to deal with the challenges of real lifeTesting also must be a creative activity

SO …

Exploring is essential.

Various ways of Exploratory testing are known,As a minimum: Use charters and logs.And remember Exploratory Testing is NOT Ad Hoc Testing !

17

Page 18: Integrate Test Activities in Agile

|

Collaboration across the application lifecycle: DevOps

18

Everybody works together

on all activities

of the Applicatio

n Lifecycle:

No more silo’s!!

Page 19: Integrate Test Activities in Agile

|

Support for Agile testing needed?

When every Agile team has no more than one tester how can you guarantee all necessary skills are available?

Organize support, for example on subjects like:Test Automation (execution, test case creation, …)Non-functional testing (security, performance, …)Test Management (reporting, defect management,…)

In larger organizations a central support team can be created, with e.g. the “test manager new style” and the test tooling expert

In smaller organizations ad hoc support can be obtained from external entities

19

Page 20: Integrate Test Activities in Agile

|

How to deal with the test strategy?

20

Page 21: Integrate Test Activities in Agile

|

The activities of testing

21Traditionally these were phases, but they don’t need to be fully

sequential

Pr S E C

I

Ctrl

Pl

Planning Setting up and maintaining Infrastructure

Preparation Specification Execution Completion Control

Page 22: Integrate Test Activities in Agile

|

Testing activities in Scrum

22

Source: TMap NEXT in Scrum

Be ADAPTIVE!

Page 23: Integrate Test Activities in Agile

|

How to deal with the test strategy?

Traditional approach:Based on the Test Strategy, allocate Test Units and Test Techniques

In Agile/Scrum:Define the “project test strategy” in the project planning (sprint 0)Define the “sprint test strategy” in the sprint planning.Be aware that the strategy must be adapted to changed circumstances whenever necessary.

And, very important:- Regression testing strategy and- Test automation strategy

23

A test unit is a collection of processes,

transactions and/or

functions that are tested

collectively.

So this may be anything from a tiny function to a complete

business process

depending on your goal.

Page 24: Integrate Test Activities in Agile

|

Focus on Quality and Risk

24

Overview testing

activities of TMap NEXT in Scrum

Evaluate backlog items and communicate obscurities with product owner

Determine product risk of each backlog item and record it on the (story) card(input for planning poker, assigning story points)

Page 25: Integrate Test Activities in Agile

|

Test Strategy: Early quality measures

“This requirement was not totally correct” is quite disturbing in tradional IT, because unplanned rework has to be done.

In Agile IT having the right quality of artifacts is even more important, since the difference between achieving your sprint goals or not is in having adequate quality.

So you need early quality measures:• A clear and good Definition of Done• Reviews of intermediate- and end-products• Checklists to help not to forget important

things• Standards to help work in an efficient manner

25

Page 26: Integrate Test Activities in Agile

|

Regression testing

In every sprint the number of products increases. You must make sure products of previous sprints are still OK.Thus regression testing

In sprint “n”:• Define test cases for new and changed

products• Manually execute these test cases• Keep track of test cases that must be in

regression test

In sprint “n+1”• Automate the regression test cases• Execute the complete regression test set 26

Programmers usually are very good in programming test tools.

At the start of sprint “n+1” they can very wel do a regression test

task

Page 27: Integrate Test Activities in Agile

|

Do we still distinguish test levels?&How to go about with end-to-end-testing? 27

Page 28: Integrate Test Activities in Agile

|

Separate test-sprints?

28No separate testing !!!

Development

Testing

System to

be tested Defec

ts to

be fi

xed

Scrum guide:No sub-teams

Page 29: Integrate Test Activities in Agile

|

Test levels are no longer “levels”

In the dutch language test levels are called “testsoort” which translates to “test variety”

And this exactly says what we still need in Agile:Various scopes of testing

The pitfall of Agile teams is to focus on unit testing only. Or to focus on functional testing only.

Keep in mind the objectives of all test levels when defining and executing the tests in an Agile team.

29

Be ADAPTIVE!

Page 30: Integrate Test Activities in Agile

|

But how to deal withEnd-to-end testing?

30

System 1

Business process (complete cycle from customer to customer)

System 2

System 3

System 4

System 5

Existingunchanged

Existing uncha nged Scope

E2Etest

Page 31: Integrate Test Activities in Agile

|

Combine lifecycle models pragmatically

31

Demand

Supply

e.g. E2E-test

Page 32: Integrate Test Activities in Agile

|

About sustainability…

32

Conclusion: You can’t sprint all the timeAgile principle: Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely. (prevent having a team-burnout; implement the Agile principles in a proper way!)

How long does the 100 meter sprint take?100 meter sprint +10 seconds

How long does it take to sprint a marathon?42 kilometer sprinting +70 minutes

What is the world record for a marathon?Marathon record +120 minutes

Prevent team-

burnout !!

Page 33: Integrate Test Activities in Agile

|

For effective and sustainable testing:

Integrate all activities including testing(for as far as possible)

Testing is primarily a task for all team members(not necessarily a separate function)

Remember to still have your different views on testing(test levels / test varieties)

Early quality is more important than ever(do reviews to get it right first time!)

33Rik Marselis, 23 July 2014Be ADAPTIVE!

Page 34: Integrate Test Activities in Agile

|

Questions ? TestHuddle.com

34For questions & answers: join us at www.testhuddle.com

www.eurostarconferences.com www.ict-books.com

Page 35: Integrate Test Activities in Agile

|

Rik Marselis

35

Management Consultant Quality & Testing atOver 30 years IT experience, of which 15 years quality & testing

Advisor, process-improver & coach at many organizationsPrince2 Practitioner, CMMI and CISA

Trainer for various courses, e.g. Agile testing

TMap, TPI en ISTQB accredited

Research Author of various books & articlesFellow of SogetiLabs, Speaker at various conferences

Chairman (association of testers, 1600 members)

@rikmarselis