This is my sample code structure for running automated API testing written for Typescript code.
Give a ⭐️ if this project helped you!
NodeJs
1. clone the project and go to it's folder on terminal
2. type `npm install`
3. type `npm run test`
4. enjoy
.
src
├── base/
├── model/
├── test/
base
: Think of this as a "framework". Ideally should be a separate module distributed onnpm
. All general settings and initial configuration that are re-used by testsmodel
: These are yourAPI Object
models. Likewise POM, each endpoint of your application should have a API Object that maps all the actionstest
: All your TDD-style/classes test goes here