Example #1
0
        public async Task <Dictionary <string, string> > GetResults(string project, string runId)
        {
            try
            {
                string testResult = await _tfsRequest.GetTestResult(project, runId);

                JObject projectsJObject = JObject.Parse(testResult);
                Dictionary <string, string> testCaseIdResultIds =
                    projectsJObject.SelectToken("value").
                    ToDictionary(p => p["testCase"]["id"].ToString(), p => p["id"].ToString());
                return(testCaseIdResultIds);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }