This project demonstrates how to do API test automation using Frisby.js
I've used the public APIs from Postman as an example to this demonstration.
- Make sure Node is installed on your machine: run
node -v
in terminal - Clone/Fork the project.
- Open the terminal in the folder that the project was cloned in and run the command:
npm install
- In case you don't have Docker installed, please do so.
After Docker setup, you'll be able to create containers in your machine and expose them as you wish. Report Portal setup depends of some containers to work correctly.
The docker-compose.yml file is responsible for managing the required containers to setup the Report Portal application. In order to do that, execute the steps bellow:
- Open the terminal in the folder that the project was cloned in
- Run the commands:
mkdir data/elasticsearch
chmod g+rwx data/elasticsearch
chgrp 1000 data/elasticsearch
- PS.: This is required only on the application setup
- Run the command
docker-compose -p reportportal up -d --force-recreate
to start the containers- The complete command list is available in the application manual)
Given that all the steps are completed successfully, you’ll have access to the report through your web browser.
- Run the command
npm test
to execute your test suit.
There's a serie of posts on medium where you can find step by step how to create the test suite.