Currently I have a requirement where I have to update each Reporter.ReportEvent into QC as a test step with "Step Name","Step Desc","Expected","Actual","Pass/Fail"
I searched the forum and I was able to derive the below code:
Function ReportStepResult(StepNo, StepDesc,Expected, Actual,Status)
If QCUtil.IsConnected Then
If Not(QCUtil.CurrentRun Is Nothing) Then
Set MyStep = qcutil.CurrentRun.StepFactory.AddItem(null
MyStep.Field("ST_STEP_NAME")= "Step "&StepNo
The above code works perfectly fine and each step is reported for the Current run in Test Lab "when I execute the test on clicking the RUN button" in QC test lab.
But in my project , we are launching QTP and executing various test sets using an AOM vbs file. When I execute the test using the AOM vbs file, the above function is not updating.
Can you kindly let me know what change I have to make inorder to make it work properly. I have only 50-60% of knowledge in QC OTA.
As I understand, you are using vbscript to run QTP scripts saved in QC. Could you please let me know if you are running test sets using scheduler or you are reading a test case and executing them one by one using qtpApp.Open and qtpApp.Run.
Yes your understanding is correct. I using a vbs file to execute saved QTP scripts from QC. I am not using a scheduler and as you had mentioned I am reading the test case one by one from an excel file and executing the same test case present in QC.
Hope I have provided the required answers for the queries you had raised.