SlideShare ist ein Scribd-Unternehmen logo
1 von 89
Downloaden Sie, um offline zu lesen
Principles of Software Testing
Part I
Satzinger, Jackson, and Burd
Testing
 Testing is a process of identifying defects
 Develop test cases and test data
 A test case is a formal description of
• A starting state
• One or more events to which the software
must respond
• The expected response or ending state
 Test data is a set of starting states and
events used to test a module, group of
modules, or entire system
Testing discipline activities
Test types and detected defects
Unit Testing
 The process of testing individual methods,
classes, or components before they are
integrated with other software
 Two methods for isolated testing of units
 Driver
• Simulates the behavior of a method that
sends a message to the method being
tested
 Stub
• Simulates the behavior of a method that
has not yet been written
Integration Testing
 Evaluates the behavior of a group of
methods or classes
 Identifies interface compatibility, unexpected
parameter values or state interaction, and run-
time exceptions
 System test
 Integration test of the behavior of an entire
system or independent subsystem
 Build and smoke test
 System test performed daily or several times a
week
Usability Testing
 Determines whether a method, class,
subsystem, or system meets user requirements
 Performance test
 Determines whether a system or subsystem can
meet time-based performance criteria
• Response time specifies the desired or maximum
allowable time limit for software responses to
queries and updates
• Throughput specifies the desired or minimum
number of queries and transactions that must be
processed per minute or hour
User Acceptance Testing
 Determines whether the system fulfills user
requirements
 Involves the end users
 Acceptance testing is a very formal activity
in most development projects
Who Tests Software?
 Programmers
 Unit testing
 Testing buddies can test other’s programmer’s
code
 Users
 Usability and acceptance testing
 Volunteers are frequently used to test beta
versions
 Quality assurance personnel
 All testing types except unit and acceptance
 Develop test plans and identify needed changes
Part II
Principles of Software Testing for
Testers
Module 0: About This Course
Course Objectives
 After completing this course, you will be a more
knowledgeable software tester. You will be able to
better:
 Understand and describe the basic concepts of
functional (black box) software testing.
 Identify a number of test styles and techniques and
assess their usefulness in your context.
 Understand the basic application of techniques used to
identify useful ideas for tests.
 Help determine the mission and communicate the
status of your testing with the rest of your project team.
 Characterize a good bug report, peer-review the reports
of your colleagues, and improve your own report writing.
 Understand where key testing concepts apply within the
context of the Rational Unified Process.
Course Outline
0 – About This Course
1 – Software Engineering Practices
2 – Core Concepts of Software Testing
3 – The RUP Testing Discipline
4 – Define Evaluation Mission
5 – Test and Evaluate
6 – Analyze Test Failure
7 – Achieve Acceptable Mission
8 – The RUP Workflow As Context
Principles of Software Testing for
Testers
Module 1: Software Engineering Practices
(Some things Testers should know about them)
Objectives
 Identify some common software
development problems.
 Identify six software engineering practices
for addressing common software
development problems.
 Discuss how a software engineering
process provides supporting context for
software engineering practices.
Symptoms of Software Development Problems
 User or business needs not met
 Requirements churn
 Modules don’t integrate
 Hard to maintain
 Late discovery of flaws
 Poor quality or poor user experience
 Poor performance under load
 No coordinated team effort
 Build-and-release issues
Trace Symptoms to Root Causes
Needs not met
Requirements churn
Modules don’t fit
Hard to maintain
Late discovery
Poor quality
Poor performance
Colliding developers
Build-and-release
Incorrect requirements
Ambiguous communications
Brittle architectures
Overwhelming complexity
Undetected inconsistencies
Insufficient testing
Subjective assessment
Waterfall development
Uncontrolled change
Insufficient automation
Symptoms Root Causes
Software Engineering
Practices
Develop Iteratively
Manage Requirements
Use Component Architectures
Model Visually (UML)
Continuously Verify Quality
Manage Change
Continuously Verify Quality
Poor quality
Undetected inconsistencies
Insufficient testing
Subjective assessment
Software Engineering Practices Reinforce Each Other
Validates architectural
decisions early on
Addresses complexity of design/
implementation incrementally
Measures quality early and often
Evolves baselines incrementally
Ensures users involved
as requirements evolve
Develop Iteratively
Manage Requirements
Use Component Architectures
Model Visually (UML)
Continuously Verify Quality
Manage Change
Software Engineering
Practices
Principles of Software Testing for
Testers
Module 2: Core Concepts of Software
Testing
Objectives
 Introduce foundation topics of functional
testing
 Provide stakeholder-centric visions of
quality and defect
 Explain test ideas
 Introduce test matrices
Module 2 Content Outline
Definitions
 Defining functional testing
 Definitions of quality
 A pragmatic definition of defect
 Dimensions of quality
 Test ideas
 Test idea catalogs
 Test matrices
Functional Testing
 In this course, we adopt a common, broad
current meaning for functional testing. It is
 Black box
 Interested in any externally visible or
measurable attributes of the software other than
performance.
 In functional testing, we think of the
program as a collection of functions
 We test it in terms of its inputs and outputs.
How Some Experts Have Defined Quality
 Fitness for use (Dr. Joseph M. Juran)
 The totality of features and characteristics of a
product that bear on its ability to satisfy a given
need (American Society for Quality)
 Conformance with requirements (Philip Crosby)
 The total composite product and service
characteristics of marketing, engineering,
manufacturing and maintenance through which
the product and service in use will meet
expectations of the customer (Armand V.
Feigenbaum)
 Note absence of “conforms to
specifications.”
Quality As Satisfiers and Dissatisfiers
 Joseph Juran distinguishes between
Customer Satisfiers and Dissatisfiers as key
dimensions of quality:
 Customer Satisfiers
• the right features
• adequate instruction
 Dissatisfiers
• unreliable
• hard to use
• too slow
• incompatible with the customer’s equipment
A Working Definition of Quality
Quality is value to some person.
---- Gerald M. Weinberg
Change Requests and Quality
 A “defect” – in the eyes of a project
stakeholder– can include anything about
the program that causes the program to
have lower value.
 It’s appropriate to report any aspect of the
software that, in your opinion (or in the
opinion of a stakeholder whose interests
you advocate) causes the program to have
lower value.
Dimensions of Quality: FURPS
Reliability
 e.g., Test the application
behaves consistently and
predictably.
Performance
 e.g., Test online
response under average
and peak loading
Functionality
 e.g., Test the accurate
workings of each
usage scenario
Usability
 e.g., Test application from
the perspective of
convenience to end-user.
Supportability
 e.g., Test the ability to
maintain and support
application under
production use
A Broader Definition of Dimensions of Quality
 Accessibility
 Capability
 Compatibility
 Concurrency
 Conformance to
standards
 Efficiency
 Installability and
uninstallability
 Localizability
 Maintainability
 Performance
 Portability
 Reliability
 Scalability
 Security
 Supportability
 Testability
 Usability
Collectively, these are often called Qualities of Service,
Nonfunctional Requirements, Attributes, or simply the -ilities
Test Ideas
 A test idea is a brief statement that
identifies a test that might be useful.
 A test idea differs from a test case, in that
the test idea contains no specification of the
test workings, only the essence of the idea
behind the test.
 Test ideas are generators for test cases:
potential test cases are derived from a test
ideas list.
 A key question for the tester or test analyst
is which ones are the ones worth trying.
Exercise 2.3: Brainstorm Test Ideas (1/2)
 We’re about to brainstorm, so let’s review…
 Ground Rules for Brainstorming
 The goal is to get lots of ideas. You brainstorm
together to discover categories of possible tests—
good ideas that you can refine later.
 There are more great ideas out there than you think.
 Don’t criticize others’ contributions.
 Jokes are OK, and are often valuable.
 Work later, alone or in a much smaller group, to
eliminate redundancy, cut bad ideas, and refine and
optimize the specific tests.
 Often, these meetings have a facilitator (who runs the
meeting) and a recorder (who writes good stuff onto
flipcharts). These two keep their opinions to
themselves.
Exercise 2.3: Brainstorm Test Ideas (2/2)
 A field can accept integer values between
20 and 50.
 What tests should you try?
A Test Ideas List for Integer-Input Tests
 Common answers to the exercise would include:
Test Why it’s interesting Expected result
20 Smallest valid value Accepts it
19 Smallest -1 Reject, error msg
0 0 is always interesting Reject, error msg
Blank Empty field, what’s it do? Reject? Ignore?
49 Valid value Accepts it
50 Largest valid value Accepts it
51 Largest +1 Reject, error msg
-1 Negative number Reject, error msg
4294967296 2^32, overflow integer? Reject, error msg
Discussion 2.4: Where Do Test Ideas Come From?
 Where would you derive Test Ideas Lists?
 Models
 Specifications
 Customer complaints
 Brainstorm sessions among colleagues
A Catalog of Test Ideas for Integer-Input tests
 Nothing
 Valid value
 At LB of value
 At UB of value
 At LB of value - 1
 At UB of value + 1
 Outside of LB of value
 Outside of UB of value
 0
 Negative
 At LB number of digits or chars
 At UB number of digits or chars
 Empty field (clear the default
value)
 Outside of UB number of digits
or chars
 Non-digits
 Wrong data type (e.g. decimal
into integer)
 Expressions
 Space
 Non-printing char (e.g.,
Ctrl+char)
 DOS filename reserved chars
(e.g., " * . :")
 Upper ASCII (128-254)
 Upper case chars
 Lower case chars
 Modifiers (e.g., Ctrl, Alt, Shift-
Ctrl, etc.)
 Function key (F2, F3, F4, etc.)
The Test-Ideas Catalog
 A test-ideas catalog is a list of related test
ideas that are usable under many
circumstances.
 For example, the test ideas for numeric input
fields can be catalogued together and used for
any numeric input field.
 In many situations, these catalogs are
sufficient test documentation. That is, an
experienced tester can often proceed with
testing directly from these without creating
documented test cases.
Apply a Test Ideas Catalog Using a Test Matrix
Field name
Field name
Field name
Review: Core Concepts of Software Testing
 What is Quality?
 Who are the Stakeholders?
 What is a Defect?
 What are Dimensions of Quality?
 What are Test Ideas?
 Where are Test Ideas useful?
 Give some examples of a Test Ideas.
 Explain how a catalog of Test Ideas could
be applied to a Test Matrix.
Principles of Software Testing for
Testers
Module 4: Define Evaluation Mission
So? Purpose of Testing?
 The typical testing group has two key
priorities.
 Find the bugs (preferably in priority order).
 Assess the condition of the whole product
(as a user will see it).
 Sometimes, these conflict
 The mission of assessment is the underlying
reason for testing, from management’s
viewpoint. But if you aren’t hammering hard on
the program, you can miss key risks.
Missions of Test Groups Can Vary
 Find defects
 Maximize bug count
 Block premature product releases
 Help managers make ship / no-ship decisions
 Assess quality
 Minimize technical support costs
 Conform to regulations
 Minimize safety-related lawsuit risk
 Assess conformance to specification
 Find safe scenarios for use of the product (find
ways to get it to work, in spite of the bugs)
 Verify correctness of the product
 Assure quality
A Different Take on Mission: Public vs. Private Bugs
 A programmer’s public bug rate includes all
bugs left in the code at check-in.
 A programmer’s private bug rate includes
all the bugs that are produced, including the
ones fixed before check-in.
 Estimates of private bug rates have ranged
from 15 to 150 bugs per 100 statements.
 What does this tell us about our task?
Defining the Test Approach
 The test approach (or “testing strategy”)
specifies the techniques that will be used to
accomplish the test mission.
 The test approach also specifies how the
techniques will be used.
 A good test approach is:
 Diversified
 Risk-focused
 Product-specific
 Practical
 Defensible
Heuristics for Evaluating Testing Approach
 James Bach collected a series of heuristics
for evaluating your test approach. For
example, he says:
 Testing should be optimized to find important
problems fast, rather than attempting to find all
problems with equal urgency.
 Please note that these are heuristics – they
won’t always the best choice for your
context. But in different contexts, you’ll find
different ones very useful.
What Test Documentation Should You Use?
 Test planning standards and templates
 Examples
 Some benefits and costs of using IEEE-829
standard based templates
 When are these appropriate?
 Thinking about your requirements for test
documentation
 Requirements considerations
 Questions to elicit information about test
documentation requirements for your project
Write a Purpose Statement for Test Documentation
 Try to describe your core documentation
requirements in one sentence that doesn’t
have more than three components.
 Examples:
 The test documentation set will primarily
support our efforts to find bugs in this version,
to delegate work, and to track status.
 The test documentation set will support ongoing
product and test maintenance over at least 10
years, will provide training material for new
group members, and will create archives
suitable for regulatory or litigation use.
Review: Define Evaluation Mission
 What is a Test Mission?
 What is your Test Mission?
 What makes a good Test Approach (Test
Strategy)?
 What is a Test Documentation Mission?
 What is your Test Documentation Goal?
Principles of Software Testing for
Testers
Module 5: Test & Evaluate
Test and Evaluate – Part One: Test
 In this module, we drill into
Test and Evaluate
 This addresses the “How?”
question:
 How will you test those
things?
Test and Evaluate – Part One: Test
 This module focuses
on the activity
Implement Test
 Earlier, we covered
Test-Idea Lists, which
are input here
 In the next module,
we’ll cover Analyze
Test Failures, the
second half of Test
and Evaluate
Review: Defining the Test Approach
 In Module 4, we covered Test Approach
 A good test approach is:
Diversified
Risk-focused
Product-specific
Practical
Defensible
 The techniques you apply should follow
your test approach
Discussion Exercise 5.1: Test Techniques
 There are as many as 200 published testing
techniques. Many of the ideas are
overlapping, but there are common themes.
 Similar sounding terms often mean different
things, e.g.:
 User testing
 Usability testing
 User interface testing
 What are the differences among these
techniques?
Dimensions of Test Techniques
 Think of the testing you do in terms of five
dimensions:
 Testers: who does the testing.
 Coverage: what gets tested.
 Potential problems: why you're testing (what
risk you're testing for).
 Activities: how you test.
 Evaluation: how to tell whether the test passed
or failed.
 Test techniques often focus on one or two
of these, leaving the rest to the skill and
imagination of the tester.
Test Techniques—Dominant Test Approaches
 Of the 200+ published Functional Testing
techniques, there are ten basic themes.
 They capture the techniques in actual practice.
 In this course, we call them:
 Function testing
 Equivalence analysis
 Specification-based testing
 Risk-based testing
 Stress testing
 Regression testing
 Exploratory testing
 User testing
 Scenario testing
 Stochastic or Random testing
“So Which Technique Is the Best?”
Testers
Coverage
Potential problems
Activities
Evaluation
Technique A
Technique B
Technique C
Technique E
Technique F
Technique G
Technique H
 Each has
strengths and
weaknesses
 Think in
terms of
complement
 There is no
“one true way”
 Mixing
techniques
can improve
coverage
Technique D
Inception Elaboration Construction Transition
Apply Techniques According to the LifeCycle
 Test Approach changes over the project
 Some techniques work well in early phases;
others in later ones
 Align the techniques to iteration objectives
A limited set of focused tests Many varied tests
A few components of software under test Large system under test
Simple test environment Complex test environment
Focus on architectural & requirement risks Focus on deployment risks
Module 5 Agenda
 Overview of the workflow: Test and Evaluate
 Defining test techniques
 Individual techniques
 Function testing
 Equivalence analysis
 Specification-based testing
 Risk-based testing
 Stress testing
 Regression testing
 Exploratory testing
 User testing
 Scenario testing
 Stochastic or Random testing
 Using techniques together
At a Glance: Function Testing
Tag line Black box unit testing
Objective Test each function thoroughly, one at a
time.
Testers Any
Coverage Each function and user-visible variable
Potential problems A function does not work in isolation
Activities Whatever works
Evaluation Whatever works
Complexity Simple
Harshness Varies
SUT readiness Any stage
Strengths & Weaknesses: Function Testing
 Representative cases
 Spreadsheet, test each item in isolation.
 Database, test each report in isolation
 Strengths
 Thorough analysis of each item tested
 Easy to do as each function is implemented
 Blind spots
 Misses interactions
 Misses exploration of the benefits offered by the
program.
At a Glance: Equivalence Analysis (1/2)
Tag line
Partitioning, boundary analysis, domain
testing
Objective
There are too many test cases to run.
Use stratified sampling strategy to
select a few test cases from a huge
population.
Testers Any
Coverage
All data fields, and simple combinations
of data fields. Data fields include input,
output, and (to the extent they can be
made visible to the tester) internal and
configuration variables
Potential problems Data, configuration, error handling
At a Glance: Equivalence Analysis (2/2)
Activities
Divide the set of possible values of a field into
subsets, pick values to represent each subset.
Typical values will be at boundaries. More
generally, the goal is to find a “best
representative” for each subset, and to run
tests with these representatives.
Advanced approach: combine tests of several
“best representatives”. Several approaches to
choosing optimal small set of combinations.
Evaluation Determined by the data
Complexity Simple
Harshness
Designed to discover harsh single-variable
tests and harsh combinations of a few
variables
SUT readiness Any stage
Strengths & Weaknesses: Equivalence Analysis
 Representative cases
 Equivalence analysis of a simple numeric field.
 Printer compatibility testing (multidimensional variable,
doesn’t map to a simple numeric field, but stratified
sampling is essential)
 Strengths
 Find highest probability errors with a relatively small set
of tests.
 Intuitively clear approach, generalizes well
 Blind spots
 Errors that are not at boundaries or in obvious special
cases.
 The actual sets of possible values are often
unknowable.
Optional Exercise 5.2: GUI Equivalence Analysis
 Pick an app that you know and some dialogs
 MS Word and its Print, Page setup, Font format dialogs
 Select a dialog
 Identify each field, and for each field
• What is the type of the field (integer, real, string, ...)?
• List the range of entries that are “valid” for the field
• Partition the field and identify boundary conditions
• List the entries that are almost too extreme and too
extreme for the field
• List a few test cases for the field and explain why the
values you chose are the most powerful
representatives of their sets (for showing a bug)
• Identify any constraints imposed on this field by other
fields
At a Glance: Specification-Based Testing
Tag line Verify every claim
Objective Check conformance with every statement in
every spec, requirements document, etc.
Testers Any
Coverage Documented reqts, features, etc.
Potential
problems
Mismatch of implementation to spec
Activities Write & execute tests based on the spec’s.
Review and manage docs & traceability
Evaluation Does behavior match the spec?
Complexity Depends on the spec
Harshness Depends on the spec
SUT readiness As soon as modules are available
Strengths & Weaknesses: Spec-Based Testing
 Representative cases
 Traceability matrix, tracks test cases associated with
each specification item.
 User documentation testing
 Strengths
 Critical defense against warranty claims, fraud charges,
loss of credibility with customers.
 Effective for managing scope / expectations of
regulatory-driven testing
 Reduces support costs / customer complaints by
ensuring that no false or misleading representations are
made to customers.
 Blind spots
 Any issues not in the specs or treated badly in the
specs /documentation.
Traceability Tool for Specification-Based Testing
Stmt 1 Stmt 2 Stmt 3 Stmt 4 Stmt 5
Test 1 X X X
Test 2 X X
Test 3 X X X
Test 4 X X
Test 5 X X
Test 6 X X
The Traceability Matrix
Optional Exercise 5.5: What “Specs” Can You Use?
 Challenge:
 Getting information in the absence of a spec
 What substitutes are available?
 Example:
 The user manual – think of this as a commercial
warranty for what your product does.
 What other “specs” can you/should you be
using to test?
Exercise 5.5—Specification-Based Testing
 Here are some ideas for sources that you
can consult when specifications are
incomplete or incorrect.
 Software change memos that come with new
builds of the program
 User manual draft (and previous version’s
manual)
 Product literature
 Published style guide and UI standards
Definitions—Risk-Based Testing
 Three key meanings:
1. Find errors (risk-based approach to the technical
tasks of testing)
2. Manage the process of finding errors (risk-based
test management)
3. Manage the testing project and the risk posed by
(and to) testing in its relationship to the overall
project (risk-based project management)
 We’ll look primarily at risk-based testing (#1),
proceeding later to risk-based test management.
 The project management risks are very
important, but out of scope for this class.
At a Glance: Risk-Based Testing
Tag line Find big bugs first
Objective Define, prioritize, refine tests in terms of
the relative risk of issues we could test for
Testers Any
Coverage By identified risk
Potential problems Identifiable risks
Activities Use qualities of service, risk heuristics and
bug patterns to identify risks
Evaluation Varies
Complexity Any
Harshness Harsh
SUT readiness Any stage
Strengths & Weaknesses: Risk-Based Testing
 Representative cases
 Equivalence class analysis, reformulated.
 Test in order of frequency of use.
 Stress tests, error handling tests, security tests.
 Sample from predicted-bugs list.
 Strengths
 Optimal prioritization (if we get the risk list right)
 High power tests
 Blind spots
 Risks not identified or that are surprisingly more likely.
 Some “risk-driven” testers seem to operate subjectively.
• How will I know what coverage I’ve reached?
• Do I know that I haven’t missed something critical?
Workbook Page—Heuristics to Find Risks (1/2)
 Risk Heuristics: Where to look for errors
 New things: newer features may fail.
 New technology: new concepts lead to new mistakes.
 Learning Curve: mistakes due to ignorance.
 Changed things: changes may break old code.
 Late change: rushed decisions, rushed or demoralized
staff lead to mistakes.
 Rushed work: some tasks or projects are chronically
underfunded and all aspects of work quality suffer.
Workbook Page—Heuristics to Find Risks (2/2)
 Risk Heuristics: Where to look for errors
 Complexity: complex code may be buggy.
 Bugginess: features with many known bugs may also
have many unknown bugs.
 Dependencies: failures may trigger other failures.
 Untestability: risk of slow, inefficient testing.
 Little unit testing: programmers find and fix most of their
own bugs. Shortcutting here is a risk.
 Little system testing so far: untested software may fail.
 Previous reliance on narrow testing strategies: (e.g.
regression, function tests), can yield a backlog of errors
surviving across versions.
Workbook Page—Bug Patterns As a Source of Risks
 Testing Computer Software laid out a set of
480 common defects. To use these:
 Find a defect in the list
 Ask whether the software under test could have
this defect
 If it is theoretically possible that the program
could have the defect, ask how you could find
the bug if it was there.
 Ask how plausible it is that this bug could be in
the program and how serious the failure would
be if it was there.
 If appropriate, design a test or series of tests for
bugs of this type.
Optional Exercise 5.6: Risk-Based Testing
 You are testing Amazon.com
(Or pick another familiar application)
 First brainstorm:
 What are the functional areas of the app?
 Then evaluate risks:
• What are some of the ways that each of these
could fail?
• How likely do you think they are to fail? Why?
• How serious would each of the failure types be?
At a Glance: Stress Testing
Tag line Overwhelm the product
Objective
Learn what failure at extremes tells
about changes needed in the
program’s handling of normal cases
Testers Specialists
Coverage Limited
Potential problems Error handling weaknesses
Activities Specialized
Evaluation Varies
Complexity Varies
Harshness Extreme
SUT readiness Late stage
Strengths & Weaknesses: Stress Testing
 Representative cases
 Buffer overflow bugs
 High volumes of data, device connections, long
transaction chains
 Low memory conditions, device failures, viruses, other
crises
 Extreme load
 Strengths
 Expose weaknesses that will arise in the field.
 Expose security risks.
 Blind spots
 Weaknesses that are not made more visible by stress.
At a Glance: Regression Testing
Tag line Automated testing after changes
Objective Detect unforeseen consequences of change
Testers Varies
Coverage Varies
Potential
problems
Side effects of changes
Unsuccessful bug fixes
Activities Create automated test suites and run against
every (major) build
Complexity Varies
Evaluation Varies
Harshness Varies
SUT readiness For unit – early; for GUI - late
Strengths & Weaknesses—Regression Testing
 Representative cases
 Bug regression, old fix regression, general functional
regression
 Automated GUI regression test suites
 Strengths
 Cheap to execute
 Configuration testing
 Regulator friendly
 Blind spots
 “Immunization curve”
 Anything not covered in the regression suite
 Cost of maintaining the regression suite
At a Glance: Exploratory Testing
Tag line Simultaneous learning, planning, and
testing
Objective
Simultaneously learn about the
product and about the test strategies
to reveal the product and its defects
Testers Explorers
Coverage Hard to assess
Potential problems Everything unforeseen by planned
testing techniques
Activities Learn, plan, and test at the same time
Evaluation Varies
Complexity Varies
Harshness Varies
SUT readiness Medium to late: use cases must work
Strengths & Weaknesses: Exploratory Testing
 Representative cases
 Skilled exploratory testing of the full product
 Rapid testing & emergency testing (including thrown-
over-the-wall test-it-today)
 Troubleshooting / follow-up testing of defects.
 Strengths
 Customer-focused, risk-focused
 Responsive to changing circumstances
 Finds bugs that are otherwise missed
 Blind spots
 The less we know, the more we risk missing.
 Limited by each tester’s weaknesses (can mitigate this
with careful management)
 This is skilled work, juniors aren’t very good at it.
At a Glance: User Testing
Tag line Strive for realism
Let’s try real humans (for a change)
Objective Identify failures in the overall
human/machine/software system.
Testers Users
Coverage Very hard to measure
Potential problems Items that will be missed by anyone
other than an actual user
Activities Directed by user
Evaluation User’s assessment, with guidance
Complexity Varies
Harshness Limited
SUT readiness Late; has to be fully operable
Strengths & Weaknesses—User Testing
 Representative cases
 Beta testing
 In-house lab using a stratified sample of target market
 Usability testing
 Strengths
 Expose design issues
 Find areas with high error rates
 Can be monitored with flight recorders
 Can use in-house tests focus on controversial areas
 Blind spots
 Coverage not assured
 Weak test cases
 Beta test technical results are mixed
 Must distinguish marketing betas from technical betas
At a Glance: Scenario Testing
Tag line Instantiation of a use case
Do something useful, interesting, and complex
Objective Challenging cases to reflect real use
Testers Any
Coverage Whatever stories touch
Potential
problems
Complex interactions that happen in real use
by experienced users
Activities Interview stakeholders & write screenplays,
then implement tests
Evaluation Any
Complexity High
Harshness Varies
SUT readiness Late. Requires stable, integrated functionality.
Strengths & Weaknesses: Scenario Testing
 Representative cases
 Use cases, or sequences involving combinations of use
cases.
 Appraise product against business rules, customer data,
competitors’ output
 Hans Buwalda’s “soap opera testing.”
 Strengths
 Complex, realistic events. Can handle (help with)
situations that are too complex to model.
 Exposes failures that occur (develop) over time
 Blind spots
 Single function failures can make this test inefficient.
 Must think carefully to achieve good coverage.
At a Glance: Stochastic or Random Testing (1/2)
Tag line
Monkey testing
High-volume testing with new cases all
the time
Objective
Have the computer create, execute,
and evaluate huge numbers of tests.
The individual tests are not all that
powerful, nor all that compelling.
The power of the approach lies in
the large number of tests.
These broaden the sample, and
they may test the program over a
long period of time, giving us insight
into longer term issues.
At a Glance: Stochastic or Random Testing (2/2)
Testers Machines
Coverage Broad but shallow. Problems with
stateful apps.
Potential problems Crashes and exceptions
Activities Focus on test generation
Evaluation Generic, state-based
Complexity Complex to generate, but individual
tests are simple
Harshness Weak individual tests, but huge
numbers of them
SUT readiness Any
Combining Techniques (Revisited)
 A test approach should be diversified
 Applying opposite techniques can improve
coverage
 Often one technique can
extend another
Testers
Coverage
Potential problems
Activities
Evaluation
Technique G
Technique A
Technique B
Technique C
Technique E
Technique F
Technique H
Technique D
Applying Opposite Techniques to Boost Coverage
Regression
 Inputs:
• Old test cases and
analyses leading to new
test cases
 Outputs:
• Archival test cases,
preferably well
documented, and bug
reports
 Better for:
• Reuse across multi-
version products
Exploration
 Inputs:
• models or other analyses
that yield new tests
 Outputs
• scribbles and bug reports
 Better for:
• Find new bugs, scout
new areas, risks, or ideas
Contrast these two techniques
Exploration Regression
Applying Complementary Techniques Together
 Regression testing alone suffers fatigue
 The bugs get fixed and new runs add little info
 Symptom of weak coverage
 Combine automation w/ suitable variance
 E.g. Risk-based equivalence analysis
 Coverage of the combination
can beat sum of the parts Equivalence
Risk-based
Regression
How To Adopt New Techniques
1. Answer these questions:
 What techniques do you use in your test approach
now?
 What is its greatest shortcoming?
 What one technique could you add to make the
greatest improvement, consistent with a good test
approach:
• Risk-focused?
• Product-specific?
• Practical?
• Defensible?
2. Apply that additional technique until proficient
3. Iterate

Weitere ähnliche Inhalte

Was ist angesagt?

want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.orgnazeer pasha
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileChandan Mishra
 
Software testing-in-gurgaon
Software testing-in-gurgaonSoftware testing-in-gurgaon
Software testing-in-gurgaonAP EDUSOFT
 
Testing for business benefits
Testing for business benefitsTesting for business benefits
Testing for business benefitsAsim Kazmi
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1Raghu Kiran
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1Yogindernath Gupta
 
ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2Yogindernath Gupta
 
Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law Chuan Chuan Law
 

Was ist angesagt? (19)

want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.org
 
Softwaretesting
SoftwaretestingSoftwaretesting
Softwaretesting
 
Unit 5 st ppt
Unit 5 st pptUnit 5 st ppt
Unit 5 st ppt
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and Agile
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
Software testing-in-gurgaon
Software testing-in-gurgaonSoftware testing-in-gurgaon
Software testing-in-gurgaon
 
Unit4 for st.pdf
Unit4 for st.pdfUnit4 for st.pdf
Unit4 for st.pdf
 
Ch14
Ch14Ch14
Ch14
 
Istqb chapter 5
Istqb chapter 5Istqb chapter 5
Istqb chapter 5
 
CTFL Module 03
CTFL Module 03CTFL Module 03
CTFL Module 03
 
Software testing
Software testingSoftware testing
Software testing
 
Testing for business benefits
Testing for business benefitsTesting for business benefits
Testing for business benefits
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
Software testing
Software testingSoftware testing
Software testing
 
CTFL Module 01
CTFL Module 01CTFL Module 01
CTFL Module 01
 
CTFL chapter 06
CTFL chapter 06CTFL chapter 06
CTFL chapter 06
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1
 
ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2
 
Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law Evolution of Software Testing - Chuan Chuan Law
Evolution of Software Testing - Chuan Chuan Law
 

Andere mochten auch

GHNI presentation, SOBCon Chicago 2012
GHNI presentation, SOBCon Chicago 2012GHNI presentation, SOBCon Chicago 2012
GHNI presentation, SOBCon Chicago 2012jeffreybpower
 
New York
New YorkNew York
New YorkSchool
 
Gospelmissionpresent
GospelmissionpresentGospelmissionpresent
GospelmissionpresentLesia Green
 
再论糊涂
再论糊涂再论糊涂
再论糊涂He Yan
 
Retail Travel and People with Disabilities
Retail Travel and People with DisabilitiesRetail Travel and People with Disabilities
Retail Travel and People with DisabilitiesScott Rains
 
Victor(fil eminimizer)
Victor(fil eminimizer)Victor(fil eminimizer)
Victor(fil eminimizer)kittycassidy
 
Speranta pentru viata padurii ion iancu vale
Speranta pentru viata padurii ion iancu valeSperanta pentru viata padurii ion iancu vale
Speranta pentru viata padurii ion iancu valeBeatrice Vaisman
 
New York
New YorkNew York
New Yorksol 66
 
MTS Introduction English
MTS Introduction EnglishMTS Introduction English
MTS Introduction EnglishMTS_Translation
 
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...Scott Rains
 
Don't create a website without a purpose
Don't create a website without a purposeDon't create a website without a purpose
Don't create a website without a purposeMartin Halík
 
话说人生
话说人生话说人生
话说人生He Yan
 

Andere mochten auch (20)

Ep In The Studio
Ep In The StudioEp In The Studio
Ep In The Studio
 
20140324 shs
20140324 shs20140324 shs
20140324 shs
 
Turkey
TurkeyTurkey
Turkey
 
GHNI presentation, SOBCon Chicago 2012
GHNI presentation, SOBCon Chicago 2012GHNI presentation, SOBCon Chicago 2012
GHNI presentation, SOBCon Chicago 2012
 
Wildlife 1 Gaby
Wildlife 1 GabyWildlife 1 Gaby
Wildlife 1 Gaby
 
New York
New YorkNew York
New York
 
Gospelmissionpresent
GospelmissionpresentGospelmissionpresent
Gospelmissionpresent
 
再论糊涂
再论糊涂再论糊涂
再论糊涂
 
Retail Travel and People with Disabilities
Retail Travel and People with DisabilitiesRetail Travel and People with Disabilities
Retail Travel and People with Disabilities
 
Amerart iii
Amerart iiiAmerart iii
Amerart iii
 
Elena chernyshova
Elena chernyshovaElena chernyshova
Elena chernyshova
 
Victor(fil eminimizer)
Victor(fil eminimizer)Victor(fil eminimizer)
Victor(fil eminimizer)
 
Razbunarea 3
Razbunarea 3Razbunarea 3
Razbunarea 3
 
Speranta pentru viata padurii ion iancu vale
Speranta pentru viata padurii ion iancu valeSperanta pentru viata padurii ion iancu vale
Speranta pentru viata padurii ion iancu vale
 
New York
New YorkNew York
New York
 
MTS Introduction English
MTS Introduction EnglishMTS Introduction English
MTS Introduction English
 
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...
Section [7.2.1] Transportation: Experiences and Expectations -Brazilian Study...
 
Don't create a website without a purpose
Don't create a website without a purposeDon't create a website without a purpose
Don't create a website without a purpose
 
话说人生
话说人生话说人生
话说人生
 
Censorship
CensorshipCensorship
Censorship
 

Ähnlich wie Check upload1

Software testing
Software testingSoftware testing
Software testingthaneofife
 
Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx14941
 
Lecture 10 Static Testing.ppt
Lecture 10 Static Testing.pptLecture 10 Static Testing.ppt
Lecture 10 Static Testing.pptssuser9a23691
 
An introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAn introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAnuraj S.L
 
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGWelingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGSachin Pathania
 
Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software ReviewPhilip Johnson
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5Yogindernath Gupta
 
38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answersMaria FutureThoughts
 
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docxrandymartin91030
 

Ähnlich wie Check upload1 (20)

Software testing
Software testingSoftware testing
Software testing
 
Check upload1
Check upload1Check upload1
Check upload1
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
 
Aim (A).pptx
Aim (A).pptxAim (A).pptx
Aim (A).pptx
 
Lecture 10 Static Testing.ppt
Lecture 10 Static Testing.pptLecture 10 Static Testing.ppt
Lecture 10 Static Testing.ppt
 
Istqb lesson1
Istqb lesson1Istqb lesson1
Istqb lesson1
 
An introduction to Software Testing and Test Management
An introduction to Software Testing and Test ManagementAn introduction to Software Testing and Test Management
An introduction to Software Testing and Test Management
 
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGWelingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
 
Introduction to Software Review
Introduction to Software ReviewIntroduction to Software Review
Introduction to Software Review
 
L software testing
L   software testingL   software testing
L software testing
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
 
Software test proposal
Software test proposalSoftware test proposal
Software test proposal
 
Software testing2
Software testing2Software testing2
Software testing2
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Demo1ghjkl
Demo1ghjklDemo1ghjkl
Demo1ghjkl
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers38475471 qa-and-software-testing-interview-questions-and-answers
38475471 qa-and-software-testing-interview-questions-and-answers
 
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 3 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
 

Mehr von Nitish Bhardwaj (20)

Doc document
Doc documentDoc document
Doc document
 
Pptx present
Pptx presentPptx present
Pptx present
 
Pp1t
Pp1tPp1t
Pp1t
 
Pdf info
Pdf infoPdf info
Pdf info
 
Pdf docu
Pdf docuPdf docu
Pdf docu
 
Hadoop 130419075715-phpapp02(1)
Hadoop 130419075715-phpapp02(1)Hadoop 130419075715-phpapp02(1)
Hadoop 130419075715-phpapp02(1)
 
Drive present
Drive presentDrive present
Drive present
 
Docx document
Docx documentDocx document
Docx document
 
Doc1x
Doc1xDoc1x
Doc1x
 
Doc document
Doc documentDoc document
Doc document
 
HAdoop presentation
HAdoop presentationHAdoop presentation
HAdoop presentation
 
Adaptivemagicbrekercmw2014 final-140901211811-phpapp01
Adaptivemagicbrekercmw2014 final-140901211811-phpapp01Adaptivemagicbrekercmw2014 final-140901211811-phpapp01
Adaptivemagicbrekercmw2014 final-140901211811-phpapp01
 
1
11
1
 
1
11
1
 
how
howhow
how
 
Check for it
Check for itCheck for it
Check for it
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Moon
MoonMoon
Moon
 
Heisenberg
HeisenbergHeisenberg
Heisenberg
 
Frankunderwoodslessonsslideshare 140825070130-phpapp02
Frankunderwoodslessonsslideshare 140825070130-phpapp02Frankunderwoodslessonsslideshare 140825070130-phpapp02
Frankunderwoodslessonsslideshare 140825070130-phpapp02
 

Kürzlich hochgeladen

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 

Kürzlich hochgeladen (20)

Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 

Check upload1

  • 1. Principles of Software Testing Part I Satzinger, Jackson, and Burd
  • 2. Testing  Testing is a process of identifying defects  Develop test cases and test data  A test case is a formal description of • A starting state • One or more events to which the software must respond • The expected response or ending state  Test data is a set of starting states and events used to test a module, group of modules, or entire system
  • 4. Test types and detected defects
  • 5. Unit Testing  The process of testing individual methods, classes, or components before they are integrated with other software  Two methods for isolated testing of units  Driver • Simulates the behavior of a method that sends a message to the method being tested  Stub • Simulates the behavior of a method that has not yet been written
  • 6. Integration Testing  Evaluates the behavior of a group of methods or classes  Identifies interface compatibility, unexpected parameter values or state interaction, and run- time exceptions  System test  Integration test of the behavior of an entire system or independent subsystem  Build and smoke test  System test performed daily or several times a week
  • 7. Usability Testing  Determines whether a method, class, subsystem, or system meets user requirements  Performance test  Determines whether a system or subsystem can meet time-based performance criteria • Response time specifies the desired or maximum allowable time limit for software responses to queries and updates • Throughput specifies the desired or minimum number of queries and transactions that must be processed per minute or hour
  • 8. User Acceptance Testing  Determines whether the system fulfills user requirements  Involves the end users  Acceptance testing is a very formal activity in most development projects
  • 9. Who Tests Software?  Programmers  Unit testing  Testing buddies can test other’s programmer’s code  Users  Usability and acceptance testing  Volunteers are frequently used to test beta versions  Quality assurance personnel  All testing types except unit and acceptance  Develop test plans and identify needed changes
  • 10. Part II Principles of Software Testing for Testers Module 0: About This Course
  • 11. Course Objectives  After completing this course, you will be a more knowledgeable software tester. You will be able to better:  Understand and describe the basic concepts of functional (black box) software testing.  Identify a number of test styles and techniques and assess their usefulness in your context.  Understand the basic application of techniques used to identify useful ideas for tests.  Help determine the mission and communicate the status of your testing with the rest of your project team.  Characterize a good bug report, peer-review the reports of your colleagues, and improve your own report writing.  Understand where key testing concepts apply within the context of the Rational Unified Process.
  • 12. Course Outline 0 – About This Course 1 – Software Engineering Practices 2 – Core Concepts of Software Testing 3 – The RUP Testing Discipline 4 – Define Evaluation Mission 5 – Test and Evaluate 6 – Analyze Test Failure 7 – Achieve Acceptable Mission 8 – The RUP Workflow As Context
  • 13. Principles of Software Testing for Testers Module 1: Software Engineering Practices (Some things Testers should know about them)
  • 14. Objectives  Identify some common software development problems.  Identify six software engineering practices for addressing common software development problems.  Discuss how a software engineering process provides supporting context for software engineering practices.
  • 15. Symptoms of Software Development Problems  User or business needs not met  Requirements churn  Modules don’t integrate  Hard to maintain  Late discovery of flaws  Poor quality or poor user experience  Poor performance under load  No coordinated team effort  Build-and-release issues
  • 16. Trace Symptoms to Root Causes Needs not met Requirements churn Modules don’t fit Hard to maintain Late discovery Poor quality Poor performance Colliding developers Build-and-release Incorrect requirements Ambiguous communications Brittle architectures Overwhelming complexity Undetected inconsistencies Insufficient testing Subjective assessment Waterfall development Uncontrolled change Insufficient automation Symptoms Root Causes Software Engineering Practices Develop Iteratively Manage Requirements Use Component Architectures Model Visually (UML) Continuously Verify Quality Manage Change Continuously Verify Quality Poor quality Undetected inconsistencies Insufficient testing Subjective assessment
  • 17. Software Engineering Practices Reinforce Each Other Validates architectural decisions early on Addresses complexity of design/ implementation incrementally Measures quality early and often Evolves baselines incrementally Ensures users involved as requirements evolve Develop Iteratively Manage Requirements Use Component Architectures Model Visually (UML) Continuously Verify Quality Manage Change Software Engineering Practices
  • 18. Principles of Software Testing for Testers Module 2: Core Concepts of Software Testing
  • 19. Objectives  Introduce foundation topics of functional testing  Provide stakeholder-centric visions of quality and defect  Explain test ideas  Introduce test matrices
  • 20. Module 2 Content Outline Definitions  Defining functional testing  Definitions of quality  A pragmatic definition of defect  Dimensions of quality  Test ideas  Test idea catalogs  Test matrices
  • 21. Functional Testing  In this course, we adopt a common, broad current meaning for functional testing. It is  Black box  Interested in any externally visible or measurable attributes of the software other than performance.  In functional testing, we think of the program as a collection of functions  We test it in terms of its inputs and outputs.
  • 22. How Some Experts Have Defined Quality  Fitness for use (Dr. Joseph M. Juran)  The totality of features and characteristics of a product that bear on its ability to satisfy a given need (American Society for Quality)  Conformance with requirements (Philip Crosby)  The total composite product and service characteristics of marketing, engineering, manufacturing and maintenance through which the product and service in use will meet expectations of the customer (Armand V. Feigenbaum)  Note absence of “conforms to specifications.”
  • 23. Quality As Satisfiers and Dissatisfiers  Joseph Juran distinguishes between Customer Satisfiers and Dissatisfiers as key dimensions of quality:  Customer Satisfiers • the right features • adequate instruction  Dissatisfiers • unreliable • hard to use • too slow • incompatible with the customer’s equipment
  • 24. A Working Definition of Quality Quality is value to some person. ---- Gerald M. Weinberg
  • 25. Change Requests and Quality  A “defect” – in the eyes of a project stakeholder– can include anything about the program that causes the program to have lower value.  It’s appropriate to report any aspect of the software that, in your opinion (or in the opinion of a stakeholder whose interests you advocate) causes the program to have lower value.
  • 26. Dimensions of Quality: FURPS Reliability  e.g., Test the application behaves consistently and predictably. Performance  e.g., Test online response under average and peak loading Functionality  e.g., Test the accurate workings of each usage scenario Usability  e.g., Test application from the perspective of convenience to end-user. Supportability  e.g., Test the ability to maintain and support application under production use
  • 27. A Broader Definition of Dimensions of Quality  Accessibility  Capability  Compatibility  Concurrency  Conformance to standards  Efficiency  Installability and uninstallability  Localizability  Maintainability  Performance  Portability  Reliability  Scalability  Security  Supportability  Testability  Usability Collectively, these are often called Qualities of Service, Nonfunctional Requirements, Attributes, or simply the -ilities
  • 28. Test Ideas  A test idea is a brief statement that identifies a test that might be useful.  A test idea differs from a test case, in that the test idea contains no specification of the test workings, only the essence of the idea behind the test.  Test ideas are generators for test cases: potential test cases are derived from a test ideas list.  A key question for the tester or test analyst is which ones are the ones worth trying.
  • 29. Exercise 2.3: Brainstorm Test Ideas (1/2)  We’re about to brainstorm, so let’s review…  Ground Rules for Brainstorming  The goal is to get lots of ideas. You brainstorm together to discover categories of possible tests— good ideas that you can refine later.  There are more great ideas out there than you think.  Don’t criticize others’ contributions.  Jokes are OK, and are often valuable.  Work later, alone or in a much smaller group, to eliminate redundancy, cut bad ideas, and refine and optimize the specific tests.  Often, these meetings have a facilitator (who runs the meeting) and a recorder (who writes good stuff onto flipcharts). These two keep their opinions to themselves.
  • 30. Exercise 2.3: Brainstorm Test Ideas (2/2)  A field can accept integer values between 20 and 50.  What tests should you try?
  • 31. A Test Ideas List for Integer-Input Tests  Common answers to the exercise would include: Test Why it’s interesting Expected result 20 Smallest valid value Accepts it 19 Smallest -1 Reject, error msg 0 0 is always interesting Reject, error msg Blank Empty field, what’s it do? Reject? Ignore? 49 Valid value Accepts it 50 Largest valid value Accepts it 51 Largest +1 Reject, error msg -1 Negative number Reject, error msg 4294967296 2^32, overflow integer? Reject, error msg
  • 32. Discussion 2.4: Where Do Test Ideas Come From?  Where would you derive Test Ideas Lists?  Models  Specifications  Customer complaints  Brainstorm sessions among colleagues
  • 33. A Catalog of Test Ideas for Integer-Input tests  Nothing  Valid value  At LB of value  At UB of value  At LB of value - 1  At UB of value + 1  Outside of LB of value  Outside of UB of value  0  Negative  At LB number of digits or chars  At UB number of digits or chars  Empty field (clear the default value)  Outside of UB number of digits or chars  Non-digits  Wrong data type (e.g. decimal into integer)  Expressions  Space  Non-printing char (e.g., Ctrl+char)  DOS filename reserved chars (e.g., " * . :")  Upper ASCII (128-254)  Upper case chars  Lower case chars  Modifiers (e.g., Ctrl, Alt, Shift- Ctrl, etc.)  Function key (F2, F3, F4, etc.)
  • 34. The Test-Ideas Catalog  A test-ideas catalog is a list of related test ideas that are usable under many circumstances.  For example, the test ideas for numeric input fields can be catalogued together and used for any numeric input field.  In many situations, these catalogs are sufficient test documentation. That is, an experienced tester can often proceed with testing directly from these without creating documented test cases.
  • 35. Apply a Test Ideas Catalog Using a Test Matrix Field name Field name Field name
  • 36. Review: Core Concepts of Software Testing  What is Quality?  Who are the Stakeholders?  What is a Defect?  What are Dimensions of Quality?  What are Test Ideas?  Where are Test Ideas useful?  Give some examples of a Test Ideas.  Explain how a catalog of Test Ideas could be applied to a Test Matrix.
  • 37. Principles of Software Testing for Testers Module 4: Define Evaluation Mission
  • 38. So? Purpose of Testing?  The typical testing group has two key priorities.  Find the bugs (preferably in priority order).  Assess the condition of the whole product (as a user will see it).  Sometimes, these conflict  The mission of assessment is the underlying reason for testing, from management’s viewpoint. But if you aren’t hammering hard on the program, you can miss key risks.
  • 39. Missions of Test Groups Can Vary  Find defects  Maximize bug count  Block premature product releases  Help managers make ship / no-ship decisions  Assess quality  Minimize technical support costs  Conform to regulations  Minimize safety-related lawsuit risk  Assess conformance to specification  Find safe scenarios for use of the product (find ways to get it to work, in spite of the bugs)  Verify correctness of the product  Assure quality
  • 40. A Different Take on Mission: Public vs. Private Bugs  A programmer’s public bug rate includes all bugs left in the code at check-in.  A programmer’s private bug rate includes all the bugs that are produced, including the ones fixed before check-in.  Estimates of private bug rates have ranged from 15 to 150 bugs per 100 statements.  What does this tell us about our task?
  • 41. Defining the Test Approach  The test approach (or “testing strategy”) specifies the techniques that will be used to accomplish the test mission.  The test approach also specifies how the techniques will be used.  A good test approach is:  Diversified  Risk-focused  Product-specific  Practical  Defensible
  • 42. Heuristics for Evaluating Testing Approach  James Bach collected a series of heuristics for evaluating your test approach. For example, he says:  Testing should be optimized to find important problems fast, rather than attempting to find all problems with equal urgency.  Please note that these are heuristics – they won’t always the best choice for your context. But in different contexts, you’ll find different ones very useful.
  • 43. What Test Documentation Should You Use?  Test planning standards and templates  Examples  Some benefits and costs of using IEEE-829 standard based templates  When are these appropriate?  Thinking about your requirements for test documentation  Requirements considerations  Questions to elicit information about test documentation requirements for your project
  • 44. Write a Purpose Statement for Test Documentation  Try to describe your core documentation requirements in one sentence that doesn’t have more than three components.  Examples:  The test documentation set will primarily support our efforts to find bugs in this version, to delegate work, and to track status.  The test documentation set will support ongoing product and test maintenance over at least 10 years, will provide training material for new group members, and will create archives suitable for regulatory or litigation use.
  • 45. Review: Define Evaluation Mission  What is a Test Mission?  What is your Test Mission?  What makes a good Test Approach (Test Strategy)?  What is a Test Documentation Mission?  What is your Test Documentation Goal?
  • 46. Principles of Software Testing for Testers Module 5: Test & Evaluate
  • 47. Test and Evaluate – Part One: Test  In this module, we drill into Test and Evaluate  This addresses the “How?” question:  How will you test those things?
  • 48. Test and Evaluate – Part One: Test  This module focuses on the activity Implement Test  Earlier, we covered Test-Idea Lists, which are input here  In the next module, we’ll cover Analyze Test Failures, the second half of Test and Evaluate
  • 49. Review: Defining the Test Approach  In Module 4, we covered Test Approach  A good test approach is: Diversified Risk-focused Product-specific Practical Defensible  The techniques you apply should follow your test approach
  • 50. Discussion Exercise 5.1: Test Techniques  There are as many as 200 published testing techniques. Many of the ideas are overlapping, but there are common themes.  Similar sounding terms often mean different things, e.g.:  User testing  Usability testing  User interface testing  What are the differences among these techniques?
  • 51. Dimensions of Test Techniques  Think of the testing you do in terms of five dimensions:  Testers: who does the testing.  Coverage: what gets tested.  Potential problems: why you're testing (what risk you're testing for).  Activities: how you test.  Evaluation: how to tell whether the test passed or failed.  Test techniques often focus on one or two of these, leaving the rest to the skill and imagination of the tester.
  • 52. Test Techniques—Dominant Test Approaches  Of the 200+ published Functional Testing techniques, there are ten basic themes.  They capture the techniques in actual practice.  In this course, we call them:  Function testing  Equivalence analysis  Specification-based testing  Risk-based testing  Stress testing  Regression testing  Exploratory testing  User testing  Scenario testing  Stochastic or Random testing
  • 53. “So Which Technique Is the Best?” Testers Coverage Potential problems Activities Evaluation Technique A Technique B Technique C Technique E Technique F Technique G Technique H  Each has strengths and weaknesses  Think in terms of complement  There is no “one true way”  Mixing techniques can improve coverage Technique D
  • 54. Inception Elaboration Construction Transition Apply Techniques According to the LifeCycle  Test Approach changes over the project  Some techniques work well in early phases; others in later ones  Align the techniques to iteration objectives A limited set of focused tests Many varied tests A few components of software under test Large system under test Simple test environment Complex test environment Focus on architectural & requirement risks Focus on deployment risks
  • 55. Module 5 Agenda  Overview of the workflow: Test and Evaluate  Defining test techniques  Individual techniques  Function testing  Equivalence analysis  Specification-based testing  Risk-based testing  Stress testing  Regression testing  Exploratory testing  User testing  Scenario testing  Stochastic or Random testing  Using techniques together
  • 56. At a Glance: Function Testing Tag line Black box unit testing Objective Test each function thoroughly, one at a time. Testers Any Coverage Each function and user-visible variable Potential problems A function does not work in isolation Activities Whatever works Evaluation Whatever works Complexity Simple Harshness Varies SUT readiness Any stage
  • 57. Strengths & Weaknesses: Function Testing  Representative cases  Spreadsheet, test each item in isolation.  Database, test each report in isolation  Strengths  Thorough analysis of each item tested  Easy to do as each function is implemented  Blind spots  Misses interactions  Misses exploration of the benefits offered by the program.
  • 58. At a Glance: Equivalence Analysis (1/2) Tag line Partitioning, boundary analysis, domain testing Objective There are too many test cases to run. Use stratified sampling strategy to select a few test cases from a huge population. Testers Any Coverage All data fields, and simple combinations of data fields. Data fields include input, output, and (to the extent they can be made visible to the tester) internal and configuration variables Potential problems Data, configuration, error handling
  • 59. At a Glance: Equivalence Analysis (2/2) Activities Divide the set of possible values of a field into subsets, pick values to represent each subset. Typical values will be at boundaries. More generally, the goal is to find a “best representative” for each subset, and to run tests with these representatives. Advanced approach: combine tests of several “best representatives”. Several approaches to choosing optimal small set of combinations. Evaluation Determined by the data Complexity Simple Harshness Designed to discover harsh single-variable tests and harsh combinations of a few variables SUT readiness Any stage
  • 60. Strengths & Weaknesses: Equivalence Analysis  Representative cases  Equivalence analysis of a simple numeric field.  Printer compatibility testing (multidimensional variable, doesn’t map to a simple numeric field, but stratified sampling is essential)  Strengths  Find highest probability errors with a relatively small set of tests.  Intuitively clear approach, generalizes well  Blind spots  Errors that are not at boundaries or in obvious special cases.  The actual sets of possible values are often unknowable.
  • 61. Optional Exercise 5.2: GUI Equivalence Analysis  Pick an app that you know and some dialogs  MS Word and its Print, Page setup, Font format dialogs  Select a dialog  Identify each field, and for each field • What is the type of the field (integer, real, string, ...)? • List the range of entries that are “valid” for the field • Partition the field and identify boundary conditions • List the entries that are almost too extreme and too extreme for the field • List a few test cases for the field and explain why the values you chose are the most powerful representatives of their sets (for showing a bug) • Identify any constraints imposed on this field by other fields
  • 62. At a Glance: Specification-Based Testing Tag line Verify every claim Objective Check conformance with every statement in every spec, requirements document, etc. Testers Any Coverage Documented reqts, features, etc. Potential problems Mismatch of implementation to spec Activities Write & execute tests based on the spec’s. Review and manage docs & traceability Evaluation Does behavior match the spec? Complexity Depends on the spec Harshness Depends on the spec SUT readiness As soon as modules are available
  • 63. Strengths & Weaknesses: Spec-Based Testing  Representative cases  Traceability matrix, tracks test cases associated with each specification item.  User documentation testing  Strengths  Critical defense against warranty claims, fraud charges, loss of credibility with customers.  Effective for managing scope / expectations of regulatory-driven testing  Reduces support costs / customer complaints by ensuring that no false or misleading representations are made to customers.  Blind spots  Any issues not in the specs or treated badly in the specs /documentation.
  • 64. Traceability Tool for Specification-Based Testing Stmt 1 Stmt 2 Stmt 3 Stmt 4 Stmt 5 Test 1 X X X Test 2 X X Test 3 X X X Test 4 X X Test 5 X X Test 6 X X The Traceability Matrix
  • 65. Optional Exercise 5.5: What “Specs” Can You Use?  Challenge:  Getting information in the absence of a spec  What substitutes are available?  Example:  The user manual – think of this as a commercial warranty for what your product does.  What other “specs” can you/should you be using to test?
  • 66. Exercise 5.5—Specification-Based Testing  Here are some ideas for sources that you can consult when specifications are incomplete or incorrect.  Software change memos that come with new builds of the program  User manual draft (and previous version’s manual)  Product literature  Published style guide and UI standards
  • 67. Definitions—Risk-Based Testing  Three key meanings: 1. Find errors (risk-based approach to the technical tasks of testing) 2. Manage the process of finding errors (risk-based test management) 3. Manage the testing project and the risk posed by (and to) testing in its relationship to the overall project (risk-based project management)  We’ll look primarily at risk-based testing (#1), proceeding later to risk-based test management.  The project management risks are very important, but out of scope for this class.
  • 68. At a Glance: Risk-Based Testing Tag line Find big bugs first Objective Define, prioritize, refine tests in terms of the relative risk of issues we could test for Testers Any Coverage By identified risk Potential problems Identifiable risks Activities Use qualities of service, risk heuristics and bug patterns to identify risks Evaluation Varies Complexity Any Harshness Harsh SUT readiness Any stage
  • 69. Strengths & Weaknesses: Risk-Based Testing  Representative cases  Equivalence class analysis, reformulated.  Test in order of frequency of use.  Stress tests, error handling tests, security tests.  Sample from predicted-bugs list.  Strengths  Optimal prioritization (if we get the risk list right)  High power tests  Blind spots  Risks not identified or that are surprisingly more likely.  Some “risk-driven” testers seem to operate subjectively. • How will I know what coverage I’ve reached? • Do I know that I haven’t missed something critical?
  • 70. Workbook Page—Heuristics to Find Risks (1/2)  Risk Heuristics: Where to look for errors  New things: newer features may fail.  New technology: new concepts lead to new mistakes.  Learning Curve: mistakes due to ignorance.  Changed things: changes may break old code.  Late change: rushed decisions, rushed or demoralized staff lead to mistakes.  Rushed work: some tasks or projects are chronically underfunded and all aspects of work quality suffer.
  • 71. Workbook Page—Heuristics to Find Risks (2/2)  Risk Heuristics: Where to look for errors  Complexity: complex code may be buggy.  Bugginess: features with many known bugs may also have many unknown bugs.  Dependencies: failures may trigger other failures.  Untestability: risk of slow, inefficient testing.  Little unit testing: programmers find and fix most of their own bugs. Shortcutting here is a risk.  Little system testing so far: untested software may fail.  Previous reliance on narrow testing strategies: (e.g. regression, function tests), can yield a backlog of errors surviving across versions.
  • 72. Workbook Page—Bug Patterns As a Source of Risks  Testing Computer Software laid out a set of 480 common defects. To use these:  Find a defect in the list  Ask whether the software under test could have this defect  If it is theoretically possible that the program could have the defect, ask how you could find the bug if it was there.  Ask how plausible it is that this bug could be in the program and how serious the failure would be if it was there.  If appropriate, design a test or series of tests for bugs of this type.
  • 73. Optional Exercise 5.6: Risk-Based Testing  You are testing Amazon.com (Or pick another familiar application)  First brainstorm:  What are the functional areas of the app?  Then evaluate risks: • What are some of the ways that each of these could fail? • How likely do you think they are to fail? Why? • How serious would each of the failure types be?
  • 74. At a Glance: Stress Testing Tag line Overwhelm the product Objective Learn what failure at extremes tells about changes needed in the program’s handling of normal cases Testers Specialists Coverage Limited Potential problems Error handling weaknesses Activities Specialized Evaluation Varies Complexity Varies Harshness Extreme SUT readiness Late stage
  • 75. Strengths & Weaknesses: Stress Testing  Representative cases  Buffer overflow bugs  High volumes of data, device connections, long transaction chains  Low memory conditions, device failures, viruses, other crises  Extreme load  Strengths  Expose weaknesses that will arise in the field.  Expose security risks.  Blind spots  Weaknesses that are not made more visible by stress.
  • 76. At a Glance: Regression Testing Tag line Automated testing after changes Objective Detect unforeseen consequences of change Testers Varies Coverage Varies Potential problems Side effects of changes Unsuccessful bug fixes Activities Create automated test suites and run against every (major) build Complexity Varies Evaluation Varies Harshness Varies SUT readiness For unit – early; for GUI - late
  • 77. Strengths & Weaknesses—Regression Testing  Representative cases  Bug regression, old fix regression, general functional regression  Automated GUI regression test suites  Strengths  Cheap to execute  Configuration testing  Regulator friendly  Blind spots  “Immunization curve”  Anything not covered in the regression suite  Cost of maintaining the regression suite
  • 78. At a Glance: Exploratory Testing Tag line Simultaneous learning, planning, and testing Objective Simultaneously learn about the product and about the test strategies to reveal the product and its defects Testers Explorers Coverage Hard to assess Potential problems Everything unforeseen by planned testing techniques Activities Learn, plan, and test at the same time Evaluation Varies Complexity Varies Harshness Varies SUT readiness Medium to late: use cases must work
  • 79. Strengths & Weaknesses: Exploratory Testing  Representative cases  Skilled exploratory testing of the full product  Rapid testing & emergency testing (including thrown- over-the-wall test-it-today)  Troubleshooting / follow-up testing of defects.  Strengths  Customer-focused, risk-focused  Responsive to changing circumstances  Finds bugs that are otherwise missed  Blind spots  The less we know, the more we risk missing.  Limited by each tester’s weaknesses (can mitigate this with careful management)  This is skilled work, juniors aren’t very good at it.
  • 80. At a Glance: User Testing Tag line Strive for realism Let’s try real humans (for a change) Objective Identify failures in the overall human/machine/software system. Testers Users Coverage Very hard to measure Potential problems Items that will be missed by anyone other than an actual user Activities Directed by user Evaluation User’s assessment, with guidance Complexity Varies Harshness Limited SUT readiness Late; has to be fully operable
  • 81. Strengths & Weaknesses—User Testing  Representative cases  Beta testing  In-house lab using a stratified sample of target market  Usability testing  Strengths  Expose design issues  Find areas with high error rates  Can be monitored with flight recorders  Can use in-house tests focus on controversial areas  Blind spots  Coverage not assured  Weak test cases  Beta test technical results are mixed  Must distinguish marketing betas from technical betas
  • 82. At a Glance: Scenario Testing Tag line Instantiation of a use case Do something useful, interesting, and complex Objective Challenging cases to reflect real use Testers Any Coverage Whatever stories touch Potential problems Complex interactions that happen in real use by experienced users Activities Interview stakeholders & write screenplays, then implement tests Evaluation Any Complexity High Harshness Varies SUT readiness Late. Requires stable, integrated functionality.
  • 83. Strengths & Weaknesses: Scenario Testing  Representative cases  Use cases, or sequences involving combinations of use cases.  Appraise product against business rules, customer data, competitors’ output  Hans Buwalda’s “soap opera testing.”  Strengths  Complex, realistic events. Can handle (help with) situations that are too complex to model.  Exposes failures that occur (develop) over time  Blind spots  Single function failures can make this test inefficient.  Must think carefully to achieve good coverage.
  • 84. At a Glance: Stochastic or Random Testing (1/2) Tag line Monkey testing High-volume testing with new cases all the time Objective Have the computer create, execute, and evaluate huge numbers of tests. The individual tests are not all that powerful, nor all that compelling. The power of the approach lies in the large number of tests. These broaden the sample, and they may test the program over a long period of time, giving us insight into longer term issues.
  • 85. At a Glance: Stochastic or Random Testing (2/2) Testers Machines Coverage Broad but shallow. Problems with stateful apps. Potential problems Crashes and exceptions Activities Focus on test generation Evaluation Generic, state-based Complexity Complex to generate, but individual tests are simple Harshness Weak individual tests, but huge numbers of them SUT readiness Any
  • 86. Combining Techniques (Revisited)  A test approach should be diversified  Applying opposite techniques can improve coverage  Often one technique can extend another Testers Coverage Potential problems Activities Evaluation Technique G Technique A Technique B Technique C Technique E Technique F Technique H Technique D
  • 87. Applying Opposite Techniques to Boost Coverage Regression  Inputs: • Old test cases and analyses leading to new test cases  Outputs: • Archival test cases, preferably well documented, and bug reports  Better for: • Reuse across multi- version products Exploration  Inputs: • models or other analyses that yield new tests  Outputs • scribbles and bug reports  Better for: • Find new bugs, scout new areas, risks, or ideas Contrast these two techniques Exploration Regression
  • 88. Applying Complementary Techniques Together  Regression testing alone suffers fatigue  The bugs get fixed and new runs add little info  Symptom of weak coverage  Combine automation w/ suitable variance  E.g. Risk-based equivalence analysis  Coverage of the combination can beat sum of the parts Equivalence Risk-based Regression
  • 89. How To Adopt New Techniques 1. Answer these questions:  What techniques do you use in your test approach now?  What is its greatest shortcoming?  What one technique could you add to make the greatest improvement, consistent with a good test approach: • Risk-focused? • Product-specific? • Practical? • Defensible? 2. Apply that additional technique until proficient 3. Iterate