Jenkins Integration

  1. Open Test Runs section and Create a New Test.

  2. Select your Cases to run and select your device(s)

  3. When you go back All Test Runs screen, You will see an option GET CI URL. Click it.

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

https://api.momentumsuite.com/api/testPlans/run/YOUR-RUN-ID

 

Sample POST request to trigger URL in your CI tool:

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

appPath is your path to APK, IPA or website

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

auth is your Jenkins Token

 

SAMPLE REQUEST

curl --location --request POST 'https://api.momentumsuite.com/api/testPlans/run/YOUR-RUN-ID' \ --header 'Content-Type: application/json' \ --data-raw '{ "hookUrl": "", "auth": "" }'

RESPONSE

{ "error": false, "message": "OK", "result": { "callbackUrl": "https://api.momentumsuite.com/api/testRuns/testResult/YOUR_ID", "resultUrl": "https://console.momentumsuite.com/en/report/YOUR_ID" }, "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": "https://api.momentumsuite.com/api/testRuns/testResult/YOUR-RUN-ID" } } }

TEST RESULTS ON JENKINS