You can handle known exceptions with code... by writing VBS script. If
there is any unknown exceptions come, we can use QTP in build Recovery
scenarios...
As an example.
Browser("google").Page("google").webedit("q").set "asdfasdf"
If you want to see whether Google browser exists or not... then you can use
the code
If Browser("google").exist then
{scenario for true}
else
{scenario for failed}
end if
This is just an example or another way of one way of handling exceptions..
On Thu, Mar 19, 2009 at 2:59 PM, karthik vellur <[email protected]>wrote:
> hey hi.
>
> could you understand my question ?
>
> Can you specify anything on the exception handling which i was specifying
> to you.
>
> Please reply
>
> Thanks
>
> Karthik V
>
>
> On Sun, Mar 15, 2009 at 12:07 PM, karthik vellur <[email protected]>wrote:
>
>> okay ........ as far is know exception handling done using recovery
>> manager is done on specific objects. for e.g.: test run error. while
>> handling this exception u would define the recovery scenario on a specific
>> object by selecting the object on which the scenario is defined.
>>
>> my intention is tht i want have to have a piece of code where in can
>> handle the exceptions of such kind on not only one specific object but for
>> all kinds of objects that would occur under AUT.
>>
>> can u please help me out in this manner.
>>
>> Thanks
>> Karthik V
>>
>>
>> On Fri, Mar 13, 2009 at 8:25 PM, Roman Zilber <[email protected]> wrote:
>>
>>> Can you clear explain what kind of "Exception handling can be written in
>>> a generalised manner" you expect?
>>>
>>> 1. What happen on AUT
>>> 2. Reaction form your homemade exception handling
>>>
>>>
>>> On Fri, Mar 13, 2009 at 10:37 AM, kart <[email protected]> wrote:
>>>
>>>>
>>>> Hi
>>>>
>>>> I am new to QTP.
>>>>
>>>> I have a task assigned to me where in have to Handle the exceptions
>>>> without using the Recovery Scenario Manager.
>>>>
>>>> The reason behind not using Recovery Manager is that so what ever code
>>>> is developed for Exception handling can be written in a generalised
>>>> manner, where as using Recovery Scenario Manager will make the
>>>> exceptions very specific to a particular exception.
>>>>
>>>> Please suggest me some ideas.
>>>>
>>>> Thanks,
>>>>
>>>> Karthik V
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>
> >
>
--
With Regards
Srinivas P
Contact Numbers
0091-9849466927 (Mobile Hyderabad)
0091-40-24060750 (Resi)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---