/
Testing Documentation

Testing Documentation

For testing, we used the local development server, and used Postman, which is a powerful tool for manipulating and keeping track of APIs. It also has a powerful suite of tools for testing the APIs, and hence I used it to help test our API.

Our API was tested inside Postman, and the test scripts are recorded in the testscrpits.postman_collection.json file within the TestScrpits file in our github.

We first tested if the API can fetch the data, then using a known test set of data we checked if the data we got from the scraper was valid compared to the test data. After that, we checked any missing fields in the request such as date and time; and we verified that a bad request handle will be returned in most cases except for keywords, as the keywords are optional items.

Most of the main tests have been done and verified, however certain aspects haven’t been tested yet:

  • We haven’t tested any errors for any misspelled inputs such as invalid dates or cities. For now, those errors will return a 200 response with a blank JSON.

  • We haven’t tested specific reports other than checking if the server returns a correct response or not as the script for it isn’t fully complete at this time.

  • As a side note, the API as of now doesn’t differentiate between errors - as such each error is considered the same instead of being clarified as to what kind of error it is.

 

Related content

Test Cases
Test Cases
Read with this
Design Details
Design Details
More like this
Management Information
Management Information
Read with this
Marking Criteria
Marking Criteria
More like this
Service APIs
Service APIs
More like this