Ingenious Build's Automation Challenge
-
What the project is about reqresAPIAutomatedTests is an automated project with aim objective is verify the API work correctly, validating response code, response time, response data and the parameters sent.
-
Why the language and tools selected The language used is JavaScript and the tool was Cypress that technology was selected by followign reasons:
- Easy to setup
- Excellent documentation
- It is scalable
- Can be integrated in CI/CD
- It is friendly
-
How to set it up
- Verify you have installed npm and node.js with the following commands
npm -v
andnode -v
- Clone the repository
- Execute
npm i
- Verify you have installed npm and node.js with the following commands
-
How to execute it If you want to run by command line execute the
npx cypress run test
command If you want to see the execution in live then execute thenpx cypress open
command -
How to develop for it
- Review the endpoint using Postman - (doing manual smoke test)
- Identify the tools that can be used for automating
- Select the tool following the next criteria (Time for automation, knowledge and future improvements)
- After defined the tool, Create the structure
- Finally, I added the test cases for every requirement
-
Future improvements
- Add Async functions
- Integrate the automation tests in the CI/CD
- Improve the structure following a partner
- Add test cases where verify other request (Patch, Delete, Authorization...)