Forum Discussion
We can get the xml result only when we run though command line . So I assume , we cannot export part of the log file which I was trying.
Thank you for the response
You can get an xml log from inside a test
XML
You can also export test results to an XML format file from tests by using the Log.SaveResultsAs
method:
Log.SaveResultsAs("C:\\Work\\Log\\Log.xml", lsXML);
- rajulapati3 years agoContributor
Thank you Marsha_R I was able to export it to xml format. When I try to remove the child nodes in xml, the log messages that were generated below it are all deleted from result file. Ex: if I tried to remove all the child nodes of Folder 0, I dont see log messages generated after Folder 0.
I tried manually deleting the nodes from the xml file and see the same issue.
Is my approach correct or do I need to do something different?
Attached is the xml file for reference.
- Marsha_R3 years agoChampion Level 3
I have not done this myself, but what others have described is parsing the xml to extract the information you need and putting it in a document of your own format.
AlexKaras Do you know how to build a report like this?
- rajulapati3 years agoContributor
Thank you Marsha_R I will try to create my Own result and see if it works
Related Content
- 12 months agolalit_singh
- 6 months agosohailalam2696
- 2 years agomattb
- 2 years agomattb
- 2 years agoBlatchis
Recent Discussions
- 4 minutes agoashly