{"id":20222,"date":"2016-09-03T10:31:20","date_gmt":"2016-09-03T10:31:20","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=20222"},"modified":"2025-08-05T03:50:35","modified_gmt":"2025-08-05T03:50:35","slug":"how-to-write-test-cases-for-pencil","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/how-to-write-test-cases-for-pencil\/","title":{"rendered":"How to Write Test cases for Pencil?"},"content":{"rendered":"<h1>How to Write Test Cases for Pencil?<\/h1>\n<p>In this tutorial, we will discuss how to write test cases for a pencil. This guide will teach you how to write effective and efficient test cases in QA\/Testing interviews or for testing a product.<\/p>\n<h3><strong>Interviewer Standpoint<\/strong><\/h3>\n<p>Why would an interviewer ask such a question for a job description that needs a Test Engineer to test a web application?<\/p>\n<p>The interviewer wants to test the basic testing skills, knowledge, and intuitiveness of your testing capabilities. If you are an experienced candidate, the interviewer wants to check on how you test something new that&#8217;s not related to the domain.<\/p>\n<h3>Specifications, Intended purpose, User Stories?<\/h3>\n<p>First things first, identify and cross-check the system under test without any ambiguity. Do not make any assumptions. Take time and ask questions to clarify things. Gather functional requirements and<strong> functional specifications<\/strong> of the system.<\/p>\n<p>Here in this case <strong>Pencil<\/strong>. Gather requirements of the pencil like <strong>weight, color, size, and dimensions<\/strong> etc. ( This is a traditional SDLC approach ).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27764\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Test-cases-for-Pencil.png\" alt=\"Test cases for Pencil\" width=\"1280\" height=\"720\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Test-cases-for-Pencil.png 1280w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Test-cases-for-Pencil-300x169.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Test-cases-for-Pencil-1024x576.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Test-cases-for-Pencil-768x432.png 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<h3>Sample Requirement:<\/h3>\n<p>Let&#8217;s take an example of\u00a0 <strong>2 HB Pencil<\/strong> that is made of solid graphite lead with a wooden covering. ( HB stands for <strong>Hard and Black<\/strong> ). 2 denotes the level of blackness.<\/p>\n<p>The system shall write on white paper with the specified level of darkness.<\/p>\n<ul>\n<li>Pencil Weight = 10 g ( <strong>on Earth Gravity = 9.81 m\/s^2<\/strong>)<\/li>\n<li>Pencil length = 15 cm<\/li>\n<\/ul>\n<h3>Actors and User Stories<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/questions\/sample-pencil-actors-and-user-stories\/\">https:\/\/www.testingdocs.com\/questions\/sample-pencil-actors-and-user-stories\/<\/a><\/li>\n<\/ul>\n<h3>Test case categories<\/h3>\n<p>Organize and divide the test cases that you write into different categories like:<\/p>\n<p><strong>Functional Test cases<\/strong><\/p>\n<ul>\n<li>Black box( without knowing the inner details )<\/li>\n<li>White box ( what&#8217;s inside the box ? )<\/li>\n<li>Integration (coexistence with other systems)<\/li>\n<li>Usability ( How usable is the system?)<\/li>\n<\/ul>\n<p><strong>Non Functional Test cases<\/strong><\/p>\n<ul>\n<li>Stress ( How does the system behave under stress ?)<\/li>\n<li>Performance( How does the system perform under abnormal conditions )<\/li>\n<li>Security( How secure is the system? )<\/li>\n<\/ul>\n<h2>Write Test Cases<\/h2>\n<h3>Functional Test Cases<\/h3>\n<p>Verify all the functional specifications of the Pencil. The main use case of the pencil is the ability to write on white paper for <strong>Students<\/strong>. Similarly, the main use case for the <strong>Carpenter<\/strong> is the ability to mark readings on wooden pieces.<\/p>\n<ul>\n<li>Verify that the weight of the pencil is as per the specification or not.<\/li>\n<li>Verify that the height of the pencil is as per the specification or not.<\/li>\n<li>Verify the ability to write on white paper with the desired level of darkness RGB value.( <strong>Red Green Blue<\/strong> value)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<table border=\"1\">\n<thead>\n<tr>\n<th>Test Case ID<\/th>\n<th>Test Case Description<\/th>\n<th>Expected Result<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>TC_PENCIL_001<\/td>\n<td>Verify that the pencil can write on paper<\/td>\n<td>Pencil writes clearly and smoothly on paper<\/td>\n<\/tr>\n<tr>\n<td>TC_PENCIL_002<\/td>\n<td>Verify that the pencil can be sharpened without breaking<\/td>\n<td>Lead does not break and pencil sharpens properly<\/td>\n<\/tr>\n<tr>\n<td>TC_PENCIL_003<\/td>\n<td>Verify that the eraser attached to the pencil can erase the pencil marks<\/td>\n<td>Pencil marks are erased cleanly without damaging the paper<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>OMR Sheet Test Case<\/h2>\n<p>Student answers are marked with pencil on OMR sheets during examination.<\/p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td style=\"background-color: #efefef;\"><strong>Test Case Name<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Test Case Steps<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Test Data<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Expected Result<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Actual Result<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Verify OMR Sheet bubble recognition.<\/td>\n<td><strong>Preconditions<\/strong><\/p>\n<p>Given 2HD pencil.<\/p>\n<p>OMR sheet with questions.<\/p>\n<p>Know least one correct answer.<\/p>\n<p>Scanner.<\/p>\n<p><strong>Steps<\/strong><\/p>\n<ul>\n<li>Take 2HB Pencil.<\/li>\n<li>Bubble the questions.<\/li>\n<li>Make sure to mark at least one correct answer.<\/li>\n<li>Scan the OMR sheet.<\/li>\n<li>Examine the score.<\/li>\n<\/ul>\n<\/td>\n<td>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<td>Verify that the score is at least &gt;= 1.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Automation Test Case<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20917\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case.png\" alt=\"Pencil OMR Sheet bubble Test Case\" width=\"1635\" height=\"859\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case.png 1635w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case-300x158.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case-1024x538.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case-768x403.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Pencil-OMR-Sheet-bubble-Test-Case-1536x807.png 1536w\" sizes=\"auto, (max-width: 1635px) 100vw, 1635px\" \/><\/p>\n<p>&nbsp;<\/p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td style=\"background-color: #efefef;\"><strong>Automation Test Case<br \/>\n<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Detailed Steps<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Test Data<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Expected Result<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Actual Result<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Simulate and<br \/>\nVerify the 2HB Pencil drawing.<\/td>\n<td><strong>Test Steps<\/strong><\/p>\n<ul>\n<li>Robot arm to pick the Given 2HB Pencil.<\/li>\n<li>Paper tray to slide a A4 size white paper.<\/li>\n<li>Robot arm draws a shape For example: Circle and fills the circle with the Pencil.<\/li>\n<li>Robot Scans the paper and prints it.<\/li>\n<li>An automation program reads the RGB( Red &#8211; Green &#8211; Blue ) values of the circle<br \/>\nobject.<\/li>\n<\/ul>\n<\/td>\n<td><strong>Given<\/strong><\/p>\n<ul>\n<li>A4 size paper.<\/li>\n<li>Pencil 2HB<\/li>\n<li>Robot Arm capable to grip the pencil.<\/li>\n<li>Able to draw an object like circle.<\/li>\n<li>Printer and<br \/>\nScanner.<\/li>\n<\/ul>\n<\/td>\n<td><strong>Expected Result:<\/strong><\/p>\n<p>Verifies the print paper result with a predefined Pencil 2HB RGB values with the image RGB values.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Usability Test cases<\/h3>\n<p>How usable the system for different users:<\/p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\">\n<tbody>\n<tr>\n<td style=\"background-color: #efefef;\"><strong>Test Case Name<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Test Case Steps<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Test Data<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Expected Result<\/strong><\/td>\n<td style=\"background-color: #efefef;\"><strong>Actual Result<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Verify Usability of Pencil among Students.<\/td>\n<td><strong>Preconditions<\/strong><\/p>\n<p>Invite different class of students.<\/p>\n<p>Provide the pencil and other materials.<\/p>\n<p>Prepare a usability questionnaire.<\/p>\n<p><strong>Ease of Writing, Grip<\/strong>, <strong>Customer satisfaction<\/strong> etc.<\/p>\n<p><strong>Steps<\/strong><\/p>\n<ul>\n<li>Conduct a standard happy path testing.<\/li>\n<li>Take feedback on the user experiences with the product.<\/li>\n<li>Scale of 1 to 10.<\/li>\n<\/ul>\n<\/td>\n<td>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<td>Derive the Stats based on the recordings.<\/p>\n<p>Mean Customer satisfaction, Ease of writing etc.<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Stress Test Cases<\/h3>\n<p>Verify the limitations of the system. As a tester we should test the limitations of the system. For example, if you test an application server, we need to know how many requests the server can serve concurrently and what percentile of requests get responses below the SLA.<\/p>\n<p>Think about how you can stress a pencil on <strong>unconventional use cases<\/strong>. For example, take the pencil into a cold storage with <strong>cold temperature<\/strong> and verify the pencil functionality. Expose the pencil to <strong>hot summer<\/strong> temperatures and check if the lead melts, able to write, etc.<\/p>\n<p><strong>Performance Test Case<\/strong><\/p>\n<p>Verify how much text you can write with the given Pencil. This is like knowing the limits of the system i.e. pencil.<\/p>\n<h3>Interoperability Cases<\/h3>\n<p>Test the interoperability of the pencil with several other items. For example with a sharpener, eraser, etc.<\/p>\n<p>Verify that the text written with the Pencil is erasable with a standard eraser.<\/p>\n<p>&nbsp;<\/p>\n<p>That&#8217;s it. There are more test cases. The test cases in this tutorial are limited. Try to think of more test cases for the system under test.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Write Test Cases for Pencil? In this tutorial, we will discuss how to write test cases for a pencil. This guide will teach you how to write effective and efficient test cases in QA\/Testing interviews or for testing a product. Interviewer Standpoint Why would an interviewer ask such a question for a job [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27764,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-20222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-testing-questions","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=20222"}],"version-history":[{"count":61,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20222\/revisions"}],"predecessor-version":[{"id":27775,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/20222\/revisions\/27775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media\/27764"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=20222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=20222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=20222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}