/// <summary> /// Create new Test Run. /// </summary> /// <returns>Task.</returns> private static async Task CreateNewTestRunsAsync() { for (var i = 0; i < TestCasesByPlanId.Count; i++) { var testPlanId = TestCasesByPlanId[i].Select(x => int.Parse(x.TestPlanId)).FirstOrDefault(); NewTestRunIds.Add((await AzureDevOpsUtility.CreateNewTestRunAsync(tr, testPlanId, TestPointIds[testPlanId.ToString()].ToArray()).ConfigureAwait(false)).SelectToken("id").ToString()); } }
/// <summary> /// Create new Test Run. /// </summary> /// <returns>Task.</returns> private static async Task CreateNewTestRunsAsync() { Tr = new TestRun { name = $"ManualTestRun_{DateTime.Now}", Times = new TestRunTimes { start = DateTime.Now, finish = DateTime.Now.AddHours(1) } }; for (var i = 0; i < TestCasesByPlanId.Count; i++) { var testPlanId = TestCasesByPlanId[i].Select(x => int.Parse(x.TestPlanId)).FirstOrDefault(); NewTestRunIds.Add((await AzureDevOpsUtility.CreateNewTestRunAsync(Tr, testPlanId, TestPointIds[testPlanId.ToString()].ToArray(), false).ConfigureAwait(false)).SelectToken("id").ToString()); } }