我有這個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可能是最好的解決方案。當您遇到*特定*問題時提出問題。 –