Integrate Momentum Suite Automate with CircleCI

momentum suite integrations collaborate with circleci

A. Introduction

Momentum Suite Automate provides a good experience for those who want to integrate the existing test suite with CI/CD life cycle. Maintain quality and find problems as you develop. Continuous testing with CircleCI ensures your app works after every check-in and build, enabling you to find issues earlier by running tests automatically with each build.

B. Configuration

1. Login to Momentum Suite Automate and go to the Project page.

2. Choose your Momentum Suite Automate project.

Screen Shot 2022 09 27 at 10.39.52

3. Go to the “Test Runs” tab on the top menu and click “Create a New Test“.

4. Select your test cases to run. After that select your device(s).

5. When you go back to the “All Test Runs” screen, you will see an option as “GET CI URL“. Click it.

image 33

6. You can copy the Hook URL to use it in your CI tool.

image 34

Sample POST request to trigger URL in your CI tool:

The first URL is your CI URL which is generated from the project’s test run.

appPath is your path to APK, IPA, or website

hookUrl is your CircleCI hook URL. It will be triggered automatically after TestRun has been finished on MomentumSuite.

auth is your CircleCI Token


curl --location --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hookUrl": "",
    "auth": ""


    "error": false,
    "message": "OK",
    "result": {
        "callbackUrl": "",
        "resultUrl": ""
    "statusCode": 200,
    "errorCode": 0

Get Test Results in JSON or XML

(GET) JSON TestResult (Junit)

(GET) XML TestResult

Sample Patch Request

  "status": "inProgress",
  "variables": {
     "junit.test.result.url": {
        "value": ""
callbackUrl=$(curl --location --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{"hookUrl": "","auth": ""}' \
|  jq --raw-output '.result.callbackUrl')
fileName=$(cut -d/ -f7 <<<"${callbackUrl}")
sleep 20
curl ${xmlCallbackUrl} > "test-results.xml"
Table of Contents