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
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 |
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 |
Answer / amy
One other to do this is equivalent partioning in the valid
test cases
| Is This Answer Correct ? | 2 Yes | 3 No |
HOW TO WRITE TEST CASES FOR MEGHA MENU DROP DOWN BOX.
how do you write the test cases?
write case for petrol pump?
9 Answers Accenture, AppLabs, EPPCO, Satyam,
For the following piece of code, how many test cases are needed to get 100% statement coverage? Procedure X Read (Color) // Input color from user IF (Color == “Red”) THEN Call Roses(Color) ELSEIF (Color == “Blue”) THEN Call Violets(Color) ELSE PRINT “User is no Shakespeare” SaveToDatabase(Color) End Procedure X A. 5 B. 3 C. 1 D. 2
What is the role of QA in a company that produces software?
can anybody tell me that how many days required to complete 1000 test cases.And what would be the avg testcase perday for a tester.
If there are 10 steps for a test case. and for this test case there are 6 expected results. should I write 6 exp. results in the Expected Result column for a single tes case
This was asked to me recently in Microsoft interview How would you do DOS copy command testing
how many checkpoint u have to used
write a testcase for tea cup?
test cases for friend finder system using gps?
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 A. 1 test for statement coverage, 3 for branch coverage B. 1 test for statement coverage, 2 for branch coverage C. 1 test for statement coverage, 1 for branch coverage D. 2 tests for statement coverage, 3 for branch coverage E. 2 tests for statement coverage, 2 for branch coverage