Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write test cases forthe function f=a+b ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main key components in client and server applications?

1109


What is Test Design ?( Urgent) and Test Design for Printer?

2014


how to test a web application manually?can u explain indetail?

2025


what are the templates for daily,weekly and monthly reports? plz reply ASAP.

2058


What is an inspection in software testing?

1164


what is independent question and what is retriewing and what is problem of severity.

1913


Explain the importance of agile testing?

1109


When we are recording in WinRunner and interact with the AUT, what does WinRunner do?

1966


what is TAS language which is used as a language for some projects/

1993


What a team leader will test first when s/he will get new module to test?

2031


is it not possible to automate full project??what r the parts in project that cant be automated(tht has to be done manually)?

2389


Tell me example for Risk,Mitigation,Assumption?

2297


Hi friends, Im an MBA Finance, 2 yrs of exp workng in Investment com, + around 2 yrs of exp in Manual testing in Finane domain. Im looking for manual testing jobs but not getting any calls, Im worried is manual tesing in finance domain do have any good scopes in future or not. Plz provide me ur valuable suggestion,so tht I can best decision to retain in this platform(manual testing). or not

2289


What are the RBI rules has to follow by a bank for online precesseing. ?

2105


What r the sequences that leads to automation?

1969