Skip to content

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

License

Notifications You must be signed in to change notification settings

imsardine/sikuli-monkey

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published