Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf ·...

12
Risk-based Testing Fallacies How Even Smart People Misuse a Best Practice

Transcript of Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf ·...

Page 1: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Risk-based Testing FallaciesHow Even Smart People Misuse a Best Practice

Page 2: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

I t d tiIntroduction Mark Twain once wrote, “It ain’t what you Mark Twain once wrote, It ain t what you don’t know that gets you into trouble. It’s what you know for sure that just ain’t so.”What you know that just ain’t so is called a fallacySoftware testing fallacies abound including in Software testing fallacies abound, including in risk-based testing If you apply fallacious thinking when doing y pp y g grisk-based testing, you’ll miss out on the full effectiveness and efficiency benefitsLet’s identif and dispel these fallaciesLet s identify and dispel these fallacies…

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 2

Dena Pauletti
Line
Page 3: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It’ J t C C tti (1)It’s Just Corner Cutting (1)The idea for this webinar came when someone The idea for this webinar came when someone said, “Well, risk-based testing means not testing everything.” Uh, yeah, so does every kind of testingThere are an infinite number of tests you could run and you are going to select a finite subset run, and you are going to select a finite subset from that infinite setThe only question: Will you select that subset y q yintelligently, with an understanding of the likelihood and impact associated with potential problems?problems?

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 3

Dena Pauletti
Line
Page 4: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It’ J t C C tti (2)It’s Just Corner Cutting (2)A related fallacy is the idea that risk-based testing doesn’t y gcover the requirementsUnfortunately, some people promote an approach they call risk-based testing that involves exactly that

h kIn some cases you might skip testing some requirementsGenerally, you should cover not only the important risks but all the requirements E i t hEnsure every requirement has:

At least one associated risk item At least one associated test case

Done via traceability in your test management toolDone via traceability in your test management toolThis is an example of a blended strategy of risk-based and requirements-based testing

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 4

Dena Pauletti
Line
Page 5: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It’ All Ab t T h i l Ri kIt’s All About Technical RiskSome people suggest that risk-based testing is a Some people suggest that risk based testing is a form of reactive testing

Just wait to see what the system does (i.e., no planning, analysis, or up-front test development)planning, analysis, or up front test development)Use experience, defect taxonomies, and other aids to predict and find as many bugs as we can in a limited period of timelimited period of time

That approach is just a big geeky bug huntIt does not cover all of the objectives most

i ti h f t t torganizations have for test teamsYes, consider defect likelihood in risk-based testing, but also consider impactg p

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 5

Dena Pauletti
Line
Page 6: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

Th T t T C D It AlThe Test Team Can Do It AloneThe symptom of this fallacyy p y

Simply analyze requirements or other informationDon’t solicit input from other project and product stakeholdersTest based only on analysis of requirements

That’s just a risk-aware form of requirements-based testinggTrue risk-based testing is really powerful because it involves input from a cross-functional team of project and product stakeholdersproject and product stakeholdersRisk-based testing always values getting the right quality risk analysis team together over the right process or templatesprocess or templates

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 6

Dena Pauletti
Line
Page 7: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It’ O l Ab t S l ti T t CIt’s Only About Selecting Test CasesOne major benefit of risk based testing is the One major benefit of risk based testing is the smart selection of test casesHowever, risk-based testing also provides three other benefitsother benefits

Reporting test results in terms of residual risk to make test status clearerR i t t i i k i it d i i th Running tests in risk priority order maximizes the likelihood of finding important bugs firstTriaging your test cases based on risk (if necessary) ensures the most important tests get necessary) ensures the most important tests get run

Don’t miss out on these additional benefits

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 7

Dena Pauletti
Line
Page 8: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It S N thi Ab t T t D iIt Says Nothing About Test DesignRisk based testing does not prescribe the test Risk based testing does not prescribe the test design technique, but it does gives guidanceWe recommend a descending scale for the extent of testingextent of testing

ExtensiveBroadCursoryOpportunityReport bugs onlyp g y

The test engineer selects the techniques for correct risk mitigationWe have some guidelines on our Articles pageWe have some guidelines on our Articles page

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 8

Dena Pauletti
Line
Page 9: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It C B D Q tit ti lIt Can Be Done QuantitativelyThe level of risk calculated by multiplying impact and y p y g plikelihood is an ordinal scaleIt’s dangerous to try to use level of risk quantitatively; e.g.,

To calculate person-hours of test effort requiredTo predict exactly how many test cases are neededTo predict exactly how many test cases are needed

Risk-based testing is not quantitative risk management, it’s qualitativeWe don’t have pools of statistical failure data (e.g., insurance

)p ( g

companies)The test conditions are the risk items identified during the quality risk analysisThe degree of coverage is determined by looking at two factors The degree of coverage is determined by looking at two factors, likelihood and impactBased on the relative level of risk, we select test design techniques that will give the proper level of coverage

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 9

Dena Pauletti
Line
Page 10: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

It D ’t R i A D t tiIt Doesn’t Require Any DocumentationThis is usually connected to the reactive This is usually connected to the reactive approach being incorrectly called risk-based testingTo have proper risk-based testing, you need to capture:

The risk itemsThe risk itemsTheir risk ratingsOther ancillary information, such as requirements d fdefects

Without that data, you can’t align the other testing work with the risks and their ratingstesting work with the risks and their ratings

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 10

Dena Pauletti
Line
Page 11: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

C l iConclusionsWe’ve seen eight dangerous fallacies We ve seen eight dangerous fallacies associated with risk-based testingEach of these fallacies limits—or Each of these fallacies limits—or eliminates—some or all of the benefitsDon’t cut yourself off from the benefits Don t cut yourself off from the benefits of risk-based testing, a powerful test strategygyYou can find more information (e.g., articles, videos, etc.) on our website…, , )

Risk-based Testing Fallacieswww.rbcs-us.com

Copyright (c) RBCS 2015 Page 11

Dena Pauletti
Line
Page 12: Dangerous Risk-based Testing Fallaciesrbcs-us.com/site/...risk-based-testing-fallacies.pdf · Software testing fallacies abound including in fallacies abound, including in risk-based

Time Tested. Testing Improved

T C t t RBCSFor 20 years, RBCS has delivered consulting, outsourcing and training services to clients helping them with software and hardware testing Employing the

To Contact RBCSclients, helping them with software and hardware testing. Employing the industry’s most experienced and recognized consultants, RBCS advises its clients, trains their employees, conducts product testing, builds and improves testing groups, and hires testing staff for hundreds of clients worldwide. Ranging from g p g g gFortune 20 companies to start-ups, RBCS clients save time 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-4830E-mail: [email protected]: www.rbcs-us.comT itt @RBCS

Risk-based Testing Fallacies Page 12

Twitter: @RBCSFacebook: RBCS-Inc

www.rbcs-us.com Copyright (c) RBCS 2015

Dena Pauletti
Line