write test cases forthe function f=a+b ?

Answers were Sorted based on User's Feedback



write test cases forthe function f=a+b ?..

Answer / shailaja

For the addition of two numbers we have to test the
following things...
1)Valid criteria
2)Invalid Criteria
3)Blank
Tc1:Valid data
1)Enter valid data for a &b check f value
Tc2:Blank
1)Enter value for a and keep b as blank and test the
functionality
2)Enter value for b and check the functionality
3)Both are blanks check the functionality


1)a+ve value,B negative value(Vice versa)
2)A some value b is 0(vice versa)
3)Decimal values for both the fields
4)one decimal and one normal digit
5)Check for alphanumeric values
6)Enter space before,middle,end entering the value
andcheck the additon
7)special characters
.so many things are ther to consider the things ...

If anybody asks u to write testcases first ask them to give
clear requirements so that depends upon that we can write
the test cases..
here in this case we dont know the type of variables a&b
if we know the type of variables we can write as per that ..

please let me know that if write anything wrong....

Is This Answer Correct ?    17 Yes 2 No

write test cases forthe function f=a+b ?..

Answer / kamal

1) enter the value a
2) enter the value b
4) add the two numbers and store in f
3) verify the addition of two numbers with value in f

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More Manual Testing Interview Questions

Explain about Defect Leakage?

1 Answers   HCL,


what is the difference between test senario and test case?

3 Answers   ITC Infotech,


What are the possible Test cases for Save in M.S word ?

3 Answers   R Systems,


What will you do if your developer doesnt agree with you on the severity and priority that you assigned to a bug

5 Answers   SumTotal,


Can you explain confirmation testing?

0 Answers  






Describe your experiences with code analyzers.

0 Answers   HCL,


In Manual testing how to test proxy servers? can u please explain with example?

0 Answers  


Tell some examples of bug severity and bug priority?

0 Answers  


Hi I am searching job please send some details abuot ERP project and real time test plan,traceability report,test case if any relate to erp project Please help me out to get a job in testing.my email address is chiku_69@yahoo.in Thank u

0 Answers  


When you found any bug before release product to the customer.what will you do????what will be your aproach?

3 Answers  


what is test condition? what is test scenario?

1 Answers   CTS,


Can the static testing be done for both web and client server application?

4 Answers  


Categories