This repository is used for Mobile app and API automation using Appium WebdriverIO and JavaScript. This repository is implemented using the Page Object Model (POM) design pattern
-
Clone this repository to your local machine
-
Navigate to the project directory:
$ cd android-api-automation-test
- Install the dependencies:
$ npm install
Before running the test, you need to create file .env, you can copy from env.example, and for user credential you can create new one or for evaluation I already attached on email
To run the mobile tests, use the following command
- To run the tests with specific tags, example for
@transaction
tag
$ npm run test @transaction
- To run the tests on specific file, example for
transaction
spec file
$ npx wdio run ./wdio.conf.js --spec ./test/android/specs/transactions.spec.js
To run the API tests, use the following command
- To run the tests with specific tags, example for
@GET
tag
$ npm run api-test @API_1
- To run All API test
$ npm run api