Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

How to add comment only to test with API?


#1

On web UI, I can use button ‘Add comment’ to add comment directly to test. This added comment can be found by API as a comment only result. But seems I can add comment only to test with API. It will say:
error": "Field :custom_hw_version_pmp is a required field."

Following is result info added by web button:
{
“id”: 7537,
“test_id”: 115589,
“status_id”: null,
“created_by”: 28,
“created_on”: 1532067421,
“assignedto_id”: null,
“comment”: “try comment action.”,
“version”: null,
“elapsed”: null,
“defects”: null,
“custom_step_results”: null,
“custom_hw_version_pmp”: null,
“custom_fw_version_pmp_iot”: null,
“custom_testbed_results”: null,
“custom_testrun_method”: null,
“custom_hw_version_ptwop”: null,
“custom_fw_version_ptwp_iot”: null,
“custom_baseline”: null,
“custom_traffic_tool”: null
}

add_button