Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reporter unable to load results when objects are involved?
#1
Not Solved
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
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Load testing in QTP newqtp 4 7,296 01-24-2019, 11:32 AM
Last Post: sonali31
  Unable to recognize objects in SilverLight application through QTP Guest877 1 2,657 08-03-2018, 08:33 AM
Last Post: Manisha
  UFT unable to identify Java app objects consistently lester 1 2,029 07-12-2018, 08:28 PM
Last Post: Ankur
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,805 08-20-2015, 11:39 PM
Last Post: ADITI1992
  QTP 11 Flex 4.5 Unable to Identify Objects krishiyers 1 3,793 12-24-2014, 12:39 PM
Last Post: vds.vipul

Forum Jump:


Users browsing this thread: 1 Guest(s)