monkey talk

15
Minsk 2014

Upload: issoft

Post on 15-Jan-2015

2.234 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Monkey talk

Minsk 2014

Page 2: Monkey talk

Overview

MonkeyTalk is mobile app testing tool. A free, open source, simple-to-use tool, have DSL. Automates tests for native, mobile, and hybrid iOS and Android apps - everything from simple "smoke tests" to sophisticated data-driven test suites. Work with real devices and emulators.

Page 3: Monkey talk

Monkey TalkIDE

• Toolbar - Contains controls for connecting, recording and playing.• Editor - Displays and edits recorded scripts.• Files - Shows scripts, suites, and data files that can be run or edited.• Console - Reports status and test results from running scripts.

Page 4: Monkey talk

Component Tree

The entries in the Tree show information about MonkeyTalk's view of your UI. The elements of each entry are:MonkeyTalkComponentName Ordinal (MonkeyID) [alternate Monkey IDs] nativeComponentClassName visible/hidden

Page 5: Monkey talk

Component Tree elements description

• MonkeyTalkComponentName: The name of the MonkeyTalk Component Typewhich corresponds to the UI element.

• Ordinal: For Components which can be automated, a number wll be shown as #n, where n is the "Index Number MonkeyID"

• MonkeyID - in parentheses () - this is the "default" MonkeyID which will be recorded when the component is used

• alternate Monkey ID(s) - in square brackets [] this is a list of alternate MonkeyIDswhich can be used in your scripts - for instance, the acessibilityLabel or acessibilityIdentifier on iOS, or the contentDescriptor on Android. You can use any of thexe MonkeyIDs (if they are present) as an alternative to the "default" MonkeyID

• nativeComponentClassName - the name of the native platform class for the Component

• visible/hidden - an idicator of whether or not the component is visible. This corresponds to the underlying platform's property for the component; even if the component is scrtolled off the screen ("clipp[ed") this may show "visible".

Page 6: Monkey talk

MonkeyTalk Agents

You'll need to install the MonkeyTalk Agent in your iOS app or Android app or both for cross-platform testing.

Page 7: Monkey talk

Java API

The MonkeyTalk Java API is a new MonkeyTalk feature available starting with release v1.0.58. The Java API gives you the ability to write MonkeyTalk tests as standard pure-Java JUnit tests.

Page 8: Monkey talk

Test example

Page 9: Monkey talk

One test for two platforms

You could create one test for iOS and Android if use parameterized tests.

Page 10: Monkey talk

Monkey Talk report

Page 11: Monkey talk

Maven dependencies

Since MonkeyTalk is not yet in Maven Central, you need to install the jar into your local repository manually like this:

mvn install:install-file -Dfile=/path/to/monkeytalk-java-1.0.58-all-in-one.jar

Page 12: Monkey talk

Results

Advantages:• Open Source• One test for both platforms(iOS & Android)• Java API• Good guideDisadvantages:• Use Agent• Problem with some hybrid application• Can't use Xpath and CSS selectors

Page 13: Monkey talk

Summary

Monkey Talk looks like good tool. Have good sides like cross-platform tests, API, open source license. And disadvantages not critical. We can use Monkey ID instead Xpath and problem only with hybrid apps where auto-generated ID and other web attributes.

Page 15: Monkey talk

Thanks

Vladislav Akulich

ISsoft QA Engineer

[email protected]

ISsoft Solutions

www.issoft.by