To install the PSR data collector into Visual Studio, download and build this project. Copy PSRDataCollector.dll to %VSINSTALLDIR%\Common7\IDE\PrivateAssemblies\DataCollectors.
To enable PSR data collection, open test settings from Solution Explorer in your CodedUI test and enable ‘Problem Screen Recorder’ under the ‘Data and Diagnostics’ tab.
Run your CodedUI test again and let it fail. Wait for the test run session to complete. Now, you will find the PSR report and final screenshot attached to the test report.
Debugging automated UI tests just got a whole lot easier!
To enable PSR data collection, open test settings from Solution Explorer in your CodedUI test and enable ‘Problem Screen Recorder’ under the ‘Data and Diagnostics’ tab.
Run your CodedUI test again and let it fail. Wait for the test run session to complete. Now, you will find the PSR report and final screenshot attached to the test report.
Debugging automated UI tests just got a whole lot easier!