Skip to main content

Positive Testing and Negative Testing

In Software Testing, We first verify the product and then Validate the product as per the requirement., In Both process we use some test data as input into the software and check the output. Now we match the output with the expected result if output matching with the expected result we ensure that software is working fine and if output not matches with the expected result we are sure that there are some issue which we should remove from the system. Now we can talk about the input data. We put input data in both ways Positive and Negative.

Positive Testing: In this type of testing, Test team always put the positive set of data in the input values to check the output and check the behavior of the application.  With input set the data the application should give the error when it is specified and should not provide an error when not specified. Suppose one input field which can only accept the value between 1-100. Now when we are trying to the value in between range it should not provide any error but when we trying to put the value out of the range it should shown an error. The intension of Positive Testing to check that software meeting the client requirement.

Negative Testing: In Negative Testing, Test team check the software in Invalid set of data to use as input field and to check the output. The intention of Negative Testing is to ensure that the application should not respond the error which should not be the case. As per the example explain above if i put the value 101 then if is showing the error that value is not valid then it is fine but suppose it is accepting the value and later throw an exception then this fall under the category of bug which should be resolved. 

Comments

Popular posts from this blog

What is API?

In general way, API (Application Programming Interface) is the intermediate software which is useful for two applications to communicate. API is the tool which is used for interaction of two applications. If developer developing any software which have multiple blocks (Modules) than developer use APIs to put them together.

How to Put Load on a Script in JMeter

In last post we discussed about how to record a test script and Firefox settings to run the script. In this post we will discuss about how the Thread Group will work, how can we put n number of users to perform load testing, In JMeter by using Thread Group, we can create virtual users. Thread Group is a set of thread which work in same scenario. There are multiple thread group are available which is use to configure how the virtual users interest with the application, How much load maintain and till how much time load maintain.

Why testing is necessary?

Before start learning of Testing i would like to ask one thing - why testing is necessary? In each and every field 'Testing' is the important phase of product development cycle. Without testing no one ensure the quality of the product. The product can be anything it may be a Car, a Machine, a Medicine , a Software etc, it need to fully tested. Only after testing you can say the product that you build have good quality. Only after testing you can release your product in market. if you release your product in market without testing then it may be possible that your product have serious issue that cause the negative effect on your business. So Testing on important. Now we talk about the Testing importance in Software Development. Testing is necessary because everyone makes mistakes and sometimes these errors are expensive or dangerous. Testing is required to test every part because things can always go wrong. Today is the market of Internet and if you leave any mist...