MoQuality

MoQuality Docs

We are glad that you are using MoQuality in your testing process. You'll find comprehensive guides and documentation to help you start working with MoQuality as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

The MoQuality Command Line Interface (CLI) makes it easy to upload apps and manage tests on MoQuality. It's an essential part of making your QA process agile. The CLI tool can be integrated with any CI/CD tools such as Bitrise, Circle CI or Jenkins to upload your latest build to MoQuality.

Install

The MoQuality CLI can be installed using brew.

brew install moquality/brew/mq

If you prefer yarn, you can install the CLI with

yarn global add mq-cli

Verify your Installation

To verify your CLI installation, use the mq --version command:

mq --version

Getting Started

After you install the CLI, you can set up your API key. You can find your API key under the Profile Menu in "Account". Then set up the MQ_APIKEY environment variable:

export MQ_APIKEY=<api_key>

To upload an app to MoQuality, run the mq upload command.

mq upload --project <project_id> --app ~/path/to/app.apk

Upload from your CI/CD pipeline

You can install the mq-cli in your pipeline instructions and then set up your API Key so that any command that follows is set up for your account.

Bitrise

To upload your app from your Bitrise workflow add a custom script such as this:

#!/usr/bin/env bash
echo "Sending APK to MoQuality"

npm install -g [email protected]
export MQ_APIKEY=<api_key>
mq upload --project <project_id> --app $BITRISE_APK_PATH

You can alternatively modify the upload command to add more information

mq upload --project <project_id> \
	--app $BITRISE_APK_PATH \
	--buildNumber $BITRISE_BUILD_NUMBER \
	--buildTitle $BITRISE_BUILD_SLUG \
	--buildArtifact $BITRISE_PUBLIC_INSTALL_PAGE_URL \
	--buildAuthor "$GIT_CLONE_COMMIT_AUTHOR_NAME" \
	--buildBranch $BITRISE_GIT_BRANCH

Circle CI

To upload your app from your CircleCI job, you can add a step using shell scripts such as this:

version: 2.0
jobs:
  build:
    docker:
      - image: circleci/android:api-25-node
    steps:
      - checkout
      - run:
          name: 'Upload app to MoQuality'
          command: |
            npm set prefix=/home/circleci/npm
            npm install -g mq-cli
            export MQ_APIKEY=<api_key>
            /home/circleci/npm/bin/mq upload \
            	--project <project_id> \
              	--app <local_server_path>/<app_apk>.apk

Check how to set up CircleCI build for Android and iOS. You will also need to use a CircleCI image with -node which comes pre-installed with node.

Since CircleCI's docker images have npm installed at /home/circleci/npm, you will have to use npm set prefix. This will install the CLI tool at /home/circleci/npm/bin/mq. Then you can use the mq command to upload your app. You can also tag this upload with --buildNumber, --buildTitle, --buildAuthor or --buildBranch.

Uninstalling the MoQuality CLI

To uninstall the CLI, you can use

brew remove mq

If you installed the CLI through yarn, use

yarn global remove mq-cli

Updated about a month ago

CI/CD


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.