Code Monkey home page Code Monkey logo

sikuli-monkey's Introduction

sikuli-monkey

An extension of Sikuli that enables running scripts against real Android devices without rooting them.

We all knows object-based (or component-based) testing tools are preferred, but at times image-based tools are needed as a complementary or fallback solution. Sikuli is a great image-based testing tool for many kinds of applications, if (and only if) users can interact with them on the desktop.

For the problem of Sikuli on Android devices, there exist some approaches:

  • Emulators
  • VNC servers, and require root

These two approaches rely on the fact that Sikuli can see the app and control it directly or indirectly with keystrokes and mouse operations.

For some reason, if they are not applicable to your application under test, here is another option for you.

sikuli-monkey is a combination of monkeyrunner and an extended version of Sikuli.

  • monkeyrunner - for capturing screenshots and sending keyboard and touch events.
  • Siklui - as a scripting environment, and for identifying UI components via image recognition.

The concept is really simple and is inspired by an extension to Sikuli called android-robot. That is extending Sikuli and adding a layer of redirection/delegation. For example:

  • When Sikuli needs a screenshot, delegate it to monkeyrunner and take a screenshot from the device.
  • When Sikuli performs an action, delegate the call to monkeyrunner and perform it on the device.

To see siklui-monkey in action, watch the video below:

Sikuli on Android (no root)

sikuli-monkey's People

Contributors

imsardine avatar

Watchers

James Cloos avatar Anshuman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.