Your question is not clear for me, the only thing that I see wrong in your code is that you are missing testCase to access testSuite properties from testRunner, to do so you must use testRunner.testCase.testSuite.name
instead of testRunner.testSuite.name
.
If you are looking for a way to save all testSuite results on a file take a look on this answer
Hope this helps,