Hi,

You can use the reporter event for this scenario
It should be like...

If
Browser("Browsername").Page("pagename").Frame("framename").Image("imagename").Exist
   reporter.ReportEvent micPass, "Status Message", "Image is displayed"
  else Reporter.ReportEvent micFail, "Status Message", "Image is not
displayed"
 End if
reporter.reportEvent will update the test run result for the object "Image"
based on the message you will provide (in the above mentioned example, its,
"Image is Displayed"/ "Image is not displayed")

Please try this, i hope it should work.


Regards,
Seema

On Tue, Sep 9, 2008 at 11:52 PM, Roman Zilber <[EMAIL PROTECTED]> wrote:

> Well... you need to replace "passed" and "failed" by valid vbscript code.
>
>
> On Tue, Sep 9, 2008 at 1:26 PM, Newbie <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi, thanks for your response.
>> I tried couple of times and still getting syntax error message
>>
>> Scripts:
>> If
>>
>> Browser("Browsername").Page("pagename").Frame("framename").Image("imagename").Exist
>> Then passed else failed End If
>>
>> Do you have any idea?
>>
>>
>>
>> On Sep 8, 10:41 pm, "Roman Zilber" <[EMAIL PROTECTED]> wrote:
>> > > Tried bitmap and standard checkpoint, not too good.
>> >
>> > why?
>> >
>> > If ....Image().Exist Then
>> >    passed
>> > else
>> >    failed
>> > End if
>> >
>>  > On Mon, Sep 8, 2008 at 11:26 AM, Newbie <[EMAIL PROTECTED]> wrote:
>> >
>> > > Hi,
>> > > Encounter issue on verifying image being displayed properly.
>> > > What checkpoint is the best to be use?
>> > > Tried bitmap and standard checkpoint, not too good.
>> > > Just want to make sure it's displayed.
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To post to this group, send email to MercuryQTP@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to