Exporting test results to XML

How to export a detailed test results report to an XML file.

Choose one of the following two methods to export test results to XML: