Positive and Negative Testing


Positive and Negative Testing

1) What is Software Testing?
2) Positive and Negative Testing
3) Positive Testing
4) Negative Testing
5) Test Design Techniques used for Positive and Negative Testing:
6) Positive and Negative Test Cases
---------------------------------------------
1) What is Software Testing?

Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not. In addition 
executing a system in order to identify any gaps, errors, or missing requirements in contrary to the actual requirements.
---------------------------------------------
2) Positive and Negative Testing

Accepting valid input data, simultaneously rejecting Invalid input is called
Positive and Negative Testing...

Ex: Suppose Phone Number field is there in our application, It has to accept
10 digit numeric values only as per requirements, 

Then It has to accept 10 digit numeric values and reject other values (Other than 10 digit numeric values)
---------------------------------------------
3) Positive Testing

Positive Testing is testing process where the system is validated against the 
valid input data. In this testing, tester always check for only valid set of 
values and check if a application behaves as expected with its expected inputs. 
The main intention of this testing is to check whether software application does 
that what it is supposed to do.

Example of Positive Testing:
Consider a scenario where we want to test an application which contains a simple text box to enter age and requirements say that it should take only numerical values. So here provide only positive numerical values to check whether it is working as expected or not is the Positive Testing.

Age: 45
---------------------------------------------
4) Negative Testing

Negative Testing, commonly referred to as error path testing or failure testing is done to ensure the stability of the application. Negative testing is the process 
of applying as much creativity as possible and validating the application against 
invalid data.

In Negative Testing the system is validated by providing invalid data as input. A 
negative test checks if an application behaves as expected with its negative 
inputs. This is to test the application that does not do anything that it is not 
supposed to do so.

Example of Negative Testing :
Considering example as we know phone no field accepts only numbers and does not accept the alphabets and special characters but if we type alphabets and special characters on phone number field to check it accepts the alphabets and special characters or not than it is negative testing.

Phone Number: abcdef
---------------------------------------------
Software Testing
5) Test Design Techniques used for Positive and Negative Testing

Following techniques are used for Positive and negative validation of testing is:

i) Equivalence Partitioning 
ii) Boundary Value Analysis
----------------------------
i) 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.

ii) Boundary Value Analysis:

This is one of the software testing technique in which the test cases are designed to include values at the  boundary. 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.
---------------------------------------------
6) Positive and Negative Test Cases

Remember, Positive Test case always only for a Positive test scenario,
Example: Login to the Application with valid input data

Positive  Test Case: Login to the Application with Valid Username and valid password.

But several negative Test cases for a negative test scenario,
Example: Application rejects Login for Invalid input data

Negative Test Case 1: Login to the Application with Invalid Username and valid Password.

Negative Test Case 2: Login to the Application with valid username and Invalid Password.

Negative Test Case 3: Login to the Application with Invalid username and Invalid password.

Negative Test Case 4: Login to the Application with username blank and valid 
Password, 

Negative Test Case 5: Login to the Application with username blank and password blank, etc...
---------------------------------------------

1 comments:

Post a Comment