My requirement is that I have 10 steps in a test. Each step has status passed and 'Description' coming from ReportEvent of QTP.
I want to update 'Expected' and 'Actual' result for each step in the 'Test Lab'.
I am facing one problem while trying to update actual and expected result in QC after running the script from QTP.
I have checked the forum and saw many threads dealing with updating QC result. But I am not able to get the test steps which no one seem to have encountered.
This is my script
Dim currentRun, allSteps, i, runStep2
Set currentRun = QCUtil.CurrentRun
Set allSteps = currentRun.StepFactory.NewList("")
msgbox allSteps.count ==> Always returns zero
For Each Item In allSteps
Set runStep2 = Item
runStep2.Field("ST_ACTUAL") = "ACTUAL"
runStep2.Field("ST_EXPECTED") = "EXPECTED"
I tried adding the line "currentRun.CopyDesignSteps", but this copies a new step and reads that step.