i meant, this code will not work unless I ran QTP through QC. Is there a way around it? Working with QC is too slow, and I'm just developing the script.
Set NumFailed = QCUtil.CurrentRun.StepFactory.NewList("Select * FROM STEP WHERE ST_STATUS='Failed' AND ST_USER_01='For Reports' AND ST_RUN_ID=1714")
You can open the test in QTP from QC and during run select to save the run results in QC.
- Czar [img]/images/graemlins/smile.gif[/img]
Im doing that right now. What I wanted to find out is if there's a away to run this line just being connected to QC but not running QTP through QC.
Its only possible using QC APIs. Read QC OTA help file.
You should find a way to figure out the most recent test run and then apply the rest of the code.
<most recent test run object>.StepFactory.NewList("Select * FROM STEP WHERE ST_STATUS='Failed' AND ST_USER_01='For Reports' AND ST_RUN_ID=1714")