Testcase writing for radio button and check box

How to write testcases for radio button and check box please can you explain with some example.......

Questions by kavya tokala

Showing Answers 1 - 2 of 2 Answers

nishant

  • Mar 23rd, 2012
 

Test Case to test Check Box:-
1. Click the check box Control and press the submit button and test whether it is redirecting to next page .
2. Uncheck the Check box Control and press the submit button and test whether it is redirecting to next page
3. Check the alignment of the check box i.e. its size, color, style.
4. Check the alignment of the label for the check box i.e. whether it can be left or right
5. Check and Uncheck the check box control and test whether it is automatically redirecting to the server or not if the submit button is not present

Test Case to test Radio button:-
1. If the Radio button control is present in group then check one of the radio button and press submit button to check whether it is redirecting to next page or not
2. Check multiple radio button control at a time and press the submit button and test whether its redirecting .An error message must be displayed i.e. you cannot check multiple radio buttons at the same time.
3. Check the alignment of all the radio button control i.e. whether they are in same directions (Left or right).All the radio button control must be in same directions
4. Check the alignment of the check box i.e. same size,color,style
5. Check whether radio button control could be checked or unchecked through Tab key or with the help of mouse cursor(GUI Testing)

Saket Srivastava

  • Jul 11th, 2012
 

I am not posting a answer at all this is a Question if the Check Box is used just for a kind of selection and not bothering the Flow then what we have to write as a test case

  Was this answer useful?  Yes

surya

  • Mar 25th, 2013
 

see whether with out selecting the check box we can submit or not i.e., to test whether it is a mandatory field or not.

  Was this answer useful?  Yes

Hi Saket srinivastava,

As a part of testing we are having some scenarios for check boxes. So those also very important to test the application. Actually i faced that kind of situations in my organization. For Ex:

1. If we have multiple list of check boxes with the option of "select all", by this time first check the select all check box then it should be checked all check boxes under the list automatically

2. If we uncheck one of them check box under the list then it should be automatically uncheck the "select all"check box
3. If we select all check boxes manually then it should be checked "select all" check box automatically

  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