Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Updating test step logs only without updating test case steps

Updating test step logs only without updating test case steps

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtestapi
2 Posts 2 Posters 632 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kamal07
    wrote on 11 Sept 2023, 20:07 last edited by kamal07 9 Nov 2023, 20:30
    #1

    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"
    }

    C 1 Reply Last reply 12 Sept 2023, 05:40
    0
    • K kamal07
      11 Sept 2023, 20:07

      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"
      }

      C Offline
      C Offline
      ChrisW67
      wrote on 12 Sept 2023, 05:40 last edited by
      #2

      @kamal07 Do you have a question?

      1 Reply Last reply
      0

      2/2

      12 Sept 2023, 05:40

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved