We often see that interviewers ask us to write the sample test cases for pen. It becomes quite harder to write them unless we break the test cases down in multiple categories like – performance, specification, negative tests and usability tests etc. So in this article, I’m jotting down some of the sample test cases both positive and negative for the pen.
Design basaed Test Cases
Each pen is unique in design and follows a particular pattern for the design. So we have to write the test cases for the same.
- Does the pen make follows the design specification?
- Does the pen have the color as per specification?
- Does the tip of the pen as per the specification?
- Does the grip holds as per the specification?
- Does the pen gets closed properly either by cover or with the click of button at the top?
- Does the logo of the company is placed as per the design specification?
Functional Test Cases
- Write with the pen on paper and see if it works or not.
- Write with the pen by keeping the paper of rough surface and see if it writes or not.
- Write with the pen and check if it has same ink as specification.
Performance and Load Test Cases
- Check if the pen works in continuous writing.
- Check if the temperature has any effect on the pen ink or tip.
- Check if the pen works on wet paper.
- Check if the pen operates by keeping the pen in horizontal position while writing with the paper placed on wall.
- Check if the pen operates if the tip is held facing vertical position for long.
- Check if the tip of the pen works on both rough surface and then back to the smooth surface of the paper.
- Check if the tip of the pen works fine while writing on hand.
Negative Test Cases
- Check if the pen has ink or not.
- Check if the pen has the right colored ink.
- Check if the pen works for specific meter specified in the specification.
- Verify the capacity of the tip by putting the tip in the water and then trying to write with it.
- Verify if the tip works on both rough and smooth surface by writing with various angles and then using it back on normal paper surface.
- Verify if the pen works on the smooth surface.
There are many other additional tests but these are the one that you can come up with when you have no visual idea of the pen and also don’t know the specification of the product. I hope these test cases help you with interviews or while discussing it with peers. Feel free to let me know if you have any suggestions or comments. 🙂