QA Tutorials

NEGATIVE TESTING

ARTICLE 2

Negative testing is referred as error path testing or failure testing. The reliability of the software is tested based on the negative scenarios. Some of the negative scenarios are:

  • Populating required field: Skipping the required data entry and trying to proceed
  • Allowed number of characters: Entering more number of characters
  • Allowed data bounds and limits: Enter the large values to test the size of the field
  • Reasonable Data: Verify the data validity and format

For Example

MOBILE NO: ABCDEF – Only Numbers

The features of Negative testing are:

  • Negative testing is carried out to find the faults that can be a reason of significant failures.
  • This type of testing is performed to overcome the potential exploitation and software weakness
  • It shows the corruption or security breaches of the application.

The negative testing is important from organisation’s perspective because it is the organisation’s responsibility to provide good quality of product to the client. The impact of not performing the negative testing can be even a security threat to system. For example: Due to the security related error in the system someone may hack all the sql data and erase it. This will be a great security breach. Hence it is important to do the security testing, while doing negative test cases. Also we need to give priority to the input data. For example in the image field where only GIF pictures can have options we have lot of options to upload ‘Jpeg’, XML files. The software testers need to prioritise the test cases before the execution of the software and save execution time and cost.

The testing techniques are used for positive and negative testing are:

Boundary value Analysis:

This is one of the software testing technique where in the test cases are designed to include boundaries of values. The input data has its limit in the boundary then it is positive testing. The input data is out of the boundary limit or exceeds the boundary value then it is negative testing. Suppose the system accepts the numeric values 0 to 9 the numbers with the boundary values like -1,0,1 and 8, 9, 10 are tested. -1 and 10 are invalid values(negative testing).

Equivalence Partitioning: 

This type of testing divides the input data into many partitions with similar input in each partition. From every partition, one value is tested. The one with valid values are positive testing and the value partition of invalid values is negative testing. For example The numeric values from 0 to 9 have three partitions: less than 0, 0 to 9 and greater than 9.

Check your understanding:

1. What are the feature of negative testing and positive testing?

2. What are the techniques of negative testing over positive testing?

Facebook Comments
Tags

Related Articles

36 thoughts on “NEGATIVE TESTING”

  1. 1. Feature of negative testing and positive testing:
    Negative testing features:
    -It is carried out to find the faults that can be a reason for significant failures.
    -This type of testing is performed to overcome the potential exploitation and software weakness.
    -It shows the corruption or security breaches of the software.
    Positive testing features:
    -It is carried out keeping positive point of view & only execute the positive scenario.
    -Always tries to prove that a given product and project always meets the requirements and specifications.
    2. Techniques of negative testing over positive testing:
    -Boundary value analysis
    -Equivalence partitioning

  2. The features of Negative testing are:
    • Negative testing is carried out to find the faults that can be a reason of significant failures.
    • This type of testing is performed to overcome the potential exploitation and software weakness
    • It shows the corruption or security breaches of the application.

    The features of positive testing are:
    • To check for an only valid set of values and check if an application behaves as expected with its expected inputs.
    • To check whether software application not showing error when not supposed to & showing error when supposed to.
    • Positive Testing always tries to prove that a given product and project always meet the requirements and specifications

    What are the techniques of negative testing over positive testing?
    • Boundary Value Analysis
    • Equivalence Partitioning

  3. 1. Negative testing is mainly done to test invalid data and check for failures.
    Positive testing is done to test valid data and make sure it works as per the client requirements.
    2. Boundary value analysis and equivalence partitioning.

  4. The negative testing feature is to find the defect in software after putting invalid data.
    The positive testing feature is to find out if system is working as you expected.

    2. Boundary Value analysis and Equivalence Partitioning are the techniques of positive and negative testing.

  5. The features of Negative testing and Positive testing are:
    Negative testing is done to find the faults that can be a reason of significant failures , to overcome the potential exploitation and software weakness and shows the corruption or security breaches of the application.
    Positive testing is done to check if the software is working as per client requirements.
    The techniques of negative testing over positive testing are:
    Boundary value analysis.
    Equivalence partitioning.

  6. 2. Negative testing is done to find the faults in order to prevent security breach which can  lead to potential failure of the project. Negative and positive testing uses Boundary Value Analysis and Equivalence partitioning techniques: if the input data is out of it’s boundary limit then it is Negative testing also the invalid values from the partition values is referred as Negative testing whereas valid data within the boundary limit and valid values from the partitioned data falls under positive testing.

  7. 1.Features of negative testing:
    a)This type of testing, evaluates a software product, against the failed conditions.
    b)It is performed to identify faults or loopholes and vulnerable areas, which may results, into software’s failure.
    c)It is done to ensure the stability of a software product, after being encountered with the input values, beyond the limit/scope or
    with the invalid input data.
    2.The techniques of negative testing over positive testing are:
    a)Boundary value analysis.
    b)Equivalence partitioning.

  8. Negative testing is done to find the faults in order to prevent security breach which can  lead to potential failure of the project. Negative and positive testing uses Boundary Value Analysis and Equivalence partitioning techniques: if the input data is out of it’s boundary limit then it is Negative testing also the invalid values from the partition values is referred as Negative testing whereas valid data within the boundary limit and valid values from the partitioned data falls under positive testing.

  9. POSITIVE/NEGATIVE TESTING 2
    1. There are 2 techniques: 1) boundary testing is where the testing is done out of boundary range. 2) equivalence testing is where the data divides in many partitions.
    2. They are just boundary testing and equivalence testing.

  10. The features of negative testing is to find the error in the software that can be a reason for its failure.The feature of positive testing is where we enter the valid data and the software performs in accordance to the clients requirement.
    the techniques of negative testing are Boundary value analysis and Equivalence class partition.

  11. This is another article on negative testing with more examples. It emphasizes on types of testing -boundary value analysis and equivalence class partitioning.

  12. 1. What are the feature of negative testing and positive testing?
    Negative testing is done to check the behavior of the system when wrong type of data is entered in the UI of the application. It is to see whether the application is giving the message to the end user as the data entered is wrong.
    Positive testing is giving correct data into the application and checking whether the system is working fine as per the requirement of the client.

    2. What are the techniques of negative testing over positive testing?
    The techniques of negative testing over positive testing are Boundary value analysis and Equivalance class partitioning.

  13. 1. Positive testing is testing the application software via the requirements. It does not considers the negative value requirements side. Negative testing on the other hand considers all the possible inputs other than the right requirement data. THis is very important type of testing because it will make sure to have a good, reliable quality product.
    2. Techniques of the negative testing are the boundary value analysis where input data has its limit and Equivalence Partitioning.

  14. Negative Testing; This strategies ensure that software can handle the invalid data without crashing and displays the error message.
    The quality of software is depends on the negative scenarios. For instance: Number of character, Leaving input fields empty. enter more number or character then limits.
    Boundary value Analysis: In this technique the input data has boundaries and if the enter data is with in the limit then its positive testing. However, data exceed the boundaries of the limit then it will be negative testing.
    Equivalence Partitioning: In this technique input data divide into some specific parts and each part has to be tested. if inputs are Valid then testing is positive and invalid data is negative testing.

  15. The negative testing is done to overcome the software weakness,it shows the corruption or security breaches of the application.Negative Testing ensures that the application can handle the invalid input.
    The Positive testing determines that your software works as you expected. Software is tested with valid possibilities and valid data values. If an error occurs then software fails.
    The techniques of negative testing over positive testing are:
    a)Boundary value analysis.
    b)Equivalence partitioning.

  16. positive testing is done to ensure that the software is working as expected while enterining valid data and possibilities. if an error displays then the software fails.
    Negative testing is done to ensure that the software can handle invalid inputs and possibilities.
    techniques are: boundary value and equivalence partition.

  17.  Features of Positive Testing:
    Positive testing done with a set of valid data to make sure the software testing is done to meet all the client requirements.

     Features of Negative Testing:
    Negative testing is referred as error path testing or failure testing. The reliability of the software is tested based on the negative scenarios to make sure the software can handle all the invalid data inputs.

     There are two techniques used by testers:
    1. Equivalence Class Partition: This type of testing divides the input data into many partitions with similar input in each partition. From every partition, one value is tested. The one with valid values are positive testing and the value partition of invalid values is negative testing. For example, the numeric values from 0 to 9 have three partitions: less than 0, 0 to 9 and greater than 9.
    2. Boundary Value Analysis: This is one of the software testing techniques where the test cases are designed to include boundaries of values. When the input data are within the limits it is called positive testing. When the input the data are outside of boundary limit it is called negative testing. For instance, if the system accepts the numeric values 0 to 9 the numbers with the boundary values like -1,0,1 and 8, 9, 10 are tested. -1 and 10 are invalid values (negative testing).

  18. 1. What are the feature of negative testing and positive testing?
    Features of Positive Testing :
    Positive testing determines that your software works as you expected.
    Software is tested with valid possibilities and valid data values.
    If an error occurs then software fails.
    ——————————————-
    The features of Negative testing are:
    Negative testing is carried out to find the faults that can be a reason of significant failures.
    This type of testing is performed to overcome the potential exploitation and software weakness
    It shows the corruption or security breaches of the application.
    —————————————————————————————————–
    2. What are the techniques of negative testing over positive testing?
    Boundary value Analysis:
    This is one of the software testing technique where in the test cases are designed to include boundaries of values.
    The input data has its limit in the boundary then it is positive testing.
    The input data is out of the boundary limit or exceeds the boundary value then it is negative testing.
    Suppose the system accepts the numeric values 0 to 9 the numbers with the boundary values like -1,0,1 and 8, 9, 10 are tested. -1 and 10 are invalid values(negative testing).

    Equivalence Partitioning:
    This type of testing divides the input data into many partitions with similar input in each partition.
    From every partition, one value is tested. The one with valid values are positive testing and the value partition of invalid values is negative testing.
    For example The numeric values from 0 to 9 have three partitions: less than 0, 0 to 9 and greater than 9.

  19. 1.Positive testing is done with valid data and information to find the software application is working as per client requiremnt.
    Negative testing is done with invalid data to avoid failure and software crashing.

    2.Boundary value analysis and equivalence partitioning

  20. • In Negative testing, the s/w is tested with invalid inputs to check if s/w behaves as expected with negative i/p’s and it does not do anything that it is not supposed to do.
    • In positive testing, the s/w is tested with valid i/p’s to check if s/w behaves as per the client functional requirements.

    Boundary value analysis
    Decision table
    Equivalence portioning table

  21. Features of Negating testing are based on three keys finding defects that can be detrimental to the software, capturing possible exploitation to expose the software weakness, and revealing corruption and security vulnerability in the software. Whereas, Positive testing Features are for confirming the expectations using valid required input data to satisfy the client needs.
    Even though same techniques such as Boundary Values Analysis and Equivalence Partitioning are used for both, Negative testing and Positive testing, Positive testing validates the software accepting only valid values and Negative testing accepting the Invalid values confirming with both the reliability of the software.

  22. 1. Positive testing ensures that the software works as per the expectation.
    software is tested with valid input and possibilities.
    b. Negative testing ensures that is tested with invalid data values. This is to ensure that the software can handle the improper behaviour of the system and avoid crashing.

    2. Techniques of negative testing are:
    – Boundary value Analysis
    – Equivalence Partitioning

  23. The features of Negative Testing and Positive Tasing are:
    Negative Testing:It is done to find defects which can be reason of significant failure.It is performed to overcome software weakness.It shows security breaches of the application.
    Positive Testing:It is performed to check your software work as per your requirement.It is tested with valid possibilities.
    The testing techniques are used for Negative and Positive testing are:
    1.Boundary Value Analysis:In it if the input data has its limit in the boundary, then it is Positive testing.If input data is out of boundary limit then it is Negative testing.
    2.Equivalence Partitioning:The input data with partition, one with valid values are positive testing and the value partition of invalid value is negative testing.

  24. The feature of negative testing and positive testing:
    Negative testing is done to overcome the potential exploitation of a software and to check its weaknesses and outline the corruption or security breaches of the application.
    Positive testing is performed to determine if the software is working as per client requirement based on keying valid input or data.

    Testing techniques are:
    -Boundary value analysis
    -Equivalence partitionning

  25. 1.Negative testing is carried out to find the faults that can be a reason of significant failures.
    This type of testing is performed to overcome the potential exploitation and software weakne
    It shows the corruption or security breaches of the application.
    2.Boundary value analysis and equivalence partitioning

  26. What are the feature of negative testing and positive testing?
    • Negative Testing is carried out to spot the faults that can result in significant failures.
    • Negative Testing is performed to expose the software weakness and potential for exploitation.
    • It is carried out to show data corruption or security breaches.

    2. What are the techniques of negative testing over positive testing?
    • Embed Single Quote on URL when it tries to query the database.
    • Skip the Required Data Entry and try to proceed.
    • Verify each Field Type Test.
    • Enter large values to test the size of the fields.
    • Verify the numeric boundary and numeric size test.
    • Verify the Date Format and its validity.
    • Verify the web session and check for the performances.

  27. Feature of positive and negative testing:
    Positive testing:
    Positive testing determines that the software works as you expected .software is tested with valid possibilities and valid data values .
    Negative testing:
    Negative testing is carried out to find the faults that can be reason for significant failures.The reliability of the software is tested based on negative scenarios
    The testing technique used for positive and negative testing are:
    Boundary value analysis:
    If the input data is used within the boundary value limits, then it is said to be Positive Testing. If the input data is picked outside the boundary value limits, then it is said to be Negative Testing.
    Equivalence Partitioning:
    This is a software testing technique which divides the input data into many partitions. Values from each partition must be tested at least once. Partitions with valid values are used for Positive Testing. While partitions with invalid values are used for negative testing.

  28. 1. Feature of negative testing and positive testing:
    Negative testing features:
    -It is carried out to find the errors that can be a reason for significant failures.
    -This type of testing is performed to overcome the potential exploitation and software weakness.
    -It shows the corruption or security breaches of the software.
    Positive testing features:
    -It is carried out to check if the software performs the way it needs to when the correct values are put in.
    -Always proves that a given product and project always meets the requirements and specifications.
    2. Techniques of negative testing over positive testing: Boundary value analysis and Equivalence partitioning

  29. The Features of negative testing is to find the fault in the software that can be a reason for its failure.This type of testing is
    performed to overcome the potential exploitation and software weakness. It shows the corruption or security breaches of the
    application.
    The Feature of positive testing is where we enter the valid data and the software performs in accordance to the clients requirement.

    The techniques of negative testing over positive testing are
    1) Boundary value analysis:
    This is one of the software testing technique where in the test cases are designed to include boundaries of values.
    The input data has its limit in the boundary then it is positive testing. The input data is out of the boundary limit or
    exceeds the boundary value then it is negative testing.
    2) Equivalence class partition:
    This type of testing divides the input data into many partitions with similar input in each partition.
    From every partition, one value is tested. The one with valid values are positive testing and the value
    partition of invalid values is negative testing.

  30. the negative feature of testing is to find fault that can result in significant failures, to expose software weakness, potential for exploitation, carried out to show data corruption or security breaches, whereas positive software testing functions as a requirement.
    the techniques of negative and positive testing are
    boundary value analysis and equivalence partitioning

  31. Positive testing is done with valid data to find the software is working as per client requirement.
    Negative testing is done with invalid data to avoid the software crashing.
    The techniques of negative testing over positive testing are boundary value analysis and equivalence class partitioning.

  32. 1. Positive testing is done to determine that the software works as expected with valid inputs and meets the expectations of the client where as the Negative testing is done to determine the unexpected errors with invalid inputs in order to verify the reliability,stability and security of the software.
    2. There are two techniques used for positive and negative testing:
    1. Boundary value analysis
    2. Equivalence partitioning
    In both the techniques when the input is valid it is positive testing and when the invalid input is given it is negative testing

  33. The features of Negative testing are:
    • Negative testing is carried out to find the faults that can be a reason of significant failures.
    • This type of testing is performed to overcome the potential exploitation and software weakness
    • It shows the corruption or security breaches of the application.

    The features of positive testing are:
    • To check for an only valid set of values and check if an application behaves as expected with its expected inputs.
    • To check whether software application not showing error when not supposed to & showing error when supposed to.
    • Positive Testing always tries to prove that a given product and project always meet the requirements and specifications

    What are the techniques of negative testing over positive testing?
    • Boundary Value Analysis
    • Equivalence Partitioning

  34. Positive testing verifies the functioning of the software with data that is valid. Negative testing identifies the data inputs which could potentially cause the software to not produce a result, and possibly result in the software crashing. Negative testing could be
    done with data values just outside the boundaries of a range of potential input values, and this is called boundary value analysis.

    Negative testing can also be done within 3 partitions, where values just outside the two boundaries are tested in 2 partitions, while valid data is tested within the 3rd partition. This is called Equivalence Partitioning.

  35. Negative testing is done using invalid data. Positive testing is done with valid data.
    Negative testing = boundary value analysis

  36. 1.Negative testing is done to check a software/application’s response to invalid data values. The main reason it is done is to identity the faults that may cause major failures. It is also done with an intention to show how secure the software is when exposed to exploitation and software weakness. Positive testing one the other hand is done to ensure that the software/application is working as per the requirements of the clients. Valid data values are input and behavior of the software is tested accordingly.

    2. The testing technique used for both positive and negative testings’ are:
    a) Boundary value Analysis- In this case a certain boundary is set. For example, if the boundary is 0 to 100 then testing with values of -1 and 101 is negative testing. The values are not within the boundary selected. Again, when the system accepts 0 to 100 and values entered are 1 to 99 then this is positive testing.
    b) Equivalence Partitioning- here the input data is divided into many partitions with similar input in each partition and from each partition one value is tested. For example; for numeric values 0 to 100, have less than 0, 0 to 100, and greater than 0 as three partitions. Testing for values less than 0 and greater than 100 is negative testing and between 0 to 100 will be positive testing.

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also

Close
Close