Basic Test Automation API With Atlas Id
Teori
Dasar dalam API itu CRUD [ Create, Read, Update, Delete ]
Http Response penting untuk test API
- 1xx = Info
- 2xx = Success
- 3xx = Redirect
- 4xx = Client Error
- 5xx = Server Error
Json File
Json file adalah bentuk format file [ .json ]
Kekurangan :
-security json agak kurang
-tidak bisa komen [ ex , // , # , """ ]
Testing Framework dengan Mocha dan Chai
Kelebihan dan alasan menggunakan Mocha :
-open source
-yang mendukung banyak, bisa di integrasikan langsung [ library asserting ]
-reporting library cukup bagus
-git hub punya commit dan push sering
Kekurangan Mocha :
-koding
-belum bisa reporting paralel test
Supertest adalah https requset library : mengirimkan request dan menerima
Hal yang perlu di ingat adalah response code penting untuk Test API
Introduction Automation API
Fundamental test automation api dengan javascript
Framework yang digunakan : Mocha dan Chai
Reporting yang digunakan : Mochawesome
Test berdasarkan :
-Test Suite
-Test Case
Installasi
1. Install Nodejs
atau
-nvm list available
-nvm install [ versi nodejs ]
-node -v [ cek versi nodejs ]
-npm -v [ cek versi npm ]
2. Install Mocha
-npm install --global mocha [ globally ]
-npm install --save-dev mocha [ di dalam folder project]
-npm install mocha
-tambahkan file package.json:
"scripts": {
"test": "mocha" // nama file project
}
3. Install Chai
-npm install chai
4. Install Supertest
-npm install supertest --save-dev
5. Install Mochawesome
-npm install --save-dev mochawesome
6. Instal Visual Studio Code
7. Sistem Operasi Komputer Windows 10
8. Browser
Program
1. Test Suite API
2. Test Case API
3. Http Method [ Get, Post, Put, Delete ]
4. Report Testing Memiliki Format Html
Atlas Id
Teacher
Teacher : Mas Genta Wibowo [ Sr Manager Test Engineer Bukalapak]
Co-Teacher : Mas Aditya Setyadi [ SDET Lead DANA Indonesia ]
Co-Teacher : Mas Fadly Mahendra [ Test Engineering Manager Bukalapak ]
Co-Teacher : Mas Fatkhurozaq Budi Setyawan [ SDET Lead DANA Indonesia]
Yuk Join belajar bareng ATLAS ID TECH
Join :
Source
Lampiran
POSTER
Contoh Report Testing
Let me briefly introduce myself
My Name is Salim Suprayogi
I'm really excited to share my tips and tricks with you
Comments
Post a Comment