Skip to content

3. Setting up tests

Viktor Isenborg edited this page Dec 16, 2021 · 14 revisions

All tests are made with Postman and has to run within Postman. It's possible to use Newman too but it's not tested. Most of the tests are written with two parts, the first part of the test is to make sure it has a connection to the server, and the second part of the test is to assert that everything went correctly. All the images you need for the tests are in PostmanImages.zip and the tests are in the Postman Collections folder.

To run the tests you need to do the following:

1. Download Postman.

2. Make a Postman account, if you don't have one already.

3. Unzip PostmanImages.zip from this repository into C:\Users\"your username"\Postman\files.

4. In Postman click on Workspaces, and then on Team Workspace.

5. In Postman to the left there is an import button, click it.

6. Upload the PostmanTests.json file from Postman Collections.

7. Look in 'Collections' to the left, and you should see the tests.

Note: Some of the tests are found in 'Flows' and not in 'Collections'. Specifically "Delete Successful" & "Upload Successful, Previously Deleted"

Clone this wiki locally