Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 841 Bytes

README.md

File metadata and controls

44 lines (27 loc) · 841 Bytes

API Automation using webdriverio

Prerequisite

Nodejs stable version

Latest chrome version

Installation

Use the package manager npm to install the library.

npm install

Usage

# run all specs
npm run wdio

#run spesific spec file
npx wdio run ./wdio.conf.js --spec ./test/specs/scenarios/book_list.spec.js

#run spesific suite
npx wdio run ./wdio.conf.js --suite examplesuitename

Report

Untuk report menggunakan bawaan dari webdriver.io itu sendiri

Flow testing

Alur dari automation api ini adalah mulai dari register kemudian login dan dilanjutkan dengan mulai testing pada endpoint berikut

POST /BookStore/v1/Books
DELETE /BookStore/v1/Books

User digenerate secara otomatis dan disimpan ke dalam log/registeredUser.txt setelah testing selesai.