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 an app to 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.

Usage

The MoQuality CLI can be used like this:

export MQ_APIKEY=<api_key>
npm install -g @moquality/mq
mq upload --project <project_id> ~/path/to/app.apk

You can read more about this on the npm page: https://www.npmjs.com/package/@moquality/mq

You can find your API key under the Profile Menu in "Account". Your project_id is the identifier you used while creating your project. You can also find it in the "Project Settings" page.

Upload from your CI/CD pipeline

You can install our CLI tool 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 @moquality/[email protected]
export MQ_APIKEY=<api_key>
mq upload --project <project_id> $BITRISE_APK_PATH

You can alternatively modify the upload command to add more information

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

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 @moquality/mq
            export MQ_APIKEY=<api_key>
            /home/circleci/npm/bin/mq upload \
            	--project <project_id> \
              	<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 --build-number, --build-title, --build-author or --build-branch.

Uninstalling the MoQuality CLI

You can uninstall the CLI using

npm uninstall -g @moquality/mq

Updated a day 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.