SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Location
    India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Errror handling in QTP

    Hi guys,

    Sorry for the barrage of questions am putting across. But can't help it.I want to ask how many different ways we can handle error generated during the test run. I mean i want someone to put me across the Error hadling methods in QTP.

    Regards
    Surendra

  2. #2
    Member
    Join Date
    Dec 2001
    Location
    Philadelphia, PA
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Errror handling in QTP

    There are several ways to catch errors. They each depend on the type of error. Thare application errors, OS errors, netowrk errors, script errors, error trapping on function calls. What kind of errors do you want to catch? They all usually involve and if...then statement where you actually have to test for the error.
    Christopher Emerson

    qatips.blogspot.com

  3. #3
    Member
    Join Date
    Dec 2001
    Location
    Philadelphia, PA
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Errror handling in QTP

    Just thought of something else... If you are using a current version of (QTP 6.5 or higher) then read up on Rcovery Scenarios. You can create progressively more comprehensive error handlers, like if a button click fails to clear an error box then reboot the machine and restart the test.
    Christopher Emerson

    qatips.blogspot.com

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Location
    india
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Errror handling in QTP

    I have to find the OS versionband the name of the OS through QTP. so how can i get on runtime .

  5. #5
    Senior Member
    Join Date
    Feb 2005
    Location
    Northern Ireland
    Posts
    529
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Errror handling in QTP

    Please don't Hijack irrelevant threads. You stand more chane of getting your question answered with a new thread. Anyways try the code below:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">myOS = Environment(&quot;OS&quot
    myOSVersion = Environment(&quot;OSVersion&quot</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    I'm not a complete idiot - some parts are missing.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:21 AM.

Copyright BetaSoft Inc.