Anyone can please inform me about how to write test cases
for any mathematical calculations. Say for example, we have
a formula in a given scenario for calculating the interest.

The given formula for interest is: (principle * 5)/(12 * 100)

In this case, the principle amount may vary. Would like to
know how many test cases can be written for this scenario
and how can we decide over this. I will be very thankful for
the answer....

Answers were Sorted based on User's Feedback



Anyone can please inform me about how to write test cases for any mathematical calculations. Say fo..

Answer / akhalesh yadav

Valid test cases
1.value of principle is +ve integer value
2.value of principle is greater than 0

Invalid test cases
1.value of principle is 0
2.value of principle is infinity
3.value of principle is -ve value

Is This Answer Correct ?    8 Yes 1 No

Anyone can please inform me about how to write test cases for any mathematical calculations. Say fo..

Answer / shome varma

1. Value of principle amount +Float value accepting 2 value
after decimal
2. Principle amount cannot be 0.
3.

Is This Answer Correct ?    0 Yes 0 No

Anyone can please inform me about how to write test cases for any mathematical calculations. Say fo..

Answer / amy

One other to do this is equivalent partioning in the valid
test cases

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Test Cases Interview Questions

Given the following code, which is true about the minimum number of test cases required for full statement and branch coverage: Read P Read Q IF P+Q > 100 THEN Print “Large” ENDIF If P > 50 THEN Print “P Large” ENDIF how to find statement and branch coverage? Explain in brief?

0 Answers   ISTQB,


Hi recently in an interview I was asked to write API test cases. Since I am not familiar with it can someone put more light towards API testing and give some example test cases for the same. Thanks!

2 Answers   Microsoft,


How to generate test cases for 'replace a string' method?

0 Answers  


Consider the following: Pick up and read the newspaper Look at what is on television If there is a program that you are interested in watching then switch the the television on and watch the program Otherwise Continue reading the newspaper If there is a crossword in the newspaper then try and complete the crossword A. SC = 1 and DC = 1 B. SC = 1 and DC = 2 C. SC = 1 and DC = 3 D. SC = 2 and DC = 2 E. SC = 2 and DC = 3

1 Answers   ISTQB,


please test case for calculator

2 Answers  






There is one scenario. On login page three fields are available i.e.Login id,Password and checkbox(having funtion remeber my password for 1 week). Please tell me test cases for checkbox.

6 Answers   eZest,


testcases for the additon of 2 numbers write negative and postive cases

8 Answers   CoStrategix, Societe Generale,


1. Buzz Words 1.1 Purpose Allow user easy access of content based on key/popular words 1.2 Scope All the tags at the portal. 1.3 User Interface - Tags are usually hyperlinks that lead to a collection of items that are associated with the tag. - Click takes you to page similar to Search Result page, should search all content and not only articles - Based on Most Viewed only 1.4 Interfacing/Sourcing Details - Need to develop an application which works on algorithm to calculate size/color of Buzz words. - In phase 1 algorithm will be pretty straight forward of calculating dimesion of Buzz words by going by ""Most Viewed/Visited"" words. Need to get exact algorithm.

0 Answers  


Can any one tell me how to write test data. i mean, to test each input, 2 test input(1 for +ve, & other for -ve) are given. so , for example, if i want to write test data for login form, how many test data should i write in test case?

0 Answers   Nike,


Difference between Automation testing and manual testing.

18 Answers   Mphasis, SAP Labs,


what will be the test case for Lift?

22 Answers   Mind Tree, Satyam, Tops Security Ltd,


test case for coffee machine?

16 Answers   TCS,


Categories