DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Introducing Monkop CLI

Introducing Monkop CLI

Check out this article to gain some knowledge about Monkop CLI, a command-line tool for Android test automation.

Fabian Baptista user avatar by
Fabian Baptista
·
Jun. 26, 16 · Mobile Zone · Tutorial
Like (2)
Save
Tweet
2.93K Views

Join the DZone community and get the full member experience.

Join For Free

Image title

Monkop CLI is a command-line tool that enables a new kind of automation in your build process, allowing you to run Monkop tests automatically in your development cycle (without disturbance).

Monkop will test your mobile apps in different kinds of real devices while your team remains focused on others steps of your building process. All you need is a Monkop account and to follow these simple steps to enable your app to be tested.

Installing Monkop CLI

Monkop CLI is a Python (v2.7) script that handles all communication with Monkop’s API using your account (APIKey). Once you have it, just download the latest version here: static.monkop.com/setup/cli/monkop-cli.py

Command Line Interface Options

You can get help from the command-line tool by calling monkop-cli -h

> monkop-cli -h
Usage: monkop-cli.py -k apikey [-t time] [-w] [-a appfile] [-st type]
[-sf scriptfile] [-c callbackurl] [-e extradata]
[-s transaction] [-h]

General:

-k apikey

Your API Key (https://console.monkop.com/apikey.xhtml)

-t time

Test duration in minutes (per device)

-w

Wait for completion

-n

Don’t return error code on test errors (status_code will be always 0)

Application:

-a appfile

Public URL or local path to application file

Script:

-st type

Type of script file. Valid values: ESPRESSO

-sf scriptfile

Public URL or local path to script file

Notification:

-c callbackurl

Public URL for notification purposes

-e extradata

Extra data to be defined by customer, this data will be returned in the notification callback

Status:

-s transaction

Get transaction status

Help:

-h, –help

Show this help message and exit

Run Your First Test

First you need your app ready, if you don’t have one, you still can test some 3rd-party app to see what happens:

> python monkop-cli.py -k YOURAPIKEY -w -a “http://static.monkop.com/setup/apps_demo/Google_IO_2016_4.4.6.apk”

Prerequisites

Enable the use of the API Key on Add-ons:
https://console.monkop.com/addOns.xhtml

Python 2.7 installed (already installed on most Linux distros and Mac OS X)
https://www.python.org/download/releases/2.7/

If the build runs over Windows, you may need to install CURL, and to have the CURL binary on same path of monkop-cli.py or accessible in path environment variable: https://curl.haxx.se/download.html

Limitations

Monkop CLI for non-enterprise customers and is only available for the Android Platform.


Visit monkop.com to try Monkop CLI today!

Command-line interface

Published at DZone with permission of Fabian Baptista. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Top Soft Skills to Identify a Great Software Engineer
  • Deployment of Low-Latency Solutions in the Cloud
  • Choosing Between GraphQL Vs REST
  • Why Is Software Integration Important for Business?

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo