Show Translate

Featured Post

REST API Testing Using Python

Introduction         This program is REST API testing using python.         The programming language used is python 3.         I hope to get your suggestions and review.         Thank a lot of. Requirement         1. [python Python 3.8.5]( https://www.python.org )         2. OS Windows         3. Install Module Request [ pip install request ] [already available on folder venv]         4. Install Module Json          5. Install Module Json Path [ pip install jsonpath ] [already available on folder venv] Description Program         1. Get Request         2. Delete Request         3. Post Request         4. Pick Response         5. Display Response         6. Validation Response   ...

Basic Test Automation API With Atlas Id

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

        Download : https://nodejs.org/en/download/
        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


Resume Code


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

Show Popular Posts

Daily Diary

REST API Testing Using Python

Donasi Dapat Dikirim di

BCA 4452335836 a/n Salim Suprayogi : BNI 1366021766 a/n Salim Suprayogi : BRI 664201043708532 a/n Salim Suprayogi : Ewalet Dana 085729842422 a/n Salim Suprayogi