Write Test Cases For Pen: Interview Question Asked

    Write Test Cases For Pen

    Write Test Cases For Pen, Interview might ask to write by pointing pen lying on the table. But what if you start writing test cases without asking some questions with the interviewer. I know some interview think like you are asking questions means you are out. But most of the interviewer will like this approach because the solutions are always part of the question.

    One thing that I want to mention here, Everyone shows interest in negative test cases, So always try to negate the positive test cases. Because the system is not meant to perform which is not expected from it… So there is an equal number of test cases that can be written as positive test cases. So chill friends and don’t be panicked.
    So before starting to write test cases for Pen. I would ask you to ask these questions

    • What kind of pen ( ball pen/ ink pen/ gel pen / multi refill pen).
    • Who is the user?
    • Where it will be used (surface)
    • Max or min temperature for its use.

    All the above questions will decide your test cases, But for time being I am picking simple ball pen. Because this is the most used pen type in today’s world.

    So why not we start to write test cases for Pen. But our test cases will be divided again into 4 categories.
    Philosophical – Look and Feel
    Economics – Cost
    Operational – Functionality
    Value addition – Impact on end-user

    Read: Write Test Cases for ATM
    Test Cases For lift

    Look and feel aka UI Test Cases

    • Check pen is intact as a whole. balls are intact as mentioned with the nozzle of the refill.
    • Check pen design, its grip and its length ( Pen with length 1 meter can also write things but how hard it will be to hold it straight) as per the specification.
    • Check the material of the pen. Because this might changes shapes with changes in weather.
    • Check colour is as per specification.
    • Check company branding/ logo on the pen.
    • Check inscribed text o brand text is readable.
    • Check material is not harmful to human.
    • Check build of the pen, Just by dropping pen from some height
    • Check usability of the pen while keeping refill in some viscous liquid of same nature. It should work (Although no one does this)
    • Check pen is correctly working in normal weather conditions from temp range 0 to approx 50-degree Celcius.


    • Check how many refills are used on one page of writing.
    • Check availability of refill | this is needed for ease of refill manufacturing per unit of time as per its user count.

    Operational aka Functional Test Cases

    But before moving ahead with test cases creation for pen, why not we understand how ball pen works and what are the scientific causes that help ball pen to write on surface.

    • Check grip handling during the writing.
    • Check the kind of metal used for a ball in pen (Only brass/steel/tungsten).
    • Check ink output while keeping the pen vertical on the surface without any movement. (It should not spill ink from the pen).
    • Check ink dries quickly or not.
    • Check is waterproof or not
    • Check ink coming out easily or not because this is going to change the user experience.
    • Check ball size because this is going to control the thickness of text.
    • Check ink output through ball pen when keeping outer pressure less than the pressure inside ink ( This is one extreme condition).
    • Check ink doesn’t clot if kept for long duration like a month or something or in the extreme hot condition it should not come out from refill.
    • Check ink of the pen coming smoothly on all surfaces mentioned in the specification.
    • Check if the ink is not coming out when kept in flights or if made for space scientists where pressure and gravity are approx zero.
    • Check refill writing length. Long time back Link pen were advertising that their pen can draw up to 5 KM.

    Value addition:

    • Check the speed of writing.
    • Check aroma, if it is pleasant then more and more people will get attracted to this pen.
    • Check ink type which becomes readable at a certain temperature. ( Made for James Bond 🙂
    • Check if the user can write within the water on a certain surface up to certain depth. ( Because nowadays people are marring within the water ) .
    • Check to refill of ink (If this can be done easily then this is a great ease for end-user)
    • Drop pen vertically on the tip on a hard surface, Ball should be intact. ( this is necessary because people with kids might face this situation multiple time)

    So after these long list of test cases, I am concluding it here and hopefully, this will benefit you in your next Interview.

    Write Test Cases For ATM Machine: Interview Prep

    Write Test Cases For ATM Machine

    If you are going to attend an interview in some of the top ATM manufacturer like NCR Corporation India Pvt Ltd, In such cases it’s imperative to understand how ATM works and they may ask to write Test Cases for ATM Machine.

    Whenever any person asks you to write test cases. He doesn’t want to see whether you write it correctly or not. He wants to see how analytical you are. How you approach any new challenges and how to starts with this problem statement.

    Test Case Creation is an art and this is more like the flow of though. Since we are here to get an idea about test cases. So we are going to write high-level test cases. Still, you want to see test cases template in detail then read my post difference between test cases and test scenario

    So let’s start writing test cases for ATM without any delay. In this post, we will follow these categories as per its definition to write test cases for ATM

    • Philosophical
    • Economic
    • Operational
    • Value addition

    Philosophical Test Cases: This section will cover built, look and feel, components and simplicity of use.

    • Check all components are clubbed together and are intact as a complete functional unit.
    • Check the internet, power supply and space of its installation. Space is one constraint that should be tested first.
    • Check ATM’s labels are intuitive. One example of the intuitive message – Insert Card When Signal is Green, Cash, Receipt Text should be written on machine.
    • Check the Keyboard to enter the password. This might be a separate keyboard or will be on screen.
    • Check eye-catching colours should be used for labels.
    • Check the weight of the ATM and should not be easily movable.
    • Check texts are readable
    • Check font of texts written on the machine and on-screen are easily readable.

    Economic Test Cases: This kind of test cases always talks about the cost.

    • Check the operational electric power required.
      • Try to operate on less than expected power. This should not harm the ATM.
      • Try to operate on more than expected power. This should not harm the ATM.
    • Check unit of power used in per unit of time.
    • Check All safety measures to safeguard end-user from
      • Electrocute
      • ATM falls on the user during use.
    • Check internet speed which is required.
      • Throttle internet speed and check its operation
    • Check internet data consumed per unit of time on use and without use.

    Operational Test Cases: This kind of test cases covers all the functionality and attributes of the ATM.

    There are multiple components in ATM, That will be verified functionally
    Card Reader
    Cash dispenser
    Keyboard if not touch screen
    Receipt Printer
    Display and buttons attached on-screen or off-screen.

    Card Reader

    • Check whether the card is working correctly or not by inserting the valid card. Follow all instruction on the screen and see if asking for pin or not.
    • Check Above test cases for all other banks cards
    • Check correct message is coming or not when inserting the card in a card reader with the wrong alignment.
    • Check the invalid card and see a message stating invalid card is coming on screen or not.
    • Check instruction on the screen, if user insert card when the machine is not ready like green lights or some notification is not up.
    • Check card collection notification or message appears on the screen after one complete transaction. (Valid for cash collection and balance enquiry).
    • Check the message on the screen when the user inserts valid card but inserts the wrong pin.
    • Check the message when using an expired card. Card expiry message should appear on the screen.
    • Check extreme cases of safety, if the user provides the wrong password more than 3 attempts. Card block message or connect with bank message should appear on the screen.

    Cash Dispensar & Cash Withdrawl

    • Check cash withdrawal is possible with a correct pin.
    • Check cash withdrawal limit in one transaction (Like in most of the Indian bank it say maximum 10k or 20k).
    • Check user can only ask for money withdrawal in multiple of 100 or 500 depends on the machine.
    • Check multiple cash transaction with a single pin
    • Check money withdrawn from the account as per available balance. ( Try more than available balance and see )
    • Check session timeout in the complete transaction process
      • Enter card and wait for next one minute or two
      • Enter card and navigate as per instruction on the screen and wait on pin page
      • Enter card and follow all instruction and wait when cash is out from the dispenser and now check the balance.
    • Check the balance in the following cases
      • when money withdrawal is successful.
      • when cross free transaction limit.
      • when the transaction fails.
      • when power cut or resources fail during a transaction.
      • when the transaction is interrupted by pressing the cancel button.
      • when the transaction is interrupted by pressing any button on the screen.

    Keyboard / Touch Screen

    • Check correct text is inserted when pressing the button on keyboard either on-screen or from the keyboard. ( For this enter correct set of pin once and then incorrect set of the pin)
    • Check cancel button is working correctly
    • Check enter button works correctly when the user enters the correct pin and click it
    • Check functionality of all buttons available.
    • Check is there any other way to perform all action without using the keyboard ( This is the negative case)

    Receipt Printer

    • Check receipt printer prints receipt after each complete transaction only when user opt for a receipt
    • Check when the user opted no receipt.
    • Check message printed on receipt in case of cash withdrawal or balance enquiry.
    • Check one receipt for one complete transaction.
    • Check error message appears when there is no paper to print or user is notified when providing its input for receipt.

    Display & Keys attached with screen

    • Check error message for all failure or success
    • Check keys available on-screen works accordingly.
    • Check the right set of instructions appear on the screen when the valid card used.
    • Check operation on-screen.
    • Check message are visible and readable to the user and in the language selected.
    • Check banks detail appears only with the correct pin.
    • Check message for low balance, failed transaction, technical problems, transaction exceed, transaction limit exceed and any failure appear on the screen.

    Value Addition Test Cases: This kind of test cases are for customer satisfaction.

    • Check transactions are easy to use and information and navigation are intuitive.
    • Check atm should be feature-rich.
    • ATM installed with security feature
    • CCTV installed properly to counter any wrong did.
    • In case of help, executive or guard should be installed.
    • Cost of ATM should be in market competition with the best attributes for sale of ATM.

    So here I am concluding high-level test cases for ATM. Hope you understand it and will use the same approach while creating the test cases for anything. If you find this post valuable then share it and also comment here.
    To read more about ATM, read this link Automated Teller Machine (ATM).
    Initial Functional Test Cases for Example ATM System

    1 2 3 87