Test Case
GUI contains 2 fields
Field 1 to accept the value of x and
Field 2 displays the result of the formula a+b/c-d where a=0.4*x, b=1.5*a, c=x, d=2.5*b;
Show the test cases you would write to test this scenario.
Printable View
Test Case
GUI contains 2 fields
Field 1 to accept the value of x and
Field 2 displays the result of the formula a+b/c-d where a=0.4*x, b=1.5*a, c=x, d=2.5*b;
Show the test cases you would write to test this scenario.
Hi,
Please find listed below some of the possible cases.
[U]Testcase1[/U].
Enter a valid Positive Number as 'x'. It could be a whole Number or a fraction. Expected - Field 2 should display output as per formula,
[U]Testcase2[/U].
Enter a Negative number as 'x'.
Expected - Field 2 should display correct result as per formula calculation.
[U]Testcase3[/U].
Enter Field 1 as 0.
Expected - Field 2 should also display result as 0.
[U]Testcase4[/U].
Leave Field 1 blank.
Expected 2 - System should display an error message and not calculate any value in Field 2.
[U]Testcase5[/U].
Enter Alphanumeric or Textual characters in Field 1.
Expected - System should display an error message but functionality should not fail.
[U]Testcase6[/U].
Check if you could directly edit Field 2 after formula calculation. In sense whether you could manually change the result of calculation.
You could add to this list based on some more ideas....
Cheers....
Hi Umesh,
You have given almost all the scenarios for the formula given by Vinesh. But a small change in the Test case 3:
[I]If you enter the input for Field 1 as 0,
Then Expected result is - The system should throw an error message since "zero divided by zero is infinite" and Field 2 should display either no value or as "Infinite"[/I]
Regards,
Ganesan
Thanks Sridhar....
Too Much work is the cause I guess:D
Cheers...
i have a small doubt here..
do we need to check the field lenght here?
I mean the max length accepted by Filed1??
Hi Animesh,
Yes we can also test the Length of the Field 1 and Field 2 also, if there is a specification stating that the length of the field is limited to certain digits.
Regards,
Ganesan
Thanks ganesan