| || |
Updating Quality center Run Status
When executing a QTP script from a QC test set under certain conditions I want the status to show as 'Not Completed' in QC instead of Passed or Failed. This is because there is some verification outside of QTP that need to be completed before the test can be passed. (ie accessing a different system).
From what I can tell is the RunStatus is updated after the script has finished running and is a pass or fail depending on the ReportEvents created throughout the script.
I could write a script which can run after the scripts have finished and updated the Status to 'Not Completed' for example runItem.Status = "Not Completed" but this would mean another step in the process. Ideally I would want QTP to update the status to 'Not Completed' during the script. Is this possible?
Any feedback or alternative ways to achieve this would be very appreciated
Re: Updating Quality center Run Status
have u tried using OTA ...use the below pseudo code..code might not be exact
Set QCConnection = CreateObject("TDApiOle80.TDConnection")
Set objTest = QCConnection
Set td_RunFactory = objTest.RunFactory
Set obj_theRun = td_RunFactory.AddItem(CStr("TestV"))
obj_theRun.Status = "Not Completed"