In this post, you’ll find test cases for tabs. For those who are not aware of the tabs control, you can go to jquery UI homepage and check the demos. You can find how the tabs work and how they arrange the data.
For the sake of simplicity, take a look at the image below for the ideas on test cases. This image, shows you three tabs that are clickable. The content is not dynamic, however, the content hides from unselected tabs. So selected tabs content is shown there. You can take a look at the jQuery tab demo in order to see how the functionality works. The more test cases can be formed if you get hands on the dynamic content within the tabs.
If you wish to test the tabs on window based programs, then I suggest taking a look at the tabs within application like Notepad++. You can also read the test cases for find and replace dialog box if you wish to test the tabs for window based application. This way you can check the difference between the webapp based tabs and windows based tabs.
Here are some of the sample test cases for tabs.
- Verify if the tabs are clickable.
- Verify if the tabs are not locked or stuck on any single tab option.
- Verify if the content inside tab is visible.
- Verify if the content in specific tab shows under the expected tab.
- Verify if the tab colors are as per specification.
- Verify if the tabs are loaded properly when the webpage is loaded.
- Verify if the slow download doesn’t break the tab content and renders tab open.
- Check if the tabs hide the information unless clicked otherwise.
- Check if the tabs don’t have animated effects for onclick action.
- Check if the tabs open on mouseover or not.
- Check if the tabs require mousehold on the tab to view the content.
- Check if the tabs are sortable for easy data viewing.
- Check if the tab data is served through AJAX.
- Check if the vertical tab feature is available.
- Check if the horizontal tab feature is enabled by default.
- Check if the clicking one one tab hides the content of another.
These are some of the test cases that comes to mind for the tab usage. I am sure you can come up with even more if you take example of apps with more tabs or content in it.
I suggest making use of Jquery demo page and find the test cases for the tabs. You are likely to find more test cases for the tabs. If you have any suggestions or comments regarding the test cases on my website then do let me know in the comments. I’d appreciate your feedback. Please feel free to share this page on Facebook and Twitter. 🙂
anju says
Nice one..
It will really help me a lot