Skip to main content
RCAFetch RCA of your Task.
TestMu AI
StatusCommunityBlog
RCA

Fetch RCA of your Task.

This API is used to fetch the RCA data for your required task id.

GET
/v1.0/categorizederrors
Fetch RCA of your Task.
curl --request GET \
--url "https://api.hyperexecute.cloud/v1.0/categorizederrors" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"additional_suggestions": "",
"after": "\n Thread.sleep(500);\n test1.log(LogStatus.PASS, ...",
"before": "\n\n WebElement temp_element;\n\n int totalCount = item_count+5;\n ...",
"created_at": "2024-10-03T17:50:23Z",
"error": "[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, ...",
"errorType": "ElementNotFoundError",
"filename": "Test1.java",
"id": "01J99R26XDH1ZVBK4R3ZY29F70",
"iteration": 0,
"lang": "Java",
"lineNumber": 88,
"order": 4,
"patch_diff": "",
"rca": "",
"remediation": "",
"stack_trace_blob_path": "logs/d2698ea8-39bf-4580-aea8-ad625bec1f70/command.1.0/1.log",
"stacktraceFileLink": "",
"stageDetails": {
"createdAt": "0001-01-01T00:00:00Z",
"updatedAt": "0001-01-01T00:00:00Z"
},
"taskId": "d2698ea0-aea8-ad625bec1f70",
"updated_at": "2024-10-03T17:50:23Z"
}
],
"metadata": {
"cursor": "",
"hasmore": "false",
"next_cursor": ""
},
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

taskIdstringrequired

Enter the Task ID of your Job

orderintegerrequired

Enter your order number. Example= 4

iterationinteger

Response

application/json

Successfull Operation

dataobject[]
data.additional_suggestionsstring
Example: ""
data.afterstring
Example: " Thread.sleep(500); test1.log(LogStatus.PASS, ..."
data.beforestring
Example: " WebElement temp_element; int totalCount = item_count+5; ..."
data.created_atstring
Example: "2024-10-03T17:50:23Z"
data.errorstring
Example: "[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, ..."
data.errorTypestring
Example: "ElementNotFoundError"
data.filenamestring
Example: "Test1.java"
data.idstring
Example: "01J99R26XDH1ZVBK4R3ZY29F70"
data.iterationnumber
Example: 0
data.langstring
Example: "Java"
data.lineNumbernumber
Example: 88
data.ordernumber
Example: 4
data.patch_diffstring
Example: ""
data.rcastring
Example: ""
data.remediationstring
Example: ""
data.stack_trace_blob_pathstring
Example: "logs/d2698ea8-39bf-4580-aea8-ad625bec1f70/command.1.0/1.log"
data.stacktraceFileLinkstring
Example: ""
data.stageDetailsobject
data.taskIdstring
Example: "d2698ea0-aea8-ad625bec1f70"
data.updated_atstring
Example: "2024-10-03T17:50:23Z"
metadataobject
metadata.cursorstring
Example: ""
metadata.hasmorestring
Example: "false"
metadata.next_cursorstring
Example: ""
statusstring
Fetch RCA of your Task.
curl --request GET \
--url "https://api.hyperexecute.cloud/v1.0/categorizederrors" \
--header "Authorization: Basic <encoded-value>"
{
"data": [
{
"additional_suggestions": "",
"after": "\n Thread.sleep(500);\n test1.log(LogStatus.PASS, ...",
"before": "\n\n WebElement temp_element;\n\n int totalCount = item_count+5;\n ...",
"created_at": "2024-10-03T17:50:23Z",
"error": "[ERROR] Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, ...",
"errorType": "ElementNotFoundError",
"filename": "Test1.java",
"id": "01J99R26XDH1ZVBK4R3ZY29F70",
"iteration": 0,
"lang": "Java",
"lineNumber": 88,
"order": 4,
"patch_diff": "",
"rca": "",
"remediation": "",
"stack_trace_blob_path": "logs/d2698ea8-39bf-4580-aea8-ad625bec1f70/command.1.0/1.log",
"stacktraceFileLink": "",
"stageDetails": {
"createdAt": "0001-01-01T00:00:00Z",
"updatedAt": "0001-01-01T00:00:00Z"
},
"taskId": "d2698ea0-aea8-ad625bec1f70",
"updated_at": "2024-10-03T17:50:23Z"
}
],
"metadata": {
"cursor": "",
"hasmore": "false",
"next_cursor": ""
},
"status": "success"
}