Micro Focus QTP (UFT) Forums
Reporter unable to load results when objects are involved? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Reporter unable to load results when objects are involved? (/Thread-Reporter-unable-to-load-results-when-objects-are-involved)



Reporter unable to load results when objects are involved? - Elimelech.Eli - 05-28-2014

Hi everyone. I have been using QTP for a long while but this is a first to me..

I'm automating a web based application and everything works, except for the reporter!
when I'm trying to open the report after the run (from within QTP, using the result viewer, just the xml.. whatever) I'm getting "Could not load run result"

I was trying several different things, but I can't figure this out.
here is the info i have:

while trying this:
Code:
If Browser("Browser").Page("Page").Frame("260266_20").Image("10_1_5").Exist Then
    msgbox "test"
    Reporter.ReportEvent micPass, "Testing", "Test"
End If

I get the msgbox, but not the report.
however, if i'm doing this:
Code:
If True Then
    msgbox "test"
    Reporter.ReportEvent micPass, "Testing", "Test"
End If

I can open the report.
even doing this:
Code:
Browser("Browser").Page("Page").Frame("260266_20").Image("10_1_5").Click

Reporter.ReportEvent micPass, "Testing", "Test"

makes it unable to open the report.
I am grasping at straws here and I really need some help.

thanks in advance! Smile


RE: Reporter unable to load results when objects are involved? - Tarik Sheth - 05-30-2014

Hi Elimelech.Eli,

You can actually handle the case like below.
Code:
myFlag=Browser("Browser").Page("Page").Frame("260266_20").Image("10_1_5").Exist
If myFlag Then
Reporter.ReportEvent micPass, "Testing", "Test"
End If
This should resolve your issue.


RE: Reporter unable to load results when objects are involved? - Elimelech.Eli - 06-01-2014

Hi!

As I explained earlier, it wouldn't work.

the problem isn't that the condition is not met. in fact, I am going into the "IF" statement.
the issue seems to be that once there's interaction with my object, the report just won't load.

I've checked on a regular web object and the reporter works fine, so i have to conclude that the issue is with that specific kind of object.

Does anyone know of any objects that can cause this?