Integrate Test Activities in Agile

Post on 10-May-2015

695 views 1 download

Tags:

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

Integrate Test Activities in Agile Projects

|

Integrate Test Activities in Agile Projects

Rik Marselis23 July 2014Live webinar

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

|

Agile is always QD !!

Agile = Quality Development

Agile = Quick Development

Agile = Quick & Dirty

Agile = Quite a Disaster

What is your QD ???

3

|

Does the Agile Manifesto have good footholds for testing?

4

|

Does the Agile Manifesto have good footholds for testing?

5NOT REALLY

|

This is what the Scrum Guide states about quality and testing

6

|

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

|

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

8

|

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

|

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

|

What is the role of the Product Owner?

Accept the result (or not)

This may need acceptance testing

11

|

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

|

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

13

|

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.

|

Collaboration…

15

|

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

|

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

|

Collaboration across the application lifecycle: DevOps

18

Everybody works together

on all activities

of the Applicatio

n Lifecycle:

No more silo’s!!

|

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

|

How to deal with the test strategy?

20

|

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

|

Testing activities in Scrum

22

Source: TMap NEXT in Scrum

Be ADAPTIVE!

|

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.

|

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)

|

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

|

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

|

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

|

Separate test-sprints?

28No separate testing !!!

Development

Testing

System to

be tested Defec

ts to

be fi

xed

Scrum guide:No sub-teams

|

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!

|

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

|

Combine lifecycle models pragmatically

31

Demand

Supply

e.g. E2E-test

|

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 !!

|

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!

|

Questions ? TestHuddle.com

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

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

|

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