我有这个XML文件,其中我需要特定标记的值。我正在使用testcomplete作为工具并使用c#脚本将其编码。有关如何执行此操作的任何建议?在testcomplete中搜索特定属性值的xml文件
1
A
回答
1
要使用XML文件的工作在TestComplete,你可以使用下列对象:
XML DOM objects. You can use these objects to work with any XML file. Working with these objects requires more efforts and knowledge of XML DOM. However, we suggest that you use these objects to work with XML files.
TestComplete’s Storages object. You use the methods and properties of this object to write data to and read it from XML files. However, this object works only with XML files created with the Storage.XML method (such files have a specific format, they include sections, subsections and options). For more information on this, see Section Object. If you try to open an XML file that has another format by using the Storage.XML method, an error will occur.
0
好,TestComplete附带有也可online一个非常有用的帮助文件。例如,Working With XML Files From Scripts主题解释了如何以几种方式用示例解决您的任务。
相关问题
- 1. 搜索特定的XML元素的属性值
- 2. 在xml中搜索属性
- 3. 如何搜索XML中的特定属性以检索另一个属性?
- 4. XML属性搜索的Python
- 5. 搜索特定HTML标记中的属性值
- 6. 试图从XML属性的特定值
- 7. VIM搜索 - FuzzyFinder搜索特定文件
- 8. 我可以搜索在多值属性中只有*特定值的条目吗?
- 9. 在XML文件中搜索特定产品ID
- 10. 搜索具有特定值的属性的JavaScript对象?
- 11. CoffeeScript的:搜索具有特定属性值的对象
- 12. 在xml中搜索特定节点
- 13. 如何在XML文件中多次查找特定属性?
- 14. 在SharePoint用户配置文件中搜索自定义属性
- 15. 搜索xml文件中的特定值并获取整个块c#
- 16. XML属性值中的特殊字符
- 17. 如何在特定文件夹中使用powershell数组搜索xml文件
- 18. 问ThinkingSphinx不要在特定属性中搜索
- 19. 使用Algolia在特定属性(列)中搜索
- 20. 对PowerShell中属性值的XPath搜索
- 21. 从XML属性检索值
- 22. 如何解析XML文件中的特定属性名称?
- 23. 如何列出从XML文件中的特定属性
- 24. 搜索XML文件
- 25. 搜索csv存储在html属性中的给定值
- 26. 命令行搜索所有html文件,检索属性值
- 27. 在数据表中搜索特定值
- 28. 在单元格中搜索特定值
- 29. 在字符串中搜索特定值
- 30. 在Oracle列中搜索特定值
把*一些*努力英寸只是谷歌搜索“C#xml获取元素的价值”将得到大量的结果 - LINQ到XML可能是最好的解决方案。当您遇到*特定*问题时提出问题。 –