The API Mobile Automation Test Framework
The following automation framework was created for providing the support of API tests.
The main stack of technologies:
The main config files:
The general structure of test framework for API Mobile:
The
entities
is used for keeping the global entities e.g.User
,Guest
and etc.
The
models
is used for keeping the structure of responses.
The
services
is used for keeping the actions of entities e.g.getTickets()
.
The
utils
is used for keeping the helper files e.g.requester
.
The
test
contains the test scenarios e.g.user-get-tickets
.
Features
Recommended to use timeouts: Sometimes networks and servers get "stuck" and never respond after accepting a request. Set timeouts to avoid requests waiting forever.
Readme files
How to execute tests?
$ npm install
$ npm run test
Environment Local:
$ npm install
$ ./node_modules/.bin/mocha test.js
Environment CircleCI:
Circle CI
Plugins
Plugin | LINK |
---|---|
JSON Reporter | JSON Reporter |