I'm using the Azure DevOps .NET SDK (v16.530.0-preview) and when I try to create a test run using CreateTestRunAsync
(in TestManagementHttpClient
) and use the RunCreateModel
object as a parameter, it looks like the RunCreateModel
's State
property is read-only. The docs also confirm this.
TestApi.RunCreateModel run = new TestApi.RunCreateModel
{
Name = testRun.Name
//State = testRun.State (is read-only)
};
But the weirdness is that when creating the run, the UI shows In Progress
then it shows the test run running for {x hours, minutes, sec}.
Is there a way I can avoid this and set the state as NotStarted
?