Create Test Cases for Login Page in Excel Sheet (with Easy Steps)

In this article, you will learn about three quick steps on how to create test cases for the login page in the Excel sheet. We will be using Microsoft 365 to do this; however, you can use any version of Microsoft Excel and follow this tutorial.


Create Test Cases for Login Page in Excel Sheet: Step-by-Step Procedures

There are three easy steps to prepare test cases for the login page in the Excel sheet. Firstly, we will set up a format for that. Secondly, we will enter the relevant data. Finally, we will use a formula to return the test case status.


Step 1: Setting Up Format

We will set up a format for the test cases for a login page in the Excel sheet. There will be ten columns in the template of this article. We will show you the template in two parts for better visualization.

  • Firstly, create the following fields –
    • Test Scenario: Our test scenario will be test cases for a login page.
    • Tester: Here we will input the person responsible for the testing process.
    • Date: The date when the test is carried out.
  • Secondly, create the following columns –
    • ID: We will assign a unique identification number for each test case.
    • Test Case: The subject for a test procedure.
    • Pre-condition: If there is any pre-requisite for a test case, we will input it in here.
    • Test Steps: Required test steps to carry out a test case.
    • Test Data: If any data needs to be entered, then we will use this column.

Setting Up Format to Create Test Cases for Login Page in Excel Sheet

  • Thirdly, insert more columns –
    • Expected Output: The most likely output, if everything works perfectly.
    • Post-condition: If there is any condition required after the test is carried out.
    • Actual Output: The real output we get from a test case.
    • Status: Pass or Fail.
    • Comments: If a tester needs to comment on something, this column will be useful then.

Read More: How to Write Test Cases in Excel Sheet


Step 2: Entering Relevant Data to Make Test Cases for Login Page

In this section, we will enter the relevant data into the empty cells. After that, we will use the Wrap Text feature to format the cell values. Additionally, AutoFit the rows may be required.

  • To begin with, type the values into the empty cells. Now, we cannot see the values properly. We will fix this in the next step.

Entering Relevant Data to Make Test Cases for Login Page in Excel Sheet

  • Then, select the required cell range.
  • After that, from the Home tab, select Wrap Text, which is under the Alignment section.
  • Lastly, the following animated image shows the procedure. Moreover, for better visualization we have shown only the first five columns.

Read More: How to Create Test Cases for Registration Form in Excel Sheet


Step 3: Finding Test Status

In this step, we will type a formula by combining the IF and OR functions to find the test case status for a login page in an Excel sheet.

  • Firstly, type the following formula in cell J10.

=IF(OR(G10=I10,I10="As expected"),"Pass","Fail")

Finding Test Status to Create Test Cases for Login Page in Excel Sheet

  • Secondly, press Enter.

Formula Breakdown
  • OR(G10=I10,I10=”As expected”)
    • Output: True.
    • This function checks whether the value of cell G10 is equal to cell I10 or The value of I10 is equal to “As expected”.
  • Then, the formula reduces to -> IF(TRUE,”Pass”,”Fail”)
    • Output: Pass.
    • As the condition is true, the formula is returning the first portion of the formula.
  • Thirdly, use the Fill Handle, and fill the formulas to the rest of the cells.

  • Finally, here is a partial view of the test case for a login page.

Test Cases for Login Page in Excel Sheet

Read More: Prepare Test Cases for Gmail in Excel Sheet


Download Practice Workbook

You can download the Excel file from the link below.


Conclusion

We have shown you three quick steps on how to prepare the test cases for the login page in an Excel sheet. If you face any problems regarding these methods or have any feedback for me, feel free to comment below. However, remember that our website implements comment moderation. Therefore, your comments may not be instantly visible. So, have a little bit of patience, and we will solve your query as soon as possible.


Related Articles


<< Go Back to Excel Test Cases Template | Excel Templates

Get FREE Advanced Excel Exercises with Solutions!
Rafiul Haq
Rafiul Haq

Rafiul Haq worked as an Excel and VBA Content Developer in Exceldemy for over two years and published almost 200 articles for the website. He is passionate about exploring new aspects of Excel and VBA. He received his Bachelor of Science in Mechanical and Production Engineering (MPE) from the Islamic University of Technology. Rafiul furthered his education by obtaining an MBA in Finance from the Institute of Business Administration (IBA) at the University of Dhaka. Apart from creating... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo