Implemented to write test result summary to a txt file.