Newman API Automation Testing repo for https://api.todoist.com/
- Nodejs installed
- Newman installed
-
Clone repository using git bash to your desired location:
git clone https://github.com/rey-rios/todoist-api.git
-
Open the cloned project using Visual Studio Code (VSCode)
-
In VSCode's terminal run the following command:
npm install
Execute below command in VSCode's terminal to run all the Tasks tests:
npx newman run ./YOUR_APP/tests/backEnd/collections/tasks.json -e ./YOUR_APP/tests/backEnd/envVariables/env.json -r htmlextra --reporter-htmlextra-export ./YOUR_APP/tests/backEnd/reports/report.html --env-var token="{your_todoist_token}"
*
Execute below command in VSCode's terminal to run all the Create Tasks Data Driven tests:
npx newman run ./YOUR_APP/tests/backEnd/collections/create_Tasks_DDT.json -e ./YOUR_APP/tests/backEnd/envVariables/env.json -r htmlextra --reporter-htmlextra-export ./YOUR_APP/tests/backEnd/reports/report.html -d ./YOUR_APP/tests/backEnd/data/tasks.csv --env-var token="{your_todoist_token}"
*
*Replace {your_todoist_token}
with a valid todoist-api Auth token.
HTML report will be published in below path:
YOUR_APP/tests/backEnd/reports/report.html