I have an unusual request that I haven't come accross before so seeking a bit of advice on whether this can be done.
There are a group of QTP scripts stored in Quality center that cannot be passed until results are verified in a security log. The issue is the log is not available real time so I cannot access it in the script to verify results. The log is available the next day in the form of an access database.
What I'm trying to work out how to do is during running these test I need to get the QC test run id somehow then set the run results to Not Completed then after running a seperate test the next day I can then update this run id with either a pass or fail.
My plan is to export all the information I need to verify in the security log out to an excel file then write some code to verify against the access database. This bit I should be able to do its the updating of the QC run that I need some help with
Try using the QCUtil object.
Something like the following might work
Set Run_Filter = QCUtil.QCConnection.RunFactory.Filter
Run_Filter.Filter("RN_EXECUTION_DATE") = "[Yesterday]"
Set Filtered_Runs = Run_Filter.NewList
For Each Single_Run in Filtered_Runs
Single_Run.Status = "Not Completed"
Of course you might want to filter on other criteria. Check out the project entities for fields you want to use in your filter (need to be QCAdmin to view these, but you can always work around that by using code)
No sense bein' a grifter if it's the same as being a citizen.