20
Common Web UI Problems Transforming Manual to Automation Hieu Phan – KMS Technology STC Meetup

Common Web UI Problems Transforming Manual to Automation

Embed Size (px)

Citation preview

Page 1: Common Web UI Problems Transforming Manual to Automation

Common Web UI Problems Transforming

Manual to Automation

Hieu Phan – KMS Technology

STC Meetup

Page 2: Common Web UI Problems Transforming Manual to Automation

Introduction

• Software engineer focusing on testing frameworks• Experienced with desktop, web and mobile apps

• Develop test frameworks using open sources: Selenium, Appium, Watir, …

• Automation engineer• Provide technical solutions for automation projects

• Automation approach, strategy consulting

• Senior Software Engineer at Katalon Studio project

Page 3: Common Web UI Problems Transforming Manual to Automation

Agenda

•Why Automation Testing?

•Available Solutions?

•How Does It Work?

•What IS The Challenge?

Page 4: Common Web UI Problems Transforming Manual to Automation

Why Automation Testing ?

Page 5: Common Web UI Problems Transforming Manual to Automation

Advanced Software Development & Testing Methodologies

Why Automation Testing

Page 6: Common Web UI Problems Transforming Manual to Automation

Rapid Hardware Transformation and Modernization

Why Automation Testing

Page 7: Common Web UI Problems Transforming Manual to Automation

• Commercial tools: QTP, TestComplete, Telerik, eggPlant… Pros: Feature-rich, supported technologies, good customer

support Cons: High cost

• Open source technologies: Selenium, Appium, OCR, AutoIt… Pros: Free Cons: Inconvenient to use, required technical skill

• Free – Community tools: Katalon, Robot framework, Sahi… Pros: Free, customer support Cons:

Available Solutions

Page 8: Common Web UI Problems Transforming Manual to Automation

Automation

Object Repository

Execution engine

Test Data

Test Script

How Automation Tool works

Tester

Dev

AUT

CI

SVC

Page 9: Common Web UI Problems Transforming Manual to Automation

What is the Challenge?

Page 10: Common Web UI Problems Transforming Manual to Automation

The Evolution of Web Interface

CNN 10/23/2006 CNN 10/21/2016

Page 11: Common Web UI Problems Transforming Manual to Automation

The Evolution of Web Processing

Page 12: Common Web UI Problems Transforming Manual to Automation

Asynchronous loading content: IFRAME, AJAX…

Page 13: Common Web UI Problems Transforming Manual to Automation

Common UI Problems

Page 14: Common Web UI Problems Transforming Manual to Automation

• IFrame

• Intelligent Wait

• Popups

• XPath handling

Common Problems

Page 15: Common Web UI Problems Transforming Manual to Automation

IFrame

Page 16: Common Web UI Problems Transforming Manual to Automation

Popup

Pop-up

Page 17: Common Web UI Problems Transforming Manual to Automation

waitForPageLoaded

waitForElementPresent

waitForElementVisible

….

Intelligent Wait

Page 18: Common Web UI Problems Transforming Manual to Automation

/html/body/div[7]/div[3]/div/div[2]/div[1]/div[2]/div/div/div/div[2]/div[1]/div[1]/div/div/div[7]/div/div[1]/div[2]/div/table/tbody/tr/td[6]/div/div/div/span[1]/b

XPath Handling

Page 19: Common Web UI Problems Transforming Manual to Automation

Demo

Page 20: Common Web UI Problems Transforming Manual to Automation

Q & A