private void getRemarksInfo() { vm.TestDescriptionList.Clear(); try { XElement rooEl = XElement.Load(@"./configfiles/RemarksInfo.xml"); var xmlTestDescriptionList = rooEl.Elements("TestDescription"); foreach (var testDescription in xmlTestDescriptionList) { TestDescription desp = new TestDescription(); desp.DescType = TestStepFactory.GetAttibute(testDescription, "type"); desp.DescName = TestStepFactory.GetAttibute(testDescription, "displayName"); desp.DescValue = TestStepFactory.GetAttibute(testDescription, "value"); string source = TestStepFactory.GetAttibute(testDescription, "source"); if (!string.IsNullOrWhiteSpace(source)) { desp.DescSource = source.Split(',').ToList(); } vm.TestDescriptionList.Add(desp); } getRemarksUserControl(); } catch (Exception ex) { DataUtils.LOGINFO.WriteError(ex.Message + Environment.NewLine + ex.StackTrace + Environment.NewLine + ex.Source); } }