.
Dropdown Test Cases
Hello Folks,
In this tutorial, we will learn how to write a test case for drop drop-down list. We will also learn about positive test scenarios and Negative test Cases.
How to Write Test Cases for a Dropdown?
Here!! The Important Test cases for the dropdown list are given...
- Verify that the Dropdown list is Clickable or not (active or not).
- Verify that When Clicking on the drop-down, the drop-down list (value of Dropdown) shows or not.
- Verify whether the dropdown list value is as per the requirement or not.
- Check the design of the drop-down and verify the alignment of the drop-down with other web elements in all browsers.
- Check that the drop-down list accommodates the longest text within its boundary.
- Check that the drop-down can be scrolled down by clicking the down arrow.
- Check that the title of the dropdown is as per the SRS.
- Check that the default item is displayed on the drop-down when the user first visits the page.
- Check that if you select the drop-down by the down arrow key then all items are listed in their expected order.
- Check the spelling, font, and style of the text inside the drop-down as per SRS.
- Check that on clicking the categories in the dropdown, the page displays the corresponding items.
- Check that the selected category in the drop-down Field is highlighted on selecting the item.
- Check how much time it takes the drop-down list to load the items under each category.
- Verify that the User is able to select the Dropdown by the "tab" key from the keyboard.
- Verify that if the list (of items) of this drop-down is controlled by some other selection (say in another drop-down or check-box, or radio button), then check the correctness of the items in this drop-down.
- Verify that if the selection in this drop-down is controlling some other control (say, enabling/disabling, etc), then check the proper action.
- Check that on pressing an alphabet key on the keyboard, categories in the drop-down starting with that alphabet are getting highlighted.
- Check that the user is able to select the categories/items from the drop-down list by pressing the down key on the keyboard.
Test Cases For Dynamic Dropdown
Here !!! Some of the important test cases for the dynamic dropdown are listed.
Example - We have considered a (State & City) dropdown example to explain in detail. Here, in the city dropdown value will display on the selection of the state.
- Verify the city dropdown without selecting a state.
- Verify the City dropdown by selecting the state.
- Check whether the value in the city dropdown is bound accordingly or not.
- Check that the user is able to select the value from the city dropdown
- Verify that when the user selects a value from the city dropdown and unselects the state.
- Verify the default value for the city dropdown
- Check that the selected value in the city dropdown gets unselected or not when the user unselects the state dropdown.
Team,
QA acharya
QA acharya
Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com
![]() |
Test Cases For Dropdown |
8 Comments
Very informative
ReplyDeleteThanks
Excellent 👌👍
ReplyDeleteThank You!
ReplyDeleteFor your Valuable Comment
thank you sir define is very similar words 🙏
ReplyDeleteThank You!
DeleteFor your Valuable Comment
i just started learning drop down fun: it is in_detail explanation thank you archarya
ReplyDeleteThank You for Your Valuable Comment
DeleteTeam,
QA acharya
Thank you so much for sharing knowledge. it is very useful.
ReplyDelete