SlideShare una empresa de Scribd logo
1 de 32
Positivity of Negative
Pramod Gupta
Presented at Datacom Test Camp Turangi , New Zealand
IN-CONFIDENCE
IN-CONFIDENCE
 Aim
 Management
 Support
 Technique
 Test Selection
 Execution
 Example
 Criticism
 Conclusion
Agenda
IN-CONFIDENCE
Aim
IN-CONFIDENCE
The British Standard definition of negative testing in BS7925-1 defines
Negative testing is a term defined site-by-site and sometime team-by-team. Other
definition includes tests that aim to exercise the functionality that’s deals with
 Input validation, rejection and re-requesting functionality
 Coping with absent, slow or broken external resources
 Error-handling functionality i.e. messaging, logging, monitoring
 Recovery functionality i.e. fail-over, rollback and restoration
Negative Testing is “Testing aimed at showing software does not work”
• Discovery of faults that results in significant failures, corruptions and security breaches
• Observations and measurement of a system’s response to external problems
• Exposure of software weakness and potential for exploitation
IN-CONFIDENCE
 Negative Tests are classified in below 2 categories :
 Tests designed to make the system fail
 and tests that are designed to exercise functionality that deals with failure.
 There are often further aims of negative testing that do not set the scope of the
activity
 Prompt exposure of significant faults
 Learning about function through the study of dysfunction
 Verification (and possible enhancement) of risk model used to prioritise testing
 Documentation of common failures, characteristic symptoms, and running fixes
IN-CONFIDENCE
Positive Vs Negative Test
Positive Negative
Provides a level of confidence that a system
works
Seeks to show that software does not work
Determines that your application works as
expected. If an error is encountered during
positive testing, the test fails.
Ensures that your application can gracefully
handle invalid input or unexpected user
behaviour or system conditions
Testing the system using valid data Testing the system using Invalid data
IN-CONFIDENCE
Management
IN-CONFIDENCE
 Scripted tests and up-front investment
 Test Scripting
 Review
 Test Data Prep
 Test Logistics
 Primary negative testing
 Test execution of the test from formal test design
 Secondary negative testing
 Unplanned negative / Exploratory testing – Can not be planned in advance
 Project with fixed budget can’t have these
Budgeting and estimation
IN-CONFIDENCE
 Negative test does not have a well –defined position in waterfall or iterative
processes
 Activities
 Test Analysis
 Test design
 Test monitoring and control
 Scheduling and staffing
 Exclusion
 From a particular test phase
 Sound assessment of the risk backed by re-assignment of the task
Planning
IN-CONFIDENCE
 Negative testing can be done at all level of testing
Phase Approach Staffing
Requirement Analysis /
System Design /Unit Test
Requirement Analysis to
derive negative tests, Formal
Techniques , Exception
handling , validation
functionality in the code
Designer ,
Coders ,
Test Analysts
System / Integration Test Execution of Scripted ,
Primary and Secondary test ,
Access risk and potential for
exploitation
Testers ,
Automation ,
Experienced testers
UAT / Beta Test User facing errors , Use cases
, Mis-use cases , Failure Mode
, Performance limits , Fail-
over , Recovery tests
UAT Testers (Customer users)
, Performance testers
IN-CONFIDENCE
Support
IN-CONFIDENCE
Tester
Skill
Skill Transfer
within team
Pair Testing
KT of
weakness and
exploitations
KT with
DEV/BA/SME’s
Trainings /
Conferences /
Idea’s /
Analogies
IN-CONFIDENCE
Technical
Support
Dedicated
Environment
Tools
BA /
Architect /
Third Party
Support
Developers/
Designers
IN-CONFIDENCE
 Political support
 People outside the test team did not like the idea of spending time on
deliberately break the system
 Need political support if it is to remain effective and valuable
 Test Managers well versed in providing this kind of support. Tips: Avoid the
term “ Negative test “ 
 What ever the approach , it’s imp that business understands the value of
information produced
 Important for testers to understand the value that business places on the
information
IN-CONFIDENCE
Technique
IN-CONFIDENCE
BVA and ECP
IN-CONFIDENCE
State Transition
IN-CONFIDENCE
 Explicit Restrictions
 Implicit Restrictions
 Constraints
Other Test Types
 Stress Testing
 Scalability Testing
 Reliability Testing
Test against known constraints
IN-CONFIDENCE
 Testing concurrent use of resources
can be very fruitful way to discover bugs :
 Database
 Files
 Connections
 Hardware
 More than 2 requests , queuing, timeouts
and Deadlocks
Concurrency
IN-CONFIDENCE
 Happy Go Path
Some general mis-use cases for a GUI or browser :
 Field entry: varying order from usual sequence on form
 Re-entry following rejection of input
 Choosing to change existing details
 Use of ‘cancel’
 Use following ‘undo’
 On browsers, navigating using the ‘back’ button, bookmarks etc.
 Starting sequence halfway
 Dropping out of sequence / interaction without completion/logout
Use cases and mis-use case
IN-CONFIDENCE
Test Selection
IN-CONFIDENCE
 Test Selection Strategy guide team in deciding which test to plan and perform,
which one first ?
 Choose tests that allow broad and reliable observations of the system
 Test effectiveness and robustness of exceptional handling scenarios early
 Use a broad set of negative tests to observe the system from different prospective
 Priorities testing based on known exploitation which can lead to a crash
 Test non happy go paths
IN-CONFIDENCE
 Negative tests are often simple to write, but hard to execute
 Applies particularly to failure modes, concurrency, and exception handling
 This need not be a problem; the tests have great value as thought
experiments for designers and exploratory testers
 Ensure that such tests have sufficient time and tool support
 Fault injection tools can make impossible tests practical, and monitoring
tools allow problems to be studied ‘in the wild’ i.e. during a volume test
Simpler to write than to perform
IN-CONFIDENCE
Test Execution
IN-CONFIDENCE
 Recognize and exploit weaknesses
 Observation Skills
 Knowledge of underlying technology
 Build model for failure
 State Transition – Unexpected states and incomplete transaction
 Bug Cluster
 Finding faults without doing more testing
 Intuitive testers : Bloodhounds , Breakers and Bug hunters
 Tools Use
IN-CONFIDENCE
 When to stop
 If deadline or budget have some flexibility
 Stop testing when you are not finding new significant issues
 Use requirement based or functionality based measurement to
determine how much of the system has been observed under test
 Projects with firm deadlines
 Information collected can be used to prioritise test and justify
any extension may required
 Information can be given greater value and impact by aiming
the test at an assessment of failure mode and verification of risk
model
 Number of negative tests can be limitless – Negative test is an
open-ended
 Highest risk first
 Use formal techniques to derive exceptional handling tests
IN-CONFIDENCE
 Populating required fields
 Correspondence between data and field types
 Field size test
 Allowed data bounds and limits
 Reasonable data
 Embedded Single Quote
 Date bound test
 Web session test
Examples
IN-CONFIDENCE
Criticism
IN-CONFIDENCE
That’s an
acceptable
failure
But that
would
never
happen in
normal use
Don’t the
other tests do
that?
“Why find a
problem we
can’t fix?”
Frequently heard criticisms
( In form of Questions, Excluded and ridiculed )
IN-CONFIDENCE
Conclusion
IN-CONFIDENCE
 Negative testing is a core skill of experienced testers and required an
opportunistic approach to get the best value from the time spent
 Negative testing can not only find the significant failures, but can produce
invaluable strategic information about the risk model underlying testing and
provide overall confidence in the overall quality of system.
 Negative testing is an open –ended and hard to plan granularly. It needs to be
managed proactively rather than over planed.
 Although negative testing is powerful and effective approach, it is also hard to
manage task that has the potential to produce unwelcome information.
Attempts to ignore or exclude negative testing may need to be robustly opposed.

Más contenido relacionado

La actualidad más candente

ISTQB / ISEB Foundation Exam Practice
ISTQB / ISEB Foundation Exam PracticeISTQB / ISEB Foundation Exam Practice
ISTQB / ISEB Foundation Exam PracticeYogindernath Gupta
 
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
 
Software Inspection And Defect Management
Software Inspection And Defect ManagementSoftware Inspection And Defect Management
Software Inspection And Defect ManagementAjay K
 
Risks of Risk-Based Testing
Risks of Risk-Based TestingRisks of Risk-Based Testing
Risks of Risk-Based Testingrrice2000
 
Root cause Analysis of Defects
Root cause Analysis of DefectsRoot cause Analysis of Defects
Root cause Analysis of DefectsDavid Gevorgyan
 
Risk based testing - Final
Risk based testing - FinalRisk based testing - Final
Risk based testing - FinalKuldeep Kumar
 
software project management Software inspection
software project management Software inspectionsoftware project management Software inspection
software project management Software inspectionREHMAT ULLAH
 
Requirements Driven Risk Based Testing
Requirements Driven Risk Based TestingRequirements Driven Risk Based Testing
Requirements Driven Risk Based TestingJeff Findlay
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1Yogindernath Gupta
 
Defect MgmtBugDay Bangkok 2009: Defect Management
Defect MgmtBugDay Bangkok 2009: Defect ManagementDefect MgmtBugDay Bangkok 2009: Defect Management
Defect MgmtBugDay Bangkok 2009: Defect Managementguest476528
 
Ad-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantAd-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantSoftware Testing Solution
 
From Defect Reporting To Defect Prevention
From Defect Reporting To Defect PreventionFrom Defect Reporting To Defect Prevention
From Defect Reporting To Defect PreventionSune Gynthersen
 
Software Engineering Fundamentals Svetlin Nakov
Software Engineering Fundamentals Svetlin NakovSoftware Engineering Fundamentals Svetlin Nakov
Software Engineering Fundamentals Svetlin Nakovnazeer pasha
 
Software testing
Software testingSoftware testing
Software testingdavidsantro
 
Risk-based Testing
Risk-based TestingRisk-based Testing
Risk-based TestingJohan Hoberg
 
Defect Prevention & Predictive Analytics - XBOSoft Webinar
Defect Prevention & Predictive Analytics - XBOSoft WebinarDefect Prevention & Predictive Analytics - XBOSoft Webinar
Defect Prevention & Predictive Analytics - XBOSoft WebinarXBOSoft
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2onsoftwaretest
 
Ppt 1 TEST MANAGEMENT
Ppt 1 TEST MANAGEMENTPpt 1 TEST MANAGEMENT
Ppt 1 TEST MANAGEMENTsanti suryani
 

La actualidad más candente (20)

ISTQB / ISEB Foundation Exam Practice
ISTQB / ISEB Foundation Exam PracticeISTQB / ISEB Foundation Exam Practice
ISTQB / ISEB Foundation Exam Practice
 
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
 
Software Inspection And Defect Management
Software Inspection And Defect ManagementSoftware Inspection And Defect Management
Software Inspection And Defect Management
 
Risks of Risk-Based Testing
Risks of Risk-Based TestingRisks of Risk-Based Testing
Risks of Risk-Based Testing
 
Root cause Analysis of Defects
Root cause Analysis of DefectsRoot cause Analysis of Defects
Root cause Analysis of Defects
 
Risk based testing - Final
Risk based testing - FinalRisk based testing - Final
Risk based testing - Final
 
Negative Testing
Negative TestingNegative Testing
Negative Testing
 
Software testing
Software testingSoftware testing
Software testing
 
software project management Software inspection
software project management Software inspectionsoftware project management Software inspection
software project management Software inspection
 
Requirements Driven Risk Based Testing
Requirements Driven Risk Based TestingRequirements Driven Risk Based Testing
Requirements Driven Risk Based Testing
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1
 
Defect MgmtBugDay Bangkok 2009: Defect Management
Defect MgmtBugDay Bangkok 2009: Defect ManagementDefect MgmtBugDay Bangkok 2009: Defect Management
Defect MgmtBugDay Bangkok 2009: Defect Management
 
Ad-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantAd-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet Significant
 
From Defect Reporting To Defect Prevention
From Defect Reporting To Defect PreventionFrom Defect Reporting To Defect Prevention
From Defect Reporting To Defect Prevention
 
Software Engineering Fundamentals Svetlin Nakov
Software Engineering Fundamentals Svetlin NakovSoftware Engineering Fundamentals Svetlin Nakov
Software Engineering Fundamentals Svetlin Nakov
 
Software testing
Software testingSoftware testing
Software testing
 
Risk-based Testing
Risk-based TestingRisk-based Testing
Risk-based Testing
 
Defect Prevention & Predictive Analytics - XBOSoft Webinar
Defect Prevention & Predictive Analytics - XBOSoft WebinarDefect Prevention & Predictive Analytics - XBOSoft Webinar
Defect Prevention & Predictive Analytics - XBOSoft Webinar
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2
 
Ppt 1 TEST MANAGEMENT
Ppt 1 TEST MANAGEMENTPpt 1 TEST MANAGEMENT
Ppt 1 TEST MANAGEMENT
 

Similar a Positivityofnegative

Test Cases Maintaining & Documenting
Test Cases Maintaining & DocumentingTest Cases Maintaining & Documenting
Test Cases Maintaining & DocumentingSeyed Ali Marjaie
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5Yogindernath Gupta
 
Exploratory Testing: Make It Part of Your Test Strategy
Exploratory Testing: Make It Part of Your Test StrategyExploratory Testing: Make It Part of Your Test Strategy
Exploratory Testing: Make It Part of Your Test StrategyTechWell
 
softwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdfsoftwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdfBabaShaikh3
 
Fusion Testing - Maximizing Software Test Execution
Fusion Testing - Maximizing Software Test ExecutionFusion Testing - Maximizing Software Test Execution
Fusion Testing - Maximizing Software Test ExecutionJamie Tischart
 
Software Testing PPT | Software All Testing
Software Testing PPT | Software All TestingSoftware Testing PPT | Software All Testing
Software Testing PPT | Software All Testingsankalpkumarsahoo174
 
Software testing for beginners
Software testing for beginners Software testing for beginners
Software testing for beginners ssuser622d45
 
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
 
Exploratory Testing, A Guide Towards Better Test Coverage.pdf
Exploratory Testing, A Guide Towards Better Test Coverage.pdfExploratory Testing, A Guide Towards Better Test Coverage.pdf
Exploratory Testing, A Guide Towards Better Test Coverage.pdfpCloudy
 
Fundamentals of Testing (2013)
Fundamentals of Testing (2013)Fundamentals of Testing (2013)
Fundamentals of Testing (2013)Jana Gierloff
 
Testing concept definition
Testing concept definitionTesting concept definition
Testing concept definitionVivek V
 
Navigating the Software Testing Maze: Avoiding Common Pitfalls
Navigating the Software Testing Maze: Avoiding Common PitfallsNavigating the Software Testing Maze: Avoiding Common Pitfalls
Navigating the Software Testing Maze: Avoiding Common PitfallsAnanthReddy38
 

Similar a Positivityofnegative (20)

Test Cases Maintaining & Documenting
Test Cases Maintaining & DocumentingTest Cases Maintaining & Documenting
Test Cases Maintaining & Documenting
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
 
Grace slideshare
Grace slideshareGrace slideshare
Grace slideshare
 
Grace slideshare
Grace slideshareGrace slideshare
Grace slideshare
 
Exploratory Testing: Make It Part of Your Test Strategy
Exploratory Testing: Make It Part of Your Test StrategyExploratory Testing: Make It Part of Your Test Strategy
Exploratory Testing: Make It Part of Your Test Strategy
 
Software Testing - SDLC Model
Software Testing - SDLC ModelSoftware Testing - SDLC Model
Software Testing - SDLC Model
 
testing.pptx
testing.pptxtesting.pptx
testing.pptx
 
Software_Testing_ppt.pptx
Software_Testing_ppt.pptxSoftware_Testing_ppt.pptx
Software_Testing_ppt.pptx
 
softwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdfsoftwaretestingppt-120810095500-phpapp02 (1).pdf
softwaretestingppt-120810095500-phpapp02 (1).pdf
 
Fusion Testing - Maximizing Software Test Execution
Fusion Testing - Maximizing Software Test ExecutionFusion Testing - Maximizing Software Test Execution
Fusion Testing - Maximizing Software Test Execution
 
Software Testing PPT | Software All Testing
Software Testing PPT | Software All TestingSoftware Testing PPT | Software All Testing
Software Testing PPT | Software All Testing
 
Software-Testing-ppt.pptx
Software-Testing-ppt.pptxSoftware-Testing-ppt.pptx
Software-Testing-ppt.pptx
 
stfbegn.ppt
stfbegn.pptstfbegn.ppt
stfbegn.ppt
 
Software testing for beginners
Software testing for beginners Software testing for beginners
Software testing for beginners
 
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
 
Exploratory Testing, A Guide Towards Better Test Coverage.pdf
Exploratory Testing, A Guide Towards Better Test Coverage.pdfExploratory Testing, A Guide Towards Better Test Coverage.pdf
Exploratory Testing, A Guide Towards Better Test Coverage.pdf
 
Fundamentals of Testing (2013)
Fundamentals of Testing (2013)Fundamentals of Testing (2013)
Fundamentals of Testing (2013)
 
Testing concept definition
Testing concept definitionTesting concept definition
Testing concept definition
 
Navigating the Software Testing Maze: Avoiding Common Pitfalls
Navigating the Software Testing Maze: Avoiding Common PitfallsNavigating the Software Testing Maze: Avoiding Common Pitfalls
Navigating the Software Testing Maze: Avoiding Common Pitfalls
 
CTFL chapter 05
CTFL chapter 05CTFL chapter 05
CTFL chapter 05
 

Último

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile EnvironmentVictorSzoltysek
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesVictorSzoltysek
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Bert Jan Schrijver
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 

Último (20)

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 

Positivityofnegative

  • 1. Positivity of Negative Pramod Gupta Presented at Datacom Test Camp Turangi , New Zealand
  • 3. IN-CONFIDENCE  Aim  Management  Support  Technique  Test Selection  Execution  Example  Criticism  Conclusion Agenda
  • 5. IN-CONFIDENCE The British Standard definition of negative testing in BS7925-1 defines Negative testing is a term defined site-by-site and sometime team-by-team. Other definition includes tests that aim to exercise the functionality that’s deals with  Input validation, rejection and re-requesting functionality  Coping with absent, slow or broken external resources  Error-handling functionality i.e. messaging, logging, monitoring  Recovery functionality i.e. fail-over, rollback and restoration Negative Testing is “Testing aimed at showing software does not work” • Discovery of faults that results in significant failures, corruptions and security breaches • Observations and measurement of a system’s response to external problems • Exposure of software weakness and potential for exploitation
  • 6. IN-CONFIDENCE  Negative Tests are classified in below 2 categories :  Tests designed to make the system fail  and tests that are designed to exercise functionality that deals with failure.  There are often further aims of negative testing that do not set the scope of the activity  Prompt exposure of significant faults  Learning about function through the study of dysfunction  Verification (and possible enhancement) of risk model used to prioritise testing  Documentation of common failures, characteristic symptoms, and running fixes
  • 7. IN-CONFIDENCE Positive Vs Negative Test Positive Negative Provides a level of confidence that a system works Seeks to show that software does not work Determines that your application works as expected. If an error is encountered during positive testing, the test fails. Ensures that your application can gracefully handle invalid input or unexpected user behaviour or system conditions Testing the system using valid data Testing the system using Invalid data
  • 9. IN-CONFIDENCE  Scripted tests and up-front investment  Test Scripting  Review  Test Data Prep  Test Logistics  Primary negative testing  Test execution of the test from formal test design  Secondary negative testing  Unplanned negative / Exploratory testing – Can not be planned in advance  Project with fixed budget can’t have these Budgeting and estimation
  • 10. IN-CONFIDENCE  Negative test does not have a well –defined position in waterfall or iterative processes  Activities  Test Analysis  Test design  Test monitoring and control  Scheduling and staffing  Exclusion  From a particular test phase  Sound assessment of the risk backed by re-assignment of the task Planning
  • 11. IN-CONFIDENCE  Negative testing can be done at all level of testing Phase Approach Staffing Requirement Analysis / System Design /Unit Test Requirement Analysis to derive negative tests, Formal Techniques , Exception handling , validation functionality in the code Designer , Coders , Test Analysts System / Integration Test Execution of Scripted , Primary and Secondary test , Access risk and potential for exploitation Testers , Automation , Experienced testers UAT / Beta Test User facing errors , Use cases , Mis-use cases , Failure Mode , Performance limits , Fail- over , Recovery tests UAT Testers (Customer users) , Performance testers
  • 13. IN-CONFIDENCE Tester Skill Skill Transfer within team Pair Testing KT of weakness and exploitations KT with DEV/BA/SME’s Trainings / Conferences / Idea’s / Analogies
  • 15. IN-CONFIDENCE  Political support  People outside the test team did not like the idea of spending time on deliberately break the system  Need political support if it is to remain effective and valuable  Test Managers well versed in providing this kind of support. Tips: Avoid the term “ Negative test “   What ever the approach , it’s imp that business understands the value of information produced  Important for testers to understand the value that business places on the information
  • 19. IN-CONFIDENCE  Explicit Restrictions  Implicit Restrictions  Constraints Other Test Types  Stress Testing  Scalability Testing  Reliability Testing Test against known constraints
  • 20. IN-CONFIDENCE  Testing concurrent use of resources can be very fruitful way to discover bugs :  Database  Files  Connections  Hardware  More than 2 requests , queuing, timeouts and Deadlocks Concurrency
  • 21. IN-CONFIDENCE  Happy Go Path Some general mis-use cases for a GUI or browser :  Field entry: varying order from usual sequence on form  Re-entry following rejection of input  Choosing to change existing details  Use of ‘cancel’  Use following ‘undo’  On browsers, navigating using the ‘back’ button, bookmarks etc.  Starting sequence halfway  Dropping out of sequence / interaction without completion/logout Use cases and mis-use case
  • 23. IN-CONFIDENCE  Test Selection Strategy guide team in deciding which test to plan and perform, which one first ?  Choose tests that allow broad and reliable observations of the system  Test effectiveness and robustness of exceptional handling scenarios early  Use a broad set of negative tests to observe the system from different prospective  Priorities testing based on known exploitation which can lead to a crash  Test non happy go paths
  • 24. IN-CONFIDENCE  Negative tests are often simple to write, but hard to execute  Applies particularly to failure modes, concurrency, and exception handling  This need not be a problem; the tests have great value as thought experiments for designers and exploratory testers  Ensure that such tests have sufficient time and tool support  Fault injection tools can make impossible tests practical, and monitoring tools allow problems to be studied ‘in the wild’ i.e. during a volume test Simpler to write than to perform
  • 26. IN-CONFIDENCE  Recognize and exploit weaknesses  Observation Skills  Knowledge of underlying technology  Build model for failure  State Transition – Unexpected states and incomplete transaction  Bug Cluster  Finding faults without doing more testing  Intuitive testers : Bloodhounds , Breakers and Bug hunters  Tools Use
  • 27. IN-CONFIDENCE  When to stop  If deadline or budget have some flexibility  Stop testing when you are not finding new significant issues  Use requirement based or functionality based measurement to determine how much of the system has been observed under test  Projects with firm deadlines  Information collected can be used to prioritise test and justify any extension may required  Information can be given greater value and impact by aiming the test at an assessment of failure mode and verification of risk model  Number of negative tests can be limitless – Negative test is an open-ended  Highest risk first  Use formal techniques to derive exceptional handling tests
  • 28. IN-CONFIDENCE  Populating required fields  Correspondence between data and field types  Field size test  Allowed data bounds and limits  Reasonable data  Embedded Single Quote  Date bound test  Web session test Examples
  • 30. IN-CONFIDENCE That’s an acceptable failure But that would never happen in normal use Don’t the other tests do that? “Why find a problem we can’t fix?” Frequently heard criticisms ( In form of Questions, Excluded and ridiculed )
  • 32. IN-CONFIDENCE  Negative testing is a core skill of experienced testers and required an opportunistic approach to get the best value from the time spent  Negative testing can not only find the significant failures, but can produce invaluable strategic information about the risk model underlying testing and provide overall confidence in the overall quality of system.  Negative testing is an open –ended and hard to plan granularly. It needs to be managed proactively rather than over planed.  Although negative testing is powerful and effective approach, it is also hard to manage task that has the potential to produce unwelcome information. Attempts to ignore or exclude negative testing may need to be robustly opposed.

Notas del editor

  1. purpose of the test team is to show, to a level of confidence, that a system works. Negative testing does the opposite; it seeks to show that software is not working, to dig and probe through the external weaknesses until it finds just the right way of making a bad situation worse, to hurt the system and watch it heal, or die. The two approaches are complementary, but have entirely different aims.
  2. overall aims and management of negative testing, and describes a variety of techniques used to select, derive and execute negative tests
  3. Testing as a whole is reactive, open-ended, and hard to value before it has been done. Much of the blame for this can be laid at the door of negative testing – which is why, although it is an integral part of many different approaches, it is sometimes explicitly excluded from the scope of testing.
  4. Formal techniques for test derivation can be used for negative testing, and are effective during design and unit testing. However, in later phases, negative testing is reactive, open-ended (see box), and can be hard to execute (see box). The reductionist approach of most formal techniques can result in a large number of time-consuming tests, with no real idea of coverage. A significant proportion of negative testing in these late stages will be semi-scripted or exploratory
  5. Negative testing is not a test design technique but rather a approach or test classification. It is possible to use many formal test design techniques to derive tests that can be classified as “ Negative test” .
  6. Test selection strategies guide the team in deciding which tests to plan and perform, and which to do first. Negative testing is open ended, and selection strategies need to deal with the way that one test may reveal a new set of more important tests.
  7. Any test has the potential to expose a weakness during execution. It is important that testers can recognise and exploit these weaknesses – either by adapting the current test, or with a newly designed test later in the process. Designing negative tests to exploit these observed weaknesses is, in essence, exploratory testing. This section covers ways that testers can more easily observe weaknesses, and find effective exploitations.
  8. Any test has the potential to expose a weakness during execution. It is important that testers can recognise and exploit these weaknesses – either by adapting the current test, or with a newly designed test later in the process.
  9. Negative testing comes in for a lot of flack. It is questioned, excluded and occasionally ridiculed. This attention and frequent self-justification means that it is often well aimed, and an effective way of finding good bugs.