use the below function....instead of sync

Function  fPageCheck (Objcheck,intCounter)

  BoolStatus = False
  Flag = 0
  Do
   Flag = Flag+1
   If Objcheck.Exist(2) Then
    BoolStatus = True
   Else
    If Flag = intCounter Then
     Exit Do
    End If
   End If
  Loop Until BoolStatus = True
 fPageCheck = BoolStatus

End Function



On Thu, Oct 8, 2009 at 10:24 PM, Nimmi <[email protected]> wrote:

> Hi Sreedhar,
>    Thanks for replying.Would be great if you can briefly explain the
> structure of such a function.
>    Is that the only way out?
>  Am new to the group.
>
>  On Thu, Oct 8, 2009 at 7:50 PM, Sreedhar Mallipeddi <
> [email protected]> wrote:
>
>>  if u feel that using sync is generating Done in ur reporter event..then
>> instead of sync u can create a function where it will check the existence of
>> the object ..
>>
>>
>>
>>   On Thu, Oct 8, 2009 at 9:19 PM, Nimmi <[email protected]> wrote:
>>
>>>   Hi all,
>>>  Am trying to figure out how to generate a custom report.
>>>  Issue: I would like to generate a report with only Pass,Fail and
>>> Warnings.I don't want a 'Done' status in my reports.
>>>
>>> Now, am getting a report with a lot of 'Done' status in it.
>>> From my understanding this is because I use some 'Sync' and 'Exist' in my
>>> functions.
>>> I know there is the Reporter.Filter but I cannot filter 'Done' status
>>> using it.
>>>
>>> Would like to know a few things regarding reports:
>>> 1] Is there an external tool that I can use along with QTP, for
>>> generating custom reports?
>>>
>>> 2]Is it possible to disable 'Done' status  by using VBScript or any other
>>> method?
>>> 3]Is it possible to use an alternative for Sync/Exist/Wait with a simple
>>> VBScript?
>>>
>>> Can you please help me?
>>>
>>>
>>>
>>>
>>> --
>>> Mallipeddi Sreedhar
>>> 91-9000994721
>>>
>>>
>>>
>
> >
>


-- 
Mallipeddi Sreedhar
91-9000994721

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
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