Hello Friends! In this post, we will study – how to write test cases for Pen. Going through these test cases will not only help you in your testing interviews but will also help you in understanding the process of test case creation which you can utilize while creating test cases of any kind of application.
Since the focus is to check and cover the different features to be tested instead of the creation of formal test cases, so the following can be considered as test scenarios also.
For the exact difference between test cases and test scenarios, check our post – Difference b/w Test Case and Test Scenario. For a formal test case document template, you can refer to our post – Test case template (download Xls).
Now, without further delay, let’s begin with some sample test cases of pen categorized on the basis of different types of testing.
User Interface (UI) Test Cases for Pen
These test cases cover the testing of the Graphical User Interface of the application to be tested which is Pen in our case.
- Verify that the length and the diameter of the pen are as per the specifications.
- Verify the outer body material of the pen. Check if it is metallic, plastic, or any other material specified in the requirement specifications.
- Check the color of the outer body of the pen. It should be as per the specifications.
- Verify that the brand name and/or logo of the company creating the pen should be clearly visible.
- Verify that any information displayed on the pen should be legible and clearly visible.
Functional Test Scenarios for Pen
Functional test cases are the test cases that involve testing the different functional requirements of the application under test.
- Verify the type of pen, whether it is a ballpoint pen, ink pen, or gel pen.
- Verify that the user is able to write clearly over different types of papers.
- Check the weight of the pen. It should be as per the specifications. In case not mentioned in the specifications, the weight should not be too heavy to impact its smooth operation.
- Verify if the pen is with a cap or without a cap.
- Verify the color of the ink of the pen.
- Check the odor of the pen’s ink on writing over a surface.
- Verify the surfaces over which pen is able to write smoothly apart from paper e.g. cardboard, rubber surface, etc.
- Verify that the text written by the pen should have consistent ink flow without leaving any blob.
- Check that the pen’s ink should not leak in case it is tilted upside down.
- Verify if the pen’s ink should not leak at higher altitudes.
- Verify if the text written by the pen is erasable or not.
- Check the functioning of the pen on applying normal pressure during writing.
- Verify the strength of the pen’s outer body. It should not be easily breakable.
- Verify that text written by pen should not get faded before a certain time as mentioned in the specification.
- Check if the text written by the pen is waterproof or not.
- Verify that the user is able to write normally on tilting the pen at a certain angle instead of keeping it straight while writing.
- Check the grip of the pen, whether it provides adequate friction for the user to comfortably grip the pen.
- Verify if the pen can support multiple refills or not.
- In the case of an ink pen, verify that the user is able to refill the pen with all the supported ink types.
- For ink pens, verify that the mechanism to refill the pen is easy to operate.
- In the case of a ballpoint pen, verify the size of the tip.
- In the case of a ball and gel pen, verify that the user can change the refill of the pen easily.
Negative Test Scenarios for Pen
The negative test cases include test cases that check the robustness and the behavior of the application when subjected to unexpected conditions.
- Verify the functioning of a pen at extreme temperatures – much higher and lower than room temperature.
- Verify the functioning of a pen at extreme altitude.
- Check the functioning of a pen at zero gravity.
- Verify the functioning of the pen on applying extreme pressure.
- Verify the effect of oil and other liquids on the text written by a pen.
- Check if the user is able to write with a pen when used against gravity i.e. upside down.
- Verify the functioning of a pen when a user tries to write on unsupported surfaces like glass, plastic, wood, etc.
- Verify if the pen works normally or not when used after immersing in water or any other liquid for some period of time.
Performance Test Cases for Pen
Performance test cases include the test cases that help in quantifying or validating the performance of an application under different conditions.
- Check how fast the user can write with the pen over supported surfaces.
- Verify the performance or the functioning of a pen when used continuously without stopping (Endurance Testing).
- Verify the number of characters a user can write with the single refill in case of ballpoint & gel pen and with full ink, in case of ink or fountain pens.
Thanks for making it to the end of this tutorial. I hope by now, based on these sample test cases for pen, you must have got a fair idea of the test case creation process. Understanding these would help you in creating the test cases of actual software applications.
If you feel, we have missed some test cases, please let us know over the comments. We will add them to our list.
Test Case Examples
Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals. You can connect with him on LinkedIn.