This question is very similar to this post however I am trying to identify the specific id of the test result during the execution of the test. This is so that I can mark the screen shot with the specific id and attach it to the test run result after the execution. (This is, in turn, because the REST API does not return any results until the execution is complete.)
I am looking for a way to get the id's of the individually highlighted items during their execution:
Currently, I retrieve id's such as the release id during its execution like this:
Environment.GetEnvironmentVariable("RELEASE_RELEASEID")
But I do not know how to get information about the tests at that time.