0
  <test-case 
       name="Fiserv.QA.NewUI.Settings.ChangeAddressTelephoneNumber.ChangeAddress.Workflow.ChangeAddressTelephoneNumberTests.ChangeAddressFuncationality" 
       executed="True" 
       result="Success" 
       success="True" 
       time="102.315" 
       asserts="14">

我试过这个

 dr[0] = node.SelectSingleNode("properties/property").Attributes["value"].Value;
 dr[1] = node.Attributes["name"].Value;
 dr[2] = node.Attributes["success"].Value;

但它无法找到成功属性值,同时它无法正确获取名称。我想获取成功值。谁能告诉我?

4

1 回答 1

1
xml.Descendants("test-case").Select(e => e.Attribute("success").Value).ToList()

尝试类似上面的东西

于 2013-11-14T06:38:42.113 回答