What is the difference between positive and negative test cases ...plz any one explain with example...

Showing Answers 1 - 13 of 13 Answers

Semeena.A

  • Jun 5th, 2006
 

Hi,

Positive test case:- Test to check whether the system do what it is suppose to do.ie, Checking for valid values only.

Negative Test Case:- Test to check whether the system will do what it is not supposed to do.ie,Checking for invalid values.

Supriya Gainder

  • Jun 7th, 2006
 

Positive Testing = (Not showing error when not supposed to) + (Showing error when supposed to)So if either of the situations in parentheses happens you have a positive test in terms of its result - not what the test was hoping to find. The application did what it was supposed to do. Here user tends to put all positive values according to requirements.Negative Testing = (Showing error when not supposed to) + (Not showing error when supposed to)(Usually these situations crop up during boundary testing or cause-effect testing.) Here if either of the situations in parentheses happens you have a negative test in terms of its result - again, not what the test was hoping to find. The application did what it was not supposed to do. User tends to put negative values which may crash the application.For example in Registration Form, for Name field, user should be allowed to enter only alphabets. Here for Positive Testing, tester will enter only alphabets and application should run properly and should accept only alphabets.For Negative Testing, in the same case user tries to enter numbers, special characters and if the case is executed successfully, negative testing is successful.

  Was this answer useful?  Yes

Karan

  • Jun 14th, 2006
 

Ya Sameena is more precise and accurate. But I would like to add the left portion(i.e. giving example): Here we go :-)

Take a simple 'Login' window with 'User Name', 'Password' and a login button.

->Now a case which will put valid username and password and will result in successful login is a positive test case.

->Another case which would result into login failure is negative one. It may enter the invalid password or invalid username or both invalid or etc.(Means the case should force functionality to get failed is basically negative test case.)

I think I'm through if else write to karan.sorout@gmail.com  :-)   

  Was this answer useful?  Yes

sri

  • Jun 15th, 2006
 

good answer karan

  Was this answer useful?  Yes

sree

  • Jun 21st, 2006
 

thanks Karan

  Was this answer useful?  Yes

raghv

  • Jul 27th, 2006
 

Dear Karan

  this is good and simple example.

 

  Was this answer useful?  Yes

umesh7a

  • Oct 16th, 2006
 

Positive Test Cases: Positive test csaces are designed to check that we got the desired result with valid set of inputs.(Like user should login into the system with valid user name and passwords.)

Negative Test Cases: Negative test csaces are designed to check system should generate the correct error or warning messages with invalid set of inputs.(like if ueser entered the wrong username or password then user should not login into the system and error message should be shown.

  Was this answer useful?  Yes

Positive test Cases


A test case which always has the positive result i.e correct answer is said to be positive test case

Negative test cases

A test case which always has the negative result i.e wrong answer it is said to be Negative Test Cases

  Was this answer useful?  Yes

Positive test case is nothing but writing the test case to accept only correct value

Negative test case is nothing but used to find really where the application fails

Name field is there with specifications as
1.only alphabets
2.only upto 4 characters
3.no null value

Positive test case

1.entering only alphabets
2.entering upto 4 characters

Negative Test case

1.entering numerics,special characters
2.making a null
3. entering more than 4 characters

  Was this answer useful?  Yes

ngoutham

  • Nov 19th, 2012
 

Positive test case is nothing but writing the test case to accept only correct value

Negative test case is nothing but trying to break the system deliberately

Name field is there with specifications as
1.only alphabets - Should accept
2.more than 4 characters - Should Accept
3.special characters - Should through error message


Positive test case

1.entering only alphabets
2.entering upto 4 characters
3. Special Characters (You may ask why because as per requirement error message should display when special characters entered)

Negative Test case

1.entering numeric,special characters
2.making a null
3. alpha numeric
4. alpha and special characters

Because none of above scenarios were not explained in requirement. Some times script may strip "/" and can take characters after that. So deliberately u r trying to break a system

Goutham

  Was this answer useful?  Yes

Snehal

  • Feb 15th, 2013
 

Testing the application according to functionality is positive testing and testing the application with negative values like enter the incorrect values is negative testing

  Was this answer useful?  Yes

A.SRILAKSHMI

  • Jul 31st, 2014
 

If positive test case means the values are valid
and Negative test case means the values are invalid.

  Was this answer useful?  Yes

loganathan(Fresher)

  • Aug 17th, 2014
 

Ex: Gmail login page

positive test case means entering the valid username and pwd, negative username and pwd.

negative test case means once we enter the correct username & pwd its goes to logged page(inbox page) now if we clicking the back button means its shouldn't go previous page its called negative test case.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions