Can any one please tell me what is the use of negative test
cases when we are giving the invalid input in test data

Answers were Sorted based on User's Feedback



Can any one please tell me what is the use of negative test cases when we are giving the invalid i..

Answer / sn

Well negative test cases define what not to be occurred when an action is done.
Technically " A negative test case is when the test is designed to determine the
response of the product outside of what is defined".
so When an Invalid input is given in test data Negative test cases help to find out wrong functionality.


As it is the main aim of an Tester to test functionality of every application both positive and negatively.



ex: The field shall accept numbers between 1 and 1 000 000.



negative test values:
enter 0
enter 1000001
enter -
enter -1000
enter 1000000000000000000
enter 1 000 (notice the space)
enter 1,000 (notice the comma)
enter 10.0 (notice the decimal point)
enter 10,0 (notice the comma not quite the same as the one above)
enter a
enter A
enter z
enter Z
enter o
enter !
enter $
enter $100 (other currency symbols as well)
enter your name
leave the field blank (could be a positive test)

Is This Answer Correct ?    4 Yes 0 No

Can any one please tell me what is the use of negative test cases when we are giving the invalid i..

Answer / hemavathi.gajjala

If u will enter invalid input system should disply pertular error. for example
Take user name and password
i entered correct user name,wrong password
system should display please enter crrect password
insted of system displayed please enter correct user name.but we are expecting system should display please enter correct password.

Is This Answer Correct ?    2 Yes 0 No

Can any one please tell me what is the use of negative test cases when we are giving the invalid i..

Answer / rohit

Negative test cases are written so as to check how the
system/software behaves when invalid input is entered.

System should display the appropiate error message as per
the validations that are configured. It should not get
crash. It should not get hang.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

what is scenario? how to write scenario?

3 Answers   Alliance One,


how many test cases do u need to ship a product?

0 Answers  


suppose an interviewer asks you to write a testcase for a login window (and application is not given to test). Should we write actual results or expected results or both?

3 Answers  


plz tell how to test this: We have to change the password of password field the condition is:The password will expiry after 30 days and that should not allow last 12 similar passwords....

2 Answers   ACS,


How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other: if (Condition 1) then statement 1 else statement 2 end if if (Condition 2) then statement 3 end if A. 2 Test Cases B. 3 Test Cases C. 4 Test Cases D. Not achievable

1 Answers   ISTQB,






How we apply Test case like integration testion on calculating result or for calculation GPA..... plz urgent need???:(

0 Answers  


write a test cases for advanced search

1 Answers   Satyam,


Hi there Just done with QTP training. I am looking out for a job. can any one share your experinces in real time job. I mean How the work flow goes and what other things do i have to learn for getting a job. please respond ASAP this is urgent for me. Regards Lina.

0 Answers   Sunchem,


what are the Test Cases for " Test Cases " ?

8 Answers   TCS,


Suppose a job should be executed for every two hours? Write test case for this?

0 Answers  


How should I maintain the test cases and Test Log for different versions/builds of the application.

0 Answers  


write a test case for car

2 Answers   Impact Systems,


Categories