11

Click here to load reader

Cross Platform Test Automation for Web and Android

Embed Size (px)

DESCRIPTION

This presentation is about Cross Platform Test Automation for Web and Android, with the description of useful frameworks and examples of code. Presentation by Iuliia Khikmatova (Senior Automation Tester, GlobalLogic, Lviv) delivered at GlobalLogic Lviv Mobile TechTalk, November 13, 2014. More details - http://www.globallogic.com.ua/press-releases/lviv-mobile-2014-coverage

Citation preview

Page 1: Cross Platform Test Automation for Web and Android

CONFIDENTIAL©2014 GlobalLogic Inc.

Cross Platform Test Automation

Web + Android

Page 2: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Test flow for automationTest

● Device displays activation code● Web-server activates code via

browser● Device updates screen

● Device tests● Web-browser displays activity● Device tests

Page 3: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Using:

AutomationStructure

● Java● Maven● Spring

● Appium● Selenium● TestNG

Page 4: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Advantages:

AppiumStructure

● Mobile (Android and iOS)● Any language supported by

Selenium● Automates Android using the

UIAutomator framework● Automates iOS using the

UIAutomation library

Page 5: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Appium/WebDriver initializingStructure

Page 6: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Structure

Page Object

● All Android pages and fragment prototypes are initialized via AppiumDriver

● All Browser pages and fragment prototypes are initialized via WebDriver● The Page Object encapsulates all the logic about how to perform certain

actions

Page 7: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Components AccessStructure

Page 8: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Example:

TestNG TestStructure

● @Test – TestNG annotation

Page 9: Cross Platform Test Automation for Web and Android

CONFIDENTIAL

Test startStructure

● Test Name● Used Class● Used methods

Page 10: Cross Platform Test Automation for Web and Android

CONFIDENTIAL©2014 GlobalLogic Inc.

Q & A

Page 11: Cross Platform Test Automation for Web and Android

CONFIDENTIAL©2014 GlobalLogic Inc.

Contact Info:

[email protected]

Thank You