I have the function below which updates the actual result and status of each step however the actual test run always shows as passed even if one of the steps have Failed. I'm accessing the QC OTA via QTP. Does anyone know how I can update the run status during a QTP Run. I have tried QCUtil.CurrentRun.Status = "Failed" which seems to change the status to 'Failed' during the run however when it finishes the status reverts back to Passed
If QCUtil.CurrentRun Is Nothing Then
A simple way to get the status of a test instance to be set to Fail at the conclusion of an execution of that test instance is to ensure a Step of the Run gets a status of Fail. You can do this by using the Reporter.ReportEvent method with a status of micFail.