Test case for 4 digit number before decimal and 2 digit after decimal as well as $ sign accepted in the text box. example:1111.23$

Showing Answers 1 - 3 of 3 Answers

helloanup

  • Nov 17th, 2008
 

Dhananjay,

Following are the test cases for your requirement.

1. Check whether textbox is blank
2. Check whether textbox contains only one dollar " $ " and not More.
3. Check whether only one " decimal point "." exists and not More.
4. Check whether only 4 digits are present before the decimal and neither More nor Less.
5. Check whether only 2 digits exists after decimal and neither More nor Less.
6. Check that NO alphabets are present.
7. Check that NO special characters are present other than " $ " and " ." i.e. dollar and decimal

Please let me know if I have answered your question correctly :-)

Cheers,
Anup | Mahindrakar


  Was this answer useful?  Yes

The following are some of the test cases for 4 digit number before decimal and 2 digit after decimal as well as $ sign accepted in the text box:

1. Boundary values : 

        EMPTY (null) --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
         1 Char Value ('.' OR '$' ONLY) --> Should NOT be accepted (even when the field is MANDATORY )

          2 Chars (0$) --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
           2 Chars (9$) --> Should be accepted
           3 Chars (0.$) --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
           3 Chars (.9$) --> Should be accepted
           4 Chars (0.0$) --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
           4 Chars (9.9$) --> Should be accepted
           8 Chars (0000.00$) --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
           8 Chars (9999.99$) --> Should be accepted       
           9 Chars (00000.00$) --> Should NOT be accepted
           9 Chars (99999.99$) --> Should NOT be accepted 


2. Data validation

               0$   --> Should NOT be accepted if the field is MANDATORY
                            -->  Accepted if the field is OPTIONAL
               9$  --> Should be accepted
             99$ -->   Should be accepted
           999$  -->   Should be accepted  
         9999$  -->   Should be accepted
 
               9.9$  --> Should be accepted
             9.99$ -->   Should be accepted
           9.999$  -->   Should NOT be accepted  
& so on for 2 ,3, & 4 digits before the decimal point.


3. Special characters other than '.' &'$'   should NOT be accepted.

4. Blank spaces should NOT be accepted.

5. Multiple values should NOT be accepted as it is a PRICE field.

    ( if in requirement multiple values are to be accepted then ',' comma special character should also be accepted)









   

  Was this answer useful?  Yes

1. Check whether textbox allows blank or not
2. Check whether textbox allows alphanumerics
3. Check whether textbox allows zero '0' or not
4. Check whether textbox allows only symbol " $ " or not
5. Check whether textbox allows more than one $ symnol or not
6. Check whether textbox allows only one decimal point "." or not
7. Check whether textbox allows more than one decimal points or not
8. check that the textbox allows max of 4 digits.
9. check that the text box allows negative values "-42.33$"
10. Check whether only 4 digits are present before the decimal and neither More nor Less.
11. Check whether only 2 digits exists after decimal and neither More nor Less.
12. Check that NO special characters are present other than " $ " and " ." i.e. dollar and decimal

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions