What is a Test Case? Test Case Examples

You might want to read my article on how to write a test case if you need some guidance. The expected result will be determined by your specifications. The quality of the testing you will conduct will usually be a result of the quality of the specification documents. Alternatively if you want to know how to write test cases for a pen then read that article next after this one. In this article, we are sharing test scenarios of Pencil. Since the focus here is to cover the different features to be tested instead of the creation of formal test cases, so basically we will be presenting test scenarios here.

test case for pencil

The negative test cases include test cases that check the robustness and the behavior of the application when subjected to unexpected conditions. Functional test cases are the test cases that involve testing the different functional requirements of the object under test. I checked this on black, blue and red pens which I currently have at home and the lids were in different positions.

Basic Functional Test Cases For Pencil

Regardless of whether you adopt automation testing or manual tests, they’ll come in handy when it comes to regression testing. Another example you might want to think about is whether or not the pencil has an eraser. You should also look at the performance of the product, how well it handles stress and also security. There is a breakdown of test steps, a description of the test case  which also includes an expected result. Below are a list of functional and non functional test cases for a pencil that you should add to your test plan. You should always make sure that you have all of your requirements beforehand.

test case for pencil

You might be interested in learning about a non functional requirements checklist. Check out the video below from the Official BIC company and get an idea of how the pens are made which will give you an idea of design specifications. Below you’ll find a combination of positive and negative test cases for a pen which you may want to include in your test plan or as part of a user journey. The basic test case provided in the article might have given the right idea on the test case creation process.

Write Test Cases

Now, let’s explore the details of creating test cases and scenarios to ensure a thorough evaluation of pens. Whie crafting test scenarios for pens, consider both typical and atypical situations. Using these test cases, we aim to flush out pen components and construction issues early to ensure consistent and reliable writing performance. To write test cases for a pen, validate the product is built correctly by analysing the design (UI).

Verify all the functional specifications of the Pencil. The main use case of the pencil is the ability to write on white paper for Student. Similarly, the main use case for the Carpenter is  the ability to mark readings on wooden piece. Once the test cases are created from the requirements, it is the job of the testers to execute those test cases. The testers read all the details in the test case, perform the test steps, and then based on the expected and actual result, mark the test case as Pass or Fail.

Performance Test Scenarios

Performance test cases include the test cases that help in quantifying or validating the performance of an application under different conditions. If you have benefitted from this article or feel someone else can, please feel free to share the knowledge. I can really appreciate how these products are tested as I didn’t even think about half of these scenarios until I actually put some thought into it. In fact, next time someone asks me to explain software testing in a REALLY easy way, I’ll use the example of Testing a Pen. Once the product has been integrated tested for functionality, the next stage is to pass it to the end user.

test case for pencil

Here we have covered some negative test cases that check the applications behaviour and robustness under unforeseen circumstances. These test cases cover the testing of the look and feel of the object to be tested which is Pen in our case. Thankfully being a parent of primary and secondary school kids, I have a stock of pens hidden away for when they’re required. Whilst writing the test cases above, I actually held the exact model of the pen in my hand and looked at the possible test cases I could think of.

Negative Test Scenarios For Pen

The thinking process mentioned there would help you create the test cases of actual software applications. Interviewers love questions that are scenario based, open-ended, and vague, but they would be familiar even for a person from a non-technical background. Writing test cases for pencils would be a great example of such questions. Take a deep breath and clear your mind, get to a structured thinking space. Think about the bigger picture, understand the objective, try to find out all the possible scenarios and connect them to a testing terminology. Writing test scenarios for a product takes some practice.

I love open-source technologies and am very passionate about software development. I like to share my knowledge with others, especially on technology that’s why I have given all the examples as simple as possible to understand for beginners. All the code posted on my blog is developed, compiled, and tested in my development environment. If you find any mistakes or bugs, Please drop an email to , or You can join me on Linkedin. Negative test cases for pens are especially important to validate the pen’s resilience to unexpected conditions.

I couldn’t find their flagship BIC product which was VERY frustrating. Test the interoperability of the pencil with several other items. Verifies the print paper result with a predefined Pencil 2HB RGB values with the image RGB pencil test cases values. In the context of pen test cases, our test data would be the type of pencil we have to use, the darkness of the pencil etc. Who would’ve thought that creating test cases for a pencil was so much work yet so much fun.

  • I’m using some assumptions and also the information that is available on the official website to base my requirements from.
  • You can use the above examples and extend this to pencils such as water colours.
  • 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.
  • The interviewer wants to test the basic testing skills, knowledge and intuitiveness of your testing capabilities.
  • Who would’ve thought that creating test cases for a pencil was so much work yet so much fun.
  • And the candidate proceeds with the basic functionality mentioned above and gives various types of testing along with the scenarios.

Next, look at the functional items such as all the parts of the Pen and how they integrate together. Include tests for an end user to mimic a real life environment. Don’t forget to look at how the product performs and safety tests. A test case is a set of conditions for evaluating a particular feature of a software product to determine its compliance with the business requirements.

As an end user, your  job will be to develop test scenarios which mimic day to day usage of the product. It may not be a big issue or a showstopper, but from a branding perspective, I think small details like these are VERY important. I’m sure there are tons more but each of these pens have their own functions and should be tested in their own specific way. The system shall write on white paper with the specified level of darkness. Let’s take an example of  2 HB Pencil that is made of solid graphite lead with a wooden covering.

Leave a Reply

Your email address will not be published. Required fields are marked *