Azure Devops Integration
Open Test Runs section and Create a New Test.
Select your Cases to run and select your device(s)
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 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 Azure Devops hook URL. It will be triggered automatically after TestRun has been finished on MomentumSuite.
auth is your Azure Devops Token
REQUEST
curl --location --request POST 'https://api.momentumsuite.com/api/testPlans/run/YOUR-RUN-ID' \
--header 'Content-Type: application/json' \
--data-raw '{
"appPath": "http://www.google.com",
"version": "1",
"hookUrl": "https://capture.mobven.com/auth",
"auth": "basic OTE1MjZmZjYtMjI2YS0xMWVi"
}'
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"
}
}
}