Automatically updating fields in runs
This is a guide showing how to update fields in runs from automated test equipment or analysis workflows.
Get the fields
First thing you want to do is get the fields that exist in the run(s) you're trying to update:
This will return a list of steps within that run, and the fields within those steps. Find the field that you want to update. From the example response (Response tab) above, let's say we want to updated field 1462
because our test equipment is able to determine pass/fail easily. Here's the query you'll use:
What does this include? Because we're updating data, this is a mutation
. The mutation we're using is called updateRunStepFieldValue
. The id of the field is 1462
and the value we're setting is true
. And finally, we'll include the etag
of the original field. The etag
prevent accidental data overwrites by enforcing concurrency control. After running the mutation, we'll get back the id and the updated value of the field in the response.
Last updated