Updating test step logs only without updating test case steps
-
I am using qtest api to update automation test cases. When i am posting test run logs with test step logs, it is updating the test run status with test steps in execution history. But the same api is also overriding the steps in test case
Endpoint: /api/v3/projects/{projectId}/test-runs/{testRunId}/auto-test-logs
{
"id": 1,
"test_case_version_id": 1,
"exe_start_date": "2023-09-11T20:28:55.304Z",
"exe_end_date": "2023-09-11T20:28:55.304Z",
"note": "Note",
"attachments": [
{
"name": "Sample.docx",
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"data": "base64 string of Sample.docx",
"id": 1,
"created_date": "2023-09-11T20:28:55.304Z",
"author": {
"id": 1,
"email": "example.user@qtest.com",
"first_name": "First name of the User",
"last_name": "Last name of the User"
}
}
],
"name": "test run name",
"planned_exe_time": 0,
"actual_exe_time": 0,
"build_number": "10",
"build_url": "http://localhost:8080/jenkins",
"properties": [
{
"field_id": 1,
"field_name": "Field Name",
"field_value": "1",
"field_value_name": "1"
}
],
"automation_content": "automation content",
"system_name": "string",
"status": "PASSED",
"order": 0,
"test_step_logs": [
{
"description": "description",
"expected_result": "expected result",
"actual_result": "actual result",
"customFieldInfo": [
{
"id": 0,
"value": "string",
"objectId": 0,
"type": "string",
"name": "string",
"propertyEditorComponent": false,
"stripHTMLValue": "string"
}
],
"order": 1,
"status": "PASSED",
"attachments": [
{
"name": "Sample.docx",
"content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"data": "base64 string of Sample.docx",
"id": 1,
"created_date": "2023-09-11T20:28:55.304Z",
"author": {
"id": 1,
"email": "example.user@qtest.com",
"first_name": "First name of the User",
"last_name": "Last name of the User"
}
}
],
"defect_pids": [
"MTR-1,MTR-2"
],
"exe_date": "2023-09-11T20:28:55.304Z"
}
],
"testcase_properties": [
{
"field_id": 1,
"field_name": "Field Name",
"field_value": "1",
"field_value_name": "1"
}
],
"module_names": [
"string"
],
"agent_ids": [
0
],
"defect_pids": [
"MTR-1,MTR-2"
],
"tosca_guid": "string",
"tosca_node_path": "string",
"tosca_state": "string"
}