| || |
Doubt in DefaultTestCaseExit Function
I had implemented the foll below code to just update an file with the contents (testcase name - passed or failed).
[-] DefaultTestCaseExit (BOOLEAN bException)
[-] if (bException)
[ ] ExceptLog ()
[ ] STRING gettest = GetTestCaseName()
[ ] STRING sPath = "c:\results.txt"
[ ] STRING ps = " has passed"
[ ] string prtest = gettest + ps
[-] if (SYS_FileExists(sPath))
[ ] HANDLE hfile
[ ] BOOLEAN bDidRead
[ ] hfile = FileOpen(sPath,FM_APPEND)
[ ] FileWriteLine(hfile,prtest)
[ ] @"Browser".WaitForReady ()
[ ] except
The file does gets some updation..but in an weird manner ...ie..instead of printing all the testcase names along with their pass / fail results it has printed only the last testcase name....why is it so??
Have i gone wrong anywhere in my code???
Help me out anyone?
Re: Doubt in DefaultTestCaseExit Function
After FileWriteLine.... add the line: