Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing...

18
Agile Testing Challenges Successful Testing on Agile Projects

Transcript of Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing...

Page 1: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

Agile Testing ChallengesSuccessful Testing on Agile Projects

Page 2: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

A il T ti Ch llAgile Testing ChallengesAgile lifecycles are becoming commong y gEvery lifecycle affects testingWhat test strategies work well with Agile methodologies?

Risk-based testinggAutomated testing, including functional regression testingReactive testingSome test strategies work less well

Even properly-chosen test strategies do not alleviate all the testing challenges of Agile projectsGoals of this presentation

U d d h A il i h ll Understand the Agile testing challenges Identify ways to deal with those challenges

Let’s look at these Agile challenges…

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 2

Page 3: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

V l d Sp d f ChVolume and Speed of ChangeAn Agile principle: welcome changing g p p g grequirements, even late in development

Risk-based testing accommodates changeCareful automated testing can accommodate change, Ca e u auto ated test g ca acco odate c a ge, though GUI-based tests are often more sensitive Lightweight reactive testing also accommodates change

Testing challenges still arise from changes in the definition of the product and its correct behavior

Keep the test team informed of such changesp gAccount for differential impact of changes on testing

Otherwise, changes can impose testing inefficiencies

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 3

Page 4: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

R i i Eff ti i Sh t It tiRemaining Effective in Short IterationsSequential lifecycles can provide test teams with a q y plong period to develop and maintain their testsSome iterative lifecycle models allow substantial periods of time between each iterationperiods of time between each iterationAgile methodologies move fasterThe pace and brevity further squeeze the test team’s ability to develop and maintain teststeam s ability to develop and maintain testsGUI test automation techniques can be particularly sensitive Ri k b d t ti t t i h l b f Risk-based testing strategies can help, because of the focus on the important areas Test teams in an Agile world can develop,

i t i d t t t i i k i it dmaintain, and execute tests in risk priority order

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 4

Page 5: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

I i t t I d t U it T tiInconsistent or Inadequate Unit TestingAgile methodologies stress good, Agile methodologies stress good, automated unit testingHowever, we often see two problems

Unit testing has limited bug-finding effectiveness, averaging 25 to 30%, while good system testing averages around 85%y g gNot all programmers do unit testing

The short test execution periods on Agile sprints compound the damage from sprints compound the damage from highly buggy code on system testSo, good unit testing is essentialSo, good unit testing is essential

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 5

Page 6: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

I d R i Ri kIncreased Regression RiskIn Agile lifecycles, code that worked in In Agile lifecycles, code that worked in previous sprints gets churned by new features in each subsequent sprint, increasing the risk of regressionincreasing the risk of regressionGood unit testing can help but has limited bug-finding effectivenessbug finding effectivenessTherefore, we need effective regression testing at the system test level Combine risk-based testing with maintainable automated regression testing at the system test levelat the system test level

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 6

Page 7: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

P Ch i d Mi i T t O lPoor, Changing, and Missing Test OraclesAgile de-values documentation, so testers on Agile projects g g p joften receive insufficient test oraclesEven with adequate test oracles, two Agile principles keep the challenge alive

Agile requires teams to embrace changeAgile requires teams to embrace changeAgile advocates “conveying information [in] face-to-face conversation”

Some project teams change the definition of correct behavior after tests execution starts and sometimes change the definition after tests execution starts, and sometimes change the definition of correct behavior in a meeting without involving the test teamTest strategies cannot solve this; change management is requiredTest oracle problems impose test inefficiencies around 20 to 30 percentTest oracle problems reduce bug-finding effectivenessThese situations frustrate the testers These situations frustrate the testers

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 7

Page 8: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

A Shifti T t B iA Shifting Test BasisRequirements-based testing strategies cannot Requirements based testing strategies cannot handle bad requirements specifications, because they require these as a test oracle and a test basistest basisThe test basis also provides a means to measure coverage and report resultsRi k b d t ti d b th bl i Risk-based testing evades both problems, since quality risk items provide the test basisThe level of risk determines the number of test cases and the priority of the test cases The test team can report in terms of quality risk mitigationmitigation

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 8

Page 9: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

M M tiMany MeetingsAgile focuses on working software not comprehensive g g pdocumentationHowever, this can result in more meetings involving most leads and managers, reducing effectiveness and efficiency O d “ ’ d h A ilOne manager said, “I’m surprised at the name Agile—it should be called couch potato. There are too many meetings. It’s ironic that there are all these books explaining how simple it is.”explaining how simple it is.Excessive meetings can happen in any lifecycleEvery organization, every project, and every lifecycle has to strike the right balance between documentation and gmeetingsFurther, embracing change should not mean analysis paralysis

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 9

Page 10: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

O it t d Sp i t D tiOver-commitment and Sprint DurationsSome Agile projects ritualize the rules, particularly g p j , p ysprint time deadlinesFor example, if a project follows four week sprints and continually over-commits, the test team gets and continually over commits, the test team gets squeezed on the last weekend of every sprintFully resolving this challenge requires team and management maturitymanagement maturityIn the absence of a complete solution, risk-based testing helps the test team deal with over-commitmentcommitment

Reduce the scope of testing based on riskSlip low-risk tests into the next sprint

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 10

Page 11: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

Bli d Sp t i th Sp i t Sil O i tiBlind Spots in the Sprint Silos: OrganizationMost RBCS clients adopting Agile Most RBCS clients adopting Agile methodologies have retained independent testingindependent testingIn some cases, this involves partitioning th t t t th i i t the test team across the various sprints and creating a dotted-line report to the

i t l dsprint leaderThis creates some advantages, but also many disadvantages…

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 11

Page 12: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

Sp i t Sil Ad t (t th Sp i t)Sprint Silos Advantages (to the Sprint)Tester focuses entirely on sprint-related tasksTester focuses entirely on sprint related tasksTester allocates and reallocates time based on (changing) sprint goalsSprint leader can re-direct tester without consulting the test managerTh i t l d d ft ill ll The sprint leader can—and often will—call on the tester work overtime to hit sprint deadlines The test effort for the sprint does not vary once The test effort for the sprint does not vary once the number of testers is determinedBut the advantages have zero-sum-game lelements…

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 12

Page 13: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

Sp i t Sil Di d tSprint Silos DisadvantagesTester loses independencepTester has reduced system-level perspective from broader contact Tester makes mistakes related to gaps and overlapsTester makes mistakes related to gaps and overlapsTest manager loses the ability to manage the workload of test resources, so morale suffers and turnover increases turnover increases Reduced ability to grow a consistent, powerful, maintainable test system due to focus on the sprint’s immediate needssprint s immediate needsThese advantages and disadvantages are not inherent in Agile, but many typical Agile practices tend to accentuate themtend to accentuate them

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 13

Page 14: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

D li ith Sp i t SilDealing with Sprint SilosTest manager (of truly independent team) Test manager (of truly independent team) introduces centripetal forces that bind the team together and makes its actions gconsistent, balancing the sprint-specific centrifugal forces

f hHave a separate test sprint after the development sprint T t t i d i Test team remains engaged in development sprint to avoid exchanging one form of siloing for anotherone form of siloing for another

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 14

Page 15: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

G t ’ H p C lGartner’s Hype CycleTechnology Trigger: Idea generates significant gy gg g gpress and interest Peak of Inflated Expectations: Frenzy of publicity typically generates over-enthusiasm and unrealistic typically generates over enthusiasm and unrealistic expectationsTrough of Disillusionment: Failure to meet expectations makes technique unfashionableexpectations makes technique unfashionableSlope of Enlightenment: Some businesses start to see benefits and practical applicationPlateau of Productivity: The benefits become Plateau of Productivity: The benefits become widely demonstrated and acceptedAs 2010s decade arrives, Agile methodologies are in the peak of inflated expectationsin the peak of inflated expectations

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 15

Page 16: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

M i A il E p t tiManaging Agile ExpectationsSome test teams on Agile projects report to management g p j p gthat…

Quality is not higher or even lower They are challenged by the issues in this presentationTh ’ l l d d hThey can’t tolerate unlimited, unmanaged change

This can create cognitive dissonance in the managersUltimately, these cognitive dissonance experiences will push these approaches along the Hype Cyclethese approaches along the Hype CycleIn the short run, management might blame testing for the problems

Testers and test managers must help their organizations g p gunderstand and manage the challenges to manage expectations

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 16

Page 17: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

C l iConclusions Good test strategies support the goals of Agile methodologiesg pp g g g

Risk-based testing supports increased quality, increased productivity, and flexibilityMaintainable automated regression testing contains the regression risks associated with Agile methodologiesg gReactive testing allows testers to explore areas that risk-based testing and automated regression testing might miss

But good test strategies alone cannot fully resolve the Agile challengeschallengesThe peak of inflated expectations requires the test team to carefully communicate Agile testing challengesIn 2002 I wrote, “The onus is on us as professional testers to h l d l l f t ti b t li ht i ht t t help develop a proper role for systematic but lightweight test processes and adapt the best practices of testing within the context of Agile methods. Hopefully, this will happen before the end of this decade.” However, we still have work to do…

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 17

Page 18: Agile Testing Challenges.ppt - RBCS, Inc · 2015. 9. 22. · carefully communicate Agile testing challenges In 2002 I wrote, “The onus is on us as professional testers to hl d l

T C t t RBCSFor over a dozen years, RBCS has delivered services in consulting, outsourcing and training for software and hardware testing Employing the industry’s most

To Contact RBCStraining for software and hardware testing. Employing the industry s most experienced and recognized consultants, RBCS conducts product testing, builds and improves testing groups and hires testing staff for hundreds of clients worldwide. Ranging from Fortune 20 companies to start-ups, RBCS clients save g g p ptime and money through improved product development, decreased tech support calls, improved corporate reputation and more. To learn more about RBCS, visit www.rbcs-us.com.Add RBCS IAddress: RBCS, Inc.

31520 Beck RoadBulverde, TX 78163-3911USA

Phone: +1 (830) 438-4830Fax: +1 (830) 438-4831E-mail: [email protected] b b

Agile Testing Challengeswww.rbcs-us.com

Copyright (c) RBCS 2008 Page 18

Web: www.rbcs-us.com