Anda di halaman 1dari 22

AutomationTesting

Automation Testing
forUI
for UIApplication
Application

By: Agitha Pramesti Sembiring


Associate SDET at Blibli.com
AGENDA 01 Introduce
03 How To Write
Automation
Code

02 How Automation
Works
04 Demo
Introduce
Introduce
Automation pada dasarnya merupakan penciptaan dan pengaplikasian
teknologi untuk memproduksi dan men-deliver service-service dengan
intervensi manusia seminimal mungkin
Why We Need Automation ?

• Test Automation menghemat waktu ( Manual  Automate)


• Mengurang effort
Introduce
• Meningkatkan produktifitas
• Memastikan fungsi-fungsi yang kritikal berjalan dengan baik
• Mengkonfirmasi aplikasi bekerja sesuai dengan perspektif user
• Menjalankan script automation dalam berbagai browser (Google,
Firefox, dll)
Introduce
Beberapa tools tersedia, Selenium Java dipilih sebagai tools automation di
Blibli.com.
Alasan utama : open source dan mudah didapatkan di internet.
What is Selenium ?
Selenium Framework is based on the JavaScript framework, could run the tests directly on the target browser,
drive the interactions on the required web page and rerun them without any manual input.

I’m a Driver,
ChromeDriver,
Introduce
GeckoDriver,
etc I’m an
Autom
ation
Script
UI Testing

BDD Testing
Introduce
Serenity Write
scenario

Develop
Code
Cucumber
Selenium
Run it !
BDD Testing
Behavior Driven Development merupakan software test yang adalah pengembangan dari TDD, menggunakan
human-readable descriptions. Why BDD ? Karena BDD menggunakan bahasa yang dipahami oleh manusia,
maka scenario/testcase yang telah dibuat dapat dimengerti oleh semua orang (Business User, Data Analyst,
Developer, Product Manager, dll) Introduce
Write The ‘Given-When-Then’ formula BDD
scenario example:

Given a certain scenario


Develop When an action takes place
Code Then this should be the outcome. Gherkin

Given user is on homepage As a


When user navigates to Login Page I want
Run it ! And user enters username and Password
Then success message is displayed So that
Cucumber
Cucumber merupakan open source tool yang mendukung Behavior Driven Development (BDD) framework

How BDD works in Cucumber Automation ?

Given user is on homepage


When user navigates to Login Page
Introduce
And user enters username and Password
Then success message is displayed
Serenity BDD
Serenity BDD merupakan open souce library yang membantu dalam menghasilkan well-illustrated testing
report. Serenity tidak hanya menampilkan hasil reports test dari automation kita, namun juga dapat membuat
dokumentasi secara berkala
Introduce
How Automation Works ?
Story: I want To eat delicious meat balls​
Scenario 1: Go to Restaurant and eat meat balls​
Given I’m on Meat ball Restaurant​
When I order meat ball​
Then I should receive a delicious meat balls How
Dimapping ke Java Code
Automation
Works
Automation Script
(Selenium, Appium,
Restassured)

Run It ! Result Report


How
Scenario/Test Case BDD dalam Cucumber
Automation
Works

Mapped to Java Code Report (Serenity)

Run It!
How Write Automation
Code?
How To Write
Automation
Main Package, For Action ( Hit API ) &
Code
UI Intercation etc.

Test Package, for logic automation,


Mapping Between Feature files with Java code
How To Write
Automation
Code
Api : API testing, for hit the api
Data : saving Data that used by other class or other
steps
Models : modeling java response, UI Table etc
Pages : contains UI element and logic for click , drag,
etc
Properties : Save variable that read from properties
file
Utils : common class that can be used for
constant , utility , etc
How To Write
Automation
For Mapping Between Cucumber Feature
With Java code
Code
File Runner for running Test
Contains all BDD Scenario

Browser , Apps , Selenium Properties


Any Question ?
Automation
UI Application
DEMO
Thank You
If you have any question, feel free contact me 
agitha.sembiring@gdn-commerce.com
083899539696
https://www.linkedin.com/in/agitha-p-0269b8132/

Asset Sources: Google, Blibli UX, Content Team Assets

Anda mungkin juga menyukai