Implemented to write test result summary to a txt file.

Implemented to write test result summary to a txt file for integrating with PSF.