Back to QMetry All Products Help Page
Automation API
API Base URL
http://<service manager ip or hostname>:<service manager port>/platform [e.g. http://localhost:7766/platform]
Services
API Request
End Point | <Base URL>/tokens/token [ e.g. http://localhost:7766/platform/tokens/token ] |
Method | POST |
Query Params | - |
Headers | Content-Type: application/json |
Authorization | - |
Body | - |
API Response
{
"success": true,
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTY2NTE2NTc0MywiaWF0IjoxNjY1MTQ3NzQzfQ.EPM17liyqrcDmlyx9oIRIpVNvuF_RcYHzQZEXa3Iczwb0j3XRipvRNmrVIiGlcjLE0_v-xk-q4pf5gipDiq4Kg"
}
Curl
curl -X POST "http://localhost:7766/platform/tokens/token" -H "accept: */*"
API Request
End Point | <Base URL>/project/{projectId}/testexecution/execute [e.g. http://localhost:7766/platform/project/QPR-01/testexecution/execute ] |
Method | POST |
Query Params | projectId - <Project ID> |
Headers | Content-Type: application/json |
Authorization | Bearer <API Token> |
Body | {
"name": "TestExecution",
"type": "TESTCASE",
"id": "QTC-01",
"job_id": "",
"profiles": ["PRF-01"]
} Note: “name”: New execution Name “type”: TESTCASE “id”: Test Case ID “job_id”: This should be empty in case of individual test case execution “profiles”: Specify Profile ID against which test should execute. |
API Response
Curl
API Request
End Point | <Base URL>/project/{projectId}/testexecution/execute [e.g. http://localhost:7766/platform/project/QPR-01/testexecution/execute ] |
Method | POST |
Query Params | projectId - <Project ID> |
Headers | Content-Type: application/json |
Authorization | Bearer <API Token> |
Body | Note: “name”: New execution Name “type”: TESTCYCLE “id”: Test Cycle ID “job_id”: This should be empty in case of individual test case execution “profiles”: [] |
API Response
Curl
API Request
End Point | <Base URL>/project/{projectId}/testexecution/execute [e.g. http://localhost:7766/platform/project/QPR-01/testexecution/execute ] |
Method | POST |
Query Params | projectId - <Project ID> |
Headers | Content-Type: application/json |
Authorization | Bearer <API Token> |
Body | Note: “name”: New execution Name “type”: TESTCYCLE “id”: Test Cycle ID “job_id”: Test Cycle Job ID “profiles”: [] |
API Response
Curl
API Request
End Point | <Base URL>/project/{projectId}/testexecution/{executionId} [e.g. http://localhost:7766/platform/project/QPR-01/testexecution/QTE-314 ] |
Method | GET |
Query Params | projectId - <Project ID> executionId - <Execution ID> |
Headers | Content-Type: application/json |
Authorization | Bearer <API Token> |
Body | - |
API Response
Curl
Back to QMetry All Products Help Page