Test Runs
This endpoint is used to create, and read the results of, test runs. API URL - https://api.moropo.com/testsruns
Available actions
Create Test Run
Check Test Run Status
Example - Triggering a Test Run
Note this request uses POST
to inform the API that a test run is being created. This example is for a basic usage of the endpoint. The docs linked above provide a comprehensive specification of all possible overrides.
curl -X 'POST' \
'https://api.moropo.com/testRuns' \
-H 'accept: */*' \
-H 'x-app-api-key: MOROPO_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"ciCdId": "SCHEDULED_TEST_RUN_ID"
}'
Where;
MOROPO_API_KEY
is the API key for the target app, found in your Moropo settings.SCHEDULED_TEST_RUN_ID
is the UUID of the scheduled test run you wish to create.
Expected Response
{
"statusCode": 200,
"body": "{
\"message\":\"Success\",
\"testRunInfo\":{
\"id\":TEST_RUN_ID,
\"buildId\":\"BUILD_ID\",
\"devices\":[\"DEVICES\"],
\"tests\":[\"TESTS\"],
\"expoReleaseChannel\":\"EXPO_RELEASE_CHANNEL\",
\"url\":\"TEST_RUN_URL"
}
}"
}
Example - Reading Test Run Status
This request uses GET
to inform the API test run status is being requested
curl -X 'GET' \
'https://api.test.moropo.com/testRuns/TEST_RUN_ID' \
-H 'accept: */*' \
-H 'x-app-api-key: MOROPO_API_KEY'
Where;
MOROPO_API_KEY
is the API key for the target app, found in your Moropo settings.TEST_RUN_ID
is the ID of the test you want to request the results for.
Expected Response
{
"statusCode": 200,
"body": "{
\"complete\":true,
\"passed\":true,
\"message\":\"Tests passed\"
}"
}
Last updated
Was this helpful?