Write values of each iteration to file
Posted: Tue May 10, 2011 11:23 am
I do have an iteration running, which generates a specific ID at the end of the testcase. Now I would like to write these ID's to a file as they will be used for further testcases.
I thought that would be easy possible using a StreamWriter and write them to a file. Opening the File is not a big Deal... I thought I could do this by using a Setup in the Testsuite, opening the file and generating the StreamWriter. Now the question is, how do I pass the StreamWriter to my Recording? and how can I pass the StreaWriter then to the Teardown Script which should close it?
I thought that would be easy possible using a StreamWriter and write them to a file. Opening the File is not a big Deal... I thought I could do this by using a Setup in the Testsuite, opening the file and generating the StreamWriter. Now the question is, how do I pass the StreamWriter to my Recording? and how can I pass the StreaWriter then to the Teardown Script which should close it?