
Discover how to identify and write informative test cases and apply standard formats. Learn test design techniques, do's and don'ts, and features that improve test case writing.
Identify what a test case is and why writing test cases matters, illustrate conditions with login scenarios, and outline the requirements-driven, formatted test case development, review, and execution process.
Explore common test cases asked in interviews and learn to write one-liner test cases for everyday items like pen and ATM, prioritizing functional, positive, and negative scenarios.
Explore the standard test case format and its components, including description, preconditions, steps, test data, expected and actual results, status, priority, and bug IDs, using Excel.
Learn how to write and format test case identifiers with unique ids and module prefixes, ensuring consistent formats and clear mapping to modules for project-wide traceability.
Define precise test case descriptions that specify what to test, using examples like admin login with valid credentials or ATM money withdrawal. Avoid including expected results or hard data.
Define preconditions for a test case by outlining prerequisites and data needs. Note user or page dependencies, such as logging in and clearing cookies, and any setup required before execution.
Learn to craft precise, serially ordered test steps with exact element names for end-to-end flows like home navigation, search, add to cart, and checkout, plus steps to reproduce.
Define and manage test data to ensure consistent test cases, using exact data or data from a sheet or Excel source; reference data for sensitive information and avoid junk data.
Define the expected result for each test case step to enable clear pass/fail decisions. The lecture stresses documenting stepwise, precise expected results and the mandatory result column in test cases.
Learn how to document actual results and status in formatted test cases, compare them with expected results, and classify execution as pass, fail, blocked, or not executed.
Understand how to write formatted test cases with a comments column to document execution outcomes, reasons for failures or blocks, and how this detail supports defect management and bug reporting.
Prioritize test cases by adding an optional priority column, using high, medium, and low or B1/B2/B3 to guide regression and meet tight deadlines, ensuring critical functionalities are tested first.
Introduce an optional type column in test cases to label them as functional, usability, or other testing types, enabling targeted filtering, scheduling, and team assignment.
Learn to use a bug id column to link failed test cases to defects in bug tracking software, and record defect ids in comments or the column for traceability.
Explore test case designing techniques, including error guessing and experience-based methods, to expand test coverage while boosting testing effectiveness and saving time and resources.
Apply boundary value analysis to test input ranges by focusing on positive and negative boundaries, using four values (1, 100, 0, 101) to reduce test cases while ensuring correct behavior.
Use equivalence class partitioning to group different inputs that produce the same output. It reduces the number of test cases while preserving testing effectiveness and is applicable when appropriate.
Learn to freeze the header and key columns in a spreadsheet to keep test case labels visible while scrolling, choosing the top row, first column, or both.
format test cases by applying filter data to display only functional test cases or priority one, using drop-down filters and confirm with ok.
Sort test cases by different columns such as priority and type, and apply reverse ordering to the data, demonstrating how to organize and filter test cases for better readability.
Apply conditional formatting to the status column to color-code test results: green for pass, red for fail, and yellow for not run, using highlight cell rules and custom formatting.
Learn how to configure a list for data validation by restricting a column to predefined values via a dropdown, ensuring only listed data is accepted and others trigger errors.
Explore element locators, including CSS and XPath, to locate elements uniquely on web pages and learn how to write and apply these locators in automation.
Test cases are very important for any project as this is the first step in any testing cycle, and if anything goes wrong at this step, the impacts get extrapolated as you move forward in the software testing life-cycle.
Knowing how to write good test cases is extremely important for you as a testing resource and believe you me, it doesn’t take too much of your effort and time to write effective test scripts! You just need to follow certain guidelines while writing test cases or as they call it – follow “test case writing best practices.”
In this course, I am going to talk about some simple yet effective tips which you could use for writing effective test cases.
Test case writing is an activity which has a great impact on the testing phase and this makes test cases an important part of the test execution process!
So, writing test cases which are effective as well as reusable is very important; good test cases save a lot of time in the later stages of testing (really!) if you do it right in the first attempt…
Effective Test Cases writing is a skill and you can acquire it only with practice and in-depth understanding of the application for which test cases are being written.
Incorporating some simple tips I have given here will help you master the skill of test case writing.
Coverage
Test Case Introduction
Write Formatted Test Cases
Use of each and every columns
Test Case Designing Techniques
Test Case Formatting (Basic Excel Features)
Test Case Writing on ALM