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

Test Ebay API #2

Closed TomasAndersonFang closed 3 days ago

TomasAndersonFang commented 3 days ago

Description

This issue pertains to testing the search_items_API function for eBay's API with the product keyword "lenovo" and site code "eb". The objective of these test cases is to validate the API's response structure, content, and data accuracy. These tests ensure that the API meets required functionality standards, particularly concerning the data returned for each search result, including fields like price, link, image link, and timestamp.

Objective

To verify that the search_items_API function consistently returns well-structured, non-empty results with valid data types and field formats for items on eBay.


Test Cases

1. Basic Response Validation

2. Non-Empty Results

3. Expected Number of Results

4. Result Type Validation

5. Item Type Validation

6. Field Presence Validation

7. Price Format Validation

8. Title Presence Validation

9. Link Format Validation

10. Image Link Format Validation

11. Timestamp Presence Validation


Summary

These test cases collectively aim to ensure that search_items_API produces consistent and accurate outputs, confirming the structure and validity of each result item for eBay searches. Any failure in these test cases should prompt a review of the API implementation or its data handling to ensure data quality and usability for end-users.


Feel free to adjust any specific details as necessary!

TomasAndersonFang commented 3 days ago

Resolved. See #5 for details.