EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Software Testing Tutorial Negative Testing
Secondary Sidebar
Software Testing Tutorial
  • Types of Testing
    • Adhoc Testing
    • Types of System Testing
    • Manual Testing Types
    • Unit Testing Types
    • Unit Testing Benefits
    • Agile Testing
    • What is Agile Testing
    • Acceptance Testing
    • Stress Testing Types
    • Alpha and Beta Testing
    • Application Testing
    • Automation Testing
    • Automation Testing Advantages
    • Benchmark Testing
    • Black Box Testing
    • Domain Testing
    • Dynamic Testing
    • Ecommerce Testing
    • Fuzz Testing
    • Gray Box Testing
    • GUI Testing
    • Installation Testing
    • Interface Testing
    • Interoperability Testing
    • Mainframe Testing
    • Manual Testing
    • Mutation Testing
    • Monkey Testing
    • Negative Testing
    • Penetration Testing
    • Penetration testing phases
    • Penetration testing framework
    • Protocol Testing
    • Recovery Testing
    • Regression Testing
    • Mobile Penetration Testing
    • Accessibility Testing
    • Sanity Testing
    • Scalability Testing
    • Security Testing
    • Spike Testing
    • Stability Testing
    • State Transition Testing
    • Static Testing
    • Gatling Load Testing
    • System Integration Testing
    • Structural Testing
    • Locust Load Testing
    • System Testing
    • Control Flow Testing
    • Unit Testing
    • Cypress testing
    • Volume Testing
    • Web Testing Application
    • What is Exploratory Testing
    • What is Stress Testing
    • What is Usability Testing
    • White Box Testing
    • Types of White Box Testing
    • Compatibility Testing?
    • Use Case Testing
    • Beta Testing
    • Integration Testing
    • Non Functional Testing
    • Non Functional Testing Types
    • What is Functional Testing
    • Functional testing types
    • Cookie Testing
    • Alpha Testing
    • Boundary Value Testing
    • Equivalence Class Testing
    • Glass Box Testing
    • SOA Testing
    • Smoke Testing
    • Visual Testing
    • Visual Paradigm
    • Model-Based Testing
  • Basics
    • What is Software Testing
    • Careers in Software Testing
    • Defect Life Cycle in Software Testing
    • Bug Life Cycle
    • Levels of Software Testing
    • Software Testing Life Cycle
    • Software Tester Work
    • Software Testing Principles
    • Software Testing Services
    • Testing Methodologies
    • Test Approaches
    • Grey Box Testing
    • Types of Software Testing
    • What is a Bug in Software Testing
    • Benefits of Automation Testing
    • What is Automation Testing?
    • Types of Automation
    • Typical Journey of a Software Tester
    • Automation Testing Process
    • Mobile Automation Testing
    • Automation Testing Life Cycle
    • Software Quality Assurance
    • Software Quality Assurance
    • What is Test Environment?
    • Verification and Validation Testing
  • Testing techniques
    • Software Testing Methodologies
    • Black Box Testing Techniques
    • Static Testing Techniques
    • Test Case Design Techniques
    • What is Static Analysis
  • Testing tools
    • Manual Testing Tools
    • Visual Testing Tools
    • Automation Testing Tools
    • Functional Testing Tools
    • GUI Testing Tools
    • Penetration Testing Tools
    • Performance Testing Tools
    • SOA Testing Tools
    • Accessibility Testing Tools
    • What is QTP
    • Regression Testing Tools
    • Security Testing Tools
    • Test Management Tools
    • Defect Management Tools
    • Code Coverage Tools
    • Test Coverage Tools
    • Defect Tracking Tools
    • Continuous Integration Tools
    • Install Bugzilla
    • Test data generation tool
    • Unit Testing Tools
    • Web Testing Tools
    • Stress Testing Tools
    • Performance Monitoring Tools
    • Mobile Testing Tools
    • Responsive Testing Tool
    • Cross Browser Testing Tools
    • Risk Based Testing
    • Database Testing Tools
    • WinRunner
    • What is Squish?
    • CubicTest
    • What is WinRM?
    • Bugzilla Tool
    • Code review tools
    • Penetration Testing Open Source Tools
  • Advance
    • Cyclomatic Complexity
    • Decision Table Testing
    • Decision Tree Algorithm
    • What is Continuous Integration
    • Mantis Bug Tracker
    • Equivalence Partitioning
    • Gantt Chart Software
    • Acceptance Testing Types
    • Load testing tools
    • Install TestNG
    • Install Unity
    • Defect Management Process
    • Test Plan Template
    • Testing Interview Questions
    • Testing of Mobile application
    • What is Test Automation Frameworks
    • Test Automation Framework
    • Application of Automation
    • Test Automation Process
    • Automation Testing Roles and Responsibilities
    • What is Instruction Cycle?
    • What is Cucumber?
    • 15 Best Popular Bug Reporting Tools
    • What is Automated Testing?
    • Software Maintenance Types
    • Types of Penetration Testing
    • Software Reliability
    • Best Gantt Chart Software
    • Code Coverage
    • Branch Coverage
    • Decision Coverage
    • Statement Coverage
    • What is Test Case
    • Types of Test Case
    • What is Test Scenario
    • Formal Review
    • Alpha Beta Pruning
    • What is Cyclomatic Complexity?
    • Test Coverage
    • How to Write Test Case
    • Testing Documentation
    • Performance Testing Life Cycle
    • Test Harness
    • Test Strategy
    • Software Incident Management
    • What is Debugging
    • What is Defect?
    • Listeners in TestNG
  • Inteview Questions
    • Automation Testing Interview Questions
    • Manual Testing Interview Questions
    • ISTQB Interview Questions
    • Cucumber Interview Questions
    • Software Testing Interview Questions
    • Penetration Testing Interview Questions

Related Courses

Software Testing Course

Penetration Training Course

TestNG Training Course

Negative Testing

By Yashi GoyalYashi Goyal

Negative-Testing

What is ​Negative Testing?

Negative Testing is the process of testing the negative functional flow or the failure passageway of the application’s working behavior from the end user’s point of view. This testing type is a crucial part in most of the web-based or system applications, as it is not helpful to catch all the error spots just in the positive or success paths of the application. This testing is specific to the negative test case scenarios, which can be derived from multiple combinations and permutations of the input/ other integrated applications. The two types of negative testing are boundary value analysis and equivalence partitioning methods.

Why do we need Negative Testing?

There are several reasons, Some of them are mentioned below:

  1. Though it is not possible to provide 100% fault-free software to the end-users, performing it and covering maximum negative scenarios can ensure that the application can handle unexpected situations.
  2. There are a lot of hackers in the market seeking an opportunity to hack an application and misuse the customer’s private data, to avoid such situations of security breaches, negative testing is very important.
  3. Unfolding the loopholes in an application by performing it in order to prevent unexpected behavior.
  4. Ensure the stability of application for the out-of-limit, uncommon and bad data.
  5. In order to provide a vulnerable and robust application to the client, negative testing is a must.

How Negative Testing is Performed?

As it demands both time and cost. A separate team of testers is required in order to perform enhanced testing.

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,560 ratings)
  • Negative test cases specifying multiple test scenarios need to be created for every functionality.
  • Negative scenarios with all possible invalid data need to be tested according to the priority of negative data.

There are two techniques commonly used by testers for negative testing which are mentioned below:

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

1. Boundary Value Analysis

​In Boundary Value Analysis, negative test cases are designed for the values outside the boundary limits in order to verify how the system works for them. For example, if a text field in a form accepts the data from 5-30 characters, so the boundary limits would be 5 and 30 and hence these values would be tested.

2. Equivalence Partitioning

In Equivalence Partitioning, input values are divided into different partitions of equivalent data and only a few values of each partition are tested in order the verify the whole partition. If the data passed, then the whole partition considers being pass else failed. For the above example, for the text field accepting data between 5-30, partitions would be 0-5, 5-30, 30-100, for the this, partitions of 0-5 and 30-100 would be tested.

Advantages and Disadvantages

Following are the advantage and disadvantage:

Advantages

  • To ensure vulnerable and quality software, negative testing is a must.
  • To prevent the software application from cybercrime and unethical hacks, security testing for negative scenarios plays an important role.
  • It gives them confidence that the application is tested against all negative scenarios and hence more reliable.
  • It ensures that all the errors or the bad situations are handled gracefully by the software application.

Disadvantages

  • Sometimes, in some applications, it becomes a waste of time. Intense it is covering all the negative scenarios with multiple negative test data is not always required. Testers at times get so much involved in it that the rigorous positive testing (basic functioning of an application) is left undone.
  • For the detailed, a separate team of testers is required in the project which can cause high project budget issues.
  • The release cycle of the application is sometimes delayed.
  • Highly experienced people are required for negative testing.

Tools used for Negative Testing

Though there are no specific tools available in the market. Test cases to cover all the negative scenarios can be performed either manually or through automation scripts. The most important thing while performing it is the maximum number of permutations of the test data that can be tested for a test case. Manually testing the test case with each test data can be a little boring and time-consuming but this task can be eased by automation testing. Automation scripts can be created through simple Automation tools available in the market like Selenium, TestComplete, Appium, Cucumber, etc. Automation scripts can be helpful in order to cover as all the test data can be stored in a single file for every test case and the script can be executed again and again for each test data.

Conclusion

Negative testing is not included and is never a part of positive testing, as the positive testing ensures the system is working as per the requirements and as mentioned in the documents (SRS) whereas it indicates the robustness, vulnerability, and high-quality standard of the software. It is as important as positive testing as both have different intents to test the software. The more the software goes through testing, the less are the chances of risk in the market make the application more stable and reliable.

Recommended Articles

This is a guide to Negative Testing. Here we discuss the introduction to Negative Testing,  why do we need this testing along the advantages and disadvantages. You may also look at the following articles to learn more –

  1. Unit Testing
  2. Static Testing
  3. System Integration Testing
  4. Black Box Testing
Popular Course in this category
Software Testing Training (11 Courses, 2 Projects)
  11 Online Courses |  2 Hands-on Projects |  65+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Penetration Testing Training Program (2 Courses)4.9
TestNG Training (4 Courses, 2 Project)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more