DFY-NCSU / slash-phase6

Slash is a web application that scrapes the most popular e-commerce websites for the best deals so that you can get the best value for your money!
MIT License
3 stars 3 forks source link

Feature Testing for `search_items_API` Function #10

Open TheFatBlue opened 2 days ago

TheFatBlue commented 2 days ago

Summary

This report details the testing of general features for the search_items_API function. Test cases focus on verifying the function’s core capabilities, including sorting, filtering, handling different parameters, and ensuring consistent and accurate results across a range of inputs. The purpose is to confirm that the function meets expected behaviors for essential features and handles edge cases effectively.

Test Cases Overview

  1. Sorting and Ordering:

    • Tests assess the function’s ability to handle sorting options, such as ordering by price in both ascending and descending order. This ensures that specified sorting criteria are applied correctly to produce an ordered list of results.
  2. Filtering and Parameter Validation:

    • Additional tests evaluate how well the function supports filtering and different parameter combinations (e.g., sorting by relevance, applying limits on result length). These tests ensure that parameters are correctly interpreted and that the function adapts to varied inputs without errors.

Observations

Recommendations

  1. Expand Tests for Additional Filters: As new features are added, implement tests for other filtering options (e.g., rating, popularity) to ensure they work cohesively with existing sorting and ordering capabilities.
  2. Documentation and Error Feedback: Enhance documentation on parameter use and provide clear feedback for unsupported or incorrect parameters to improve user experience and debugging.
TheFatBlue commented 2 days ago

If any further feature testing needed, feel free to report here

TheFatBlue commented 2 days ago

Add some test cases in #11