uiowaSEP2024 / 001_DisAv

Distraction Avoider
Apache License 2.0
0 stars 0 forks source link

Test: backend blacklist api #218

Closed saanbe16 closed 4 weeks ago

saanbe16 commented 4 weeks ago

Test Blacklist Websites Functionality and API

Test Plan:

  1. Test Scenario: Add Website to Blacklist

    • Steps:
      1. Use the API endpoint to add a website to the blacklist.
      2. Verify that the website is successfully added to the blacklist.
    • Expected Result: The specified website is added to the blacklist without errors.
  2. Test Scenario: Remove Website from Blacklist

    • Steps:
      1. Use the API endpoint to remove a website from the blacklist.
      2. Verify that the website is successfully removed from the blacklist.
    • Expected Result: The specified website is removed from the blacklist without errors.
  3. Test Scenario: Retrieve Blacklisted Websites

    • Steps:
      1. Use the API endpoint to retrieve the list of blacklisted websites.
      2. Verify that the retrieved list matches the expected blacklisted websites.
    • Expected Result: The API returns the list of blacklisted websites accurately.
  4. Test Scenario: Block Access to Blacklisted Websites

    • Steps:
      1. Access a website that is on the blacklist.
      2. Verify that access to the blacklisted website is blocked.
    • Expected Result: Users are unable to access blacklisted websites as intended.
  5. Test Scenario: Error Handling

    • Steps:
      1. Introduce errors in API requests (e.g., invalid parameters, server errors).
      2. Verify how the server responds to these errors.
    • Expected Result: The server handles errors gracefully and provides appropriate error messages.

Related Issues

Notes

Tasks