How to Write Test Cases for Wishlists (With Examples)

Writing test cases for wishlists is a critical aspect of ensuring that the feature functions as intended and meets user expectations. Whether you're working on an e-commerce platform, a social media a

March 15, 2026 · 16 min read · How-To Guides

How to Write Test Cases for Wishlists (With Examples)

Writing test cases for wishlists is a critical aspect of ensuring that the feature functions as intended and meets user expectations. Whether you're working on an e-commerce platform, a social media app, or any application that includes a wishlist feature, thorough testing is essential to identify and fix issues before they impact users. This guide will walk you through the process of writing high-signal test cases for wishlists, covering test case anatomy, various types of test cases, a detailed example set, data setup, prioritization, and traceability to requirements. We'll also explore how combining designed test cases with autonomous exploration can provide comprehensive coverage.

Understanding Test Case Anatomy

Before diving into the specifics of writing test cases for wishlists, it's important to understand the basic structure and components of a test case. A well-structured test case typically includes the following elements:

Test Case ID and Title

The Test Case ID should be a unique identifier that allows you to reference the test case easily. The Title should be a concise description of the test case's purpose. For example:

Preconditions

Preconditions are the conditions that must be true before the test case can be executed. These might include user roles, initial data states, or specific configurations. For example:

Test Steps

Test Steps are the specific actions that need to be performed to execute the test case. Each step should be clear and unambiguous. For example:

  1. Navigate to the product catalog.
  2. Select a product and click the "Add to Wishlist" button.
  3. Verify that the product is added to the wishlist.

Expected Result

The Expected Result is the outcome you expect to observe if the test case is executed correctly. This should be specific and verifiable. For example:

Actual Result

The Actual Result is the outcome observed during the test execution. This is typically filled in after the test is run. For example:

Priority

Priority indicates the importance of the test case. High-priority test cases are critical and should be executed first. Medium-priority test cases are important but can be executed after high-priority ones. Low-priority test cases are less critical and can be deferred if necessary.

Status

Status reflects the current state of the test case. Common statuses include Pass, Fail, In Progress, and Not Executed.

Types of Test Cases for Wishlists

When writing test cases for wishlists, it's important to cover a variety of scenarios to ensure comprehensive coverage. These scenarios can be categorized into positive, negative, edge, and boundary cases.

Positive Test Cases

Positive test cases verify that the wishlist feature works as intended under normal conditions. These are the most straightforward and are designed to ensure that the primary functionality is functioning correctly.

#### Example: Adding an Item to the Wishlist

  1. Navigate to the product catalog.
  2. Select a product and click the "Add to Wishlist" button.
  3. Verify that the product is added to the wishlist.

Negative Test Cases

Negative test cases verify that the wishlist feature behaves correctly when invalid or unexpected inputs are provided. These test cases help identify edge cases and potential bugs.

#### Example: Adding the Same Item to the Wishlist Multiple Times

  1. Navigate to the product catalog.
  2. Select a product and click the "Add to Wishlist" button.
  3. Attempt to add the same product to the wishlist again.

Edge Cases

Edge cases are scenarios that occur at the boundaries of the system's input ranges. These cases are often overlooked but can reveal important issues.

#### Example: Adding the Last Available Item to the Wishlist

  1. Navigate to the product catalog.
  2. Select the only available product and click the "Add to Wishlist" button.

Boundary Cases

Boundary cases test the limits of the system's input ranges. These cases help ensure that the system handles edge conditions gracefully.

#### Example: Adding the Maximum Number of Items to the Wishlist

  1. Navigate to the product catalog.
  2. Select 100 products and add them to the wishlist.

Detailed Example of Test Cases for Wishlists

To provide a comprehensive understanding, here is a detailed set of 20+ test cases for wishlists. Each test case includes the ID, preconditions, steps, and expected result.

Test Case IDTitlePreconditionsStepsExpected Result
TC001Verify Adding an Item to the WishlistUser is logged in, and the product catalog is populated with at least one item1. Navigate to the product catalog. 2. Select a product and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist.The product is added to the wishlist, and a confirmation message is displayed.
TC002Verify Adding the Same Item to the Wishlist Multiple TimesUser is logged in, and the product catalog is populated with at least one item1. Navigate to the product catalog. 2. Select a product and click the "Add to Wishlist" button. 3. Attempt to add the same product to the wishlist again.The product is not added to the wishlist again, and an error message is displayed.
TC003Verify Adding the Last Available Item to the WishlistUser is logged in, and the product catalog contains only one item1. Navigate to the product catalog. 2. Select the only available product and click the "Add to Wishlist" button.The product is added to the wishlist, and a confirmation message is displayed.
TC004Verify Adding the Maximum Number of Items to the WishlistUser is logged in, and the product catalog is populated with at least 100 items1. Navigate to the product catalog. 2. Select 100 products and add them to the wishlist.The 100 products are added to the wishlist, and a confirmation message is displayed.
TC005Verify Removing an Item from the WishlistUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Select an item and click the "Remove from Wishlist" button. 3. Verify that the item is removed from the wishlist.The item is removed from the wishlist, and a confirmation message is displayed.
TC006Verify Removing All Items from the WishlistUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Click the "Clear Wishlist" button. 3. Verify that all items are removed from the wishlist.All items are removed from the wishlist, and a confirmation message is displayed.
TC007Verify Moving an Item from the Wishlist to the CartUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Select an item and click the "Move to Cart" button. 3. Verify that the item is moved to the cart.The item is moved to the cart, and a confirmation message is displayed.
TC008Verify Moving All Items from the Wishlist to the CartUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Click the "Move All to Cart" button. 3. Verify that all items are moved to the cart.All items are moved to the cart, and a confirmation message is displayed.
TC009Verify Sharing the Wishlist via EmailUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Click the "Share via Email" button. 3. Enter a valid email address and click "Send". 4. Verify that the wishlist is shared via email.The wishlist is shared via email, and a confirmation message is displayed.
TC010Verify Sharing the Wishlist via Social MediaUser is logged in, and the wishlist contains at least one item1. Navigate to the wishlist page. 2. Click the "Share via Social Media" button. 3. Select a social media platform and verify that the wishlist is shared.The wishlist is shared via the selected social media platform, and a confirmation message is displayed.
TC011Verify Viewing the Wishlist as a Guest UserUser is not logged in, and the product catalog is populated with at least one item1. Navigate to the product catalog. 2. Select a product and click the "Add to Wishlist" button. 3. Verify that the user is prompted to log in or create an account.The user is prompted to log in or create an account.
TC012Verify Syncing the Wishlist Across DevicesUser is logged in, and the wishlist contains at least one item1. Add an item to the wishlist on one device. 2. Log in to the same account on another device. 3. Verify that the wishlist is synced.The wishlist is synced across devices, and the added item is visible.
TC013Verify Adding an Out-of-Stock Item to the WishlistUser is logged in, and the product catalog contains at least one out-of-stock item1. Navigate to the product catalog. 2. Select an out-of-stock item and click the "Add to Wishlist" button. 3. Verify that the item is added to the wishlist.The item is added to the wishlist, and a confirmation message is displayed.
TC014Verify Adding a Product with Multiple Variants to the WishlistUser is logged in, and the product catalog contains at least one product with multiple variants1. Navigate to the product catalog. 2. Select a product with multiple variants and click the "Add to Wishlist" button. 3. Verify that the selected variant is added to the wishlist.The selected variant is added to the wishlist, and a confirmation message is displayed.
TC015Verify Adding a Product with a Discount to the WishlistUser is logged in, and the product catalog contains at least one product with a discount1. Navigate to the product catalog. 2. Select a product with a discount and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist with the discounted price.The product is added to the wishlist with the discounted price, and a confirmation message is displayed.
TC016Verify Adding a Product with a Customized Option to the WishlistUser is logged in, and the product catalog contains at least one product with a customized option1. Navigate to the product catalog. 2. Select a product with a customized option and click the "Add to Wishlist" button. 3. Verify that the product with the customized option is added to the wishlist.The product with the customized option is added to the wishlist, and a confirmation message is displayed.
TC017Verify Adding a Product with a Limited-Time Offer to the WishlistUser is logged in, and the product catalog contains at least one product with a limited-time offer1. Navigate to the product catalog. 2. Select a product with a limited-time offer and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist with the offer details.The product is added to the wishlist with the offer details, and a confirmation message is displayed.
TC018Verify Adding a Product with a Pre-Order Option to the WishlistUser is logged in, and the product catalog contains at least one product with a pre-order option1. Navigate to the product catalog. 2. Select a product with a pre-order option and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist with the pre-order details.The product is added to the wishlist with the pre-order details, and a confirmation message is displayed.
TC019Verify Adding a Product with a Gift Option to the WishlistUser is logged in, and the product catalog contains at least one product with a gift option1. Navigate to the product catalog. 2. Select a product with a gift option and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist with the gift option.The product is added to the wishlist with the gift option, and a confirmation message is displayed.
TC020Verify Adding a Product with a Subscription Option to the WishlistUser is logged in, and the product catalog contains at least one product with a subscription option1. Navigate to the product catalog. 2. Select a product with a subscription option and click the "Add to Wishlist" button. 3. Verify that the product is added to the wishlist with the subscription details.The product is added to the wishlist with the subscription details, and a confirmation message is displayed.

Data Setup for Test Cases

Proper data setup is crucial for effective testing. This involves preparing the necessary data and configurations to ensure that the test cases can be executed accurately. Here are some key considerations for data setup:

User Accounts

Product Catalog

Wishlist Scenarios

Environment Configuration

Prioritizing Test Cases

Not all test cases are created equal, and it's important to prioritize them based on their importance and the potential impact of any failures. Here are some guidelines for prioritizing test cases:

High-Priority Test Cases

Medium-Priority Test Cases

Low-Priority Test Cases

Traceability to Requirements

Traceability ensures that each test case is linked to a specific requirement, making it easier to track the coverage and completeness of your testing efforts. Here are some best practices for ensuring traceability:

Requirement Documentation

Test Case Mapping

Traceability Matrix

A traceability matrix is a useful tool for tracking the relationship between requirements and test cases. Here is an example of a traceability matrix:

Requirement IDRequirement DescriptionTest Case IDTest Case Description
REQ001User can add items to the wishlistTC001Verify Adding an Item to the Wishlist
REQ002User can remove items from the wishlistTC005Verify Removing an Item from the Wishlist
REQ003User can move items from the wishlist to the cartTC007Verify Moving an Item from the Wishlist to the Cart
REQ004User can share the wishlist via emailTC009Verify Sharing the Wishlist via Email
REQ005User can view the wishlist as a guestTC011Verify Viewing the Wishlist as a Guest User

Combining Designed Test Cases with Autonomous Exploration

While designed test cases are essential for ensuring comprehensive coverage, they can be time-consuming to create and maintain. Autonomous exploration tools, such as SUSA, can complement your testing efforts by automatically exploring the application and identifying issues that might be missed by manual testing.

How SUSA Can Help

SUSA is an autonomous QA platform that can explore your application, tap, scroll, type, and handle dialogs, all without the need for scripts. It can test with a range of user personas, including curious, impatient, novice, adversarial, elderly, and power users, to ensure that your wishlist feature is robust and user-friendly.

Benefits of Autonomous Exploration

Integration with SUSA

To integrate SUSA into your testing process, you can follow these steps:

  1. Install the SUSA Agent:
  2. 
       pip install susatest-agent
    
  1. Configure the SUSA Agent:
  1. Run the Tests:
  1. Generate Regression Scripts:

Checklist for Writing Test Cases for Wishlists

To help you ensure that you cover all the necessary aspects when writing test cases for wishlists, here is a concise checklist:

Takeaways

Writing test cases for wishlists is a critical part of ensuring that your application meets user expectations and functions correctly. By following the guidelines and best practices outlined in this guide, you can create high-signal test cases that cover a wide range of scenarios, from core functionality to edge cases. Additionally, integrating autonomous exploration tools like SUSA can help you achieve even more comprehensive coverage and identify issues that might be missed by manual testing. Remember to prioritize your test cases, ensure traceability to requirements, and maintain a robust data setup to support your testing efforts. With these steps, you can deliver a high-quality wishlist feature that enhances the user experience and drives engagement.

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free