How do you get the run status of the current iteration?
I need to do reporting on the run status of every iteration at runtime. At the end of the iteration, the reporting function will be called which get the status of the current iteration, and not the test.
The Reporter.RunStatus does not work, as it gives the status of the run session. As well as the QCUtil.CurrentRun
We dont' want to export the run results every time manually.
I haven't done this for a while, but I seem to recall finding nothing that could do this in version 8.x back when I worked with that version, and I haven't seen or heard of new features to handle it.
So we handled it by creating a variable such as blnIterationPass and setting it to True at the start of the iteration. Then each time we did a checkpoint (well, we used GetROProperties and Reporter.ReportEvents instead of checkpoints) we would set the iteration status to False if the checkpoint failed.
We also had another variable that we initialized as "" and whenever we set blnIterationPass to False we also set the other variable to add the name of the failed test case, so at the end of the iteration, this one variable had the names of each failed test case and would spit it out to the Test Log.
strFailedCases = strFailedCases & "Test that failed" & vbCr