Transcript
Page 1: Savvycom Training - Appium, a mobile app testing tools

APPIUMAUTOMATION FOR MOBILE APPS

Page 2: Savvycom Training - Appium, a mobile app testing tools

WHAT IS APPIUM

Page 3: Savvycom Training - Appium, a mobile app testing tools
Page 4: Savvycom Training - Appium, a mobile app testing tools
Page 5: Savvycom Training - Appium, a mobile app testing tools

ON ANDROID

ON iOS

HOW IT WORKS

HOW IT WORKS

Page 6: Savvycom Training - Appium, a mobile app testing tools

APPIUM’S PHILOSOPHY

1 2 3 4

Test the same app you submit to the marketplace.

Write your tests in any framework, using any language

Use a standard automation specification and API.

Build a large and thriving open-source community effort.

Page 7: Savvycom Training - Appium, a mobile app testing tools

o Free.o Cross Platforms.o Strong community support.o Support Java, JavaScript with Node.js,

Python, PHP, Objective-C, Ruby, Perl, and C#.

o No need to include or compile any framework in code.

APPIUM VS ROBOTIUM

o Free.o Android Only.o Average Support from

community.o Use Java only.o Need to add a dependency to

the latest Robotium release to build file.ROBOTIUM

APPIUM

Page 8: Savvycom Training - Appium, a mobile app testing tools

SETTING UP APPIUM

ECLIPSE WITH TestNG plugin

Page 9: Savvycom Training - Appium, a mobile app testing tools

HOW TO APPLY APPIUM IN

REALITY

Page 10: Savvycom Training - Appium, a mobile app testing tools

without

a QUALITY OUTPUT can never be achieved

A HIGH QUALITY of TESTING APPROACH

Page 11: Savvycom Training - Appium, a mobile app testing tools

MANUAL QAAUTOMATION QA

PROJECT

MANAGER

DEVELOPER

HOW TO USE APPIUM IN REALITY

Page 12: Savvycom Training - Appium, a mobile app testing tools

PROJECT

MANAGER

DEVELOPER

HOW TO USE APPIUM IN REALITY

Good software testing background knowledge

Willing to learn Coding.

Ability to overcome beginner’s trouble.

Spend hard time on studying

Willing to learn from an Automation technician.

AUTOMATION QA

MANUAL QA

Page 13: Savvycom Training - Appium, a mobile app testing tools

PROJECT

MANAGER

DEVELOPER

HOW TO USE APPIUM IN REALITY

Regress all issues found by Automation test.

Confirm bug to decide whether it is a bug or it is occurred by scripting skill of Automation QA.

AUTOMATION QA

MANUAL QA

Page 14: Savvycom Training - Appium, a mobile app testing tools

PROJECT

MANAGER

DEVELOPER

HOW TO USE APPIUM IN REALITY

Support in Coding, debugging, Environment setup, etc.

It’s better to list all necessary elements for QA to get information of every screen, flow effortlessly.

AUTOMATION QA

MANUAL QA

Page 15: Savvycom Training - Appium, a mobile app testing tools

PROJECT

MANAGER

DEVELOPER

HOW TO USE APPIUM IN REALITY

Assign the Automation QA resource effectively.

Estimate % test case that can be done by Automation testing.

Work with QA to have a detail test plan right after the project is kick-off.

Assign support team to help.

AUTOMATION QA

MANUAL QA

Page 16: Savvycom Training - Appium, a mobile app testing tools

STUDY RESULTS

Page 17: Savvycom Training - Appium, a mobile app testing tools

C O M M A N D S D E S C R I P T I O N

findElement() Locate an element on screen using its own attributes

click() Perform click action on buttonsclear() Clear the selected textbox or text field.

sendKeys() Send text to a textbox or text field.getText() Get content of a textbox or text field.getSize() Get the x:y dimension of the screen.scrollTo() Perform scroll action to the located element.

multiTouchAction() Perform multi-touch on a screen

touchAction() Perform single touch.

swipe() Perform swipe action with the provided coordinate.

assertEqual() Compare result and expected.

STUDY RESULT DEMO APPIUM INTERFACE GET ELEMENTS

Page 18: Savvycom Training - Appium, a mobile app testing tools

STUDY RESULT DEMOCase Study:• An Jio Health user wants to login to the

app.• The cases that might happens to user:1 No Email and no Password.

2

6

5

4

3

Email is filled but no Password.Email are in incorrect formatPassword is too short.Email and Password are not matched.Email and Password are matched.

APPIUM INTERFACE GET ELEMENTS

Page 19: Savvycom Training - Appium, a mobile app testing tools

STUDY RESULT DEMO APPIUM INTERFACE GET ELEMENTS

Page 20: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON ANDROID

APPIUM INTERFACE GET ELEMENTS ON iOS GET

CODING

Page 21: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON ANDROIDAPPIUM INTERFACE GET ELEMENTS ON iOS GET

CODING

Page 22: Savvycom Training - Appium, a mobile app testing tools

GET CODINGGET ELEMENTS ON iOS

CONFIGURATION ANDROID

REPORT - TestNG

Page 23: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON iOS

CONFIGURATION iOS

REPORT - TestNGGET CODING

Page 24: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON iOS

CREATE COMMON METHODS

REPORT - TestNGGET CODING

Page 25: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON iOS

CREATE COMMON METHODS

REPORT - TestNGGET CODING

Page 26: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON iOS

CREATE COMMON METHODS

REPORT - TestNGGET CODING

Page 27: Savvycom Training - Appium, a mobile app testing tools

GET ELEMENTS ON iOS

FINISH TESTING

REPORT - TestNGGET CODING

Page 28: Savvycom Training - Appium, a mobile app testing tools

GET CODINGGET ELEMENTS ON iOS REPORT - TestNG

Page 30: Savvycom Training - Appium, a mobile app testing tools

THE END