Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How To handle Page cannot be displayed error

This is a discussion on How To handle Page cannot be displayed error within the QTP forums, part of the Software Testing category; Hi All, while running my QTP Scripts sometimes my application does not come up and IE Page displayes as Page cannot be displayed. It is not exactly Server crash for ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-16-2008
Junior Member
 
Join Date: Jun 2008
Location: Bangalore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sunil.betageri is on a distinguished road
Question How To handle Page cannot be displayed error

Hi All,
while running my QTP Scripts sometimes my application does not come up and IE Page displayes as Page cannot be displayed.
It is not exactly Server crash for which i can use Exceptional handling.

I would like my script to restart or i want it to stop and display me a message in results.
How can i handle this?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-18-2008
Junior Member
 
Join Date: Feb 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Gaurang033 is on a distinguished road
Re: How To handle Page cannot be displayed error

Quote:
Originally Posted by sunil.betageri View Post
Hi All,
while running my QTP Scripts sometimes my application does not come up and IE Page displayes as Page cannot be displayed.
It is not exactly Server crash for which i can use Exceptional handling.

I would like my script to restart or i want it to stop and display me a message in results.
How can i handle this?
Use the recovery scenario such that it idntifies the page. And in the action write what ever you want..

If you want to stop the test make the function and write down ExitTest

Hope this will work.... Tell me if it works
Reply With Quote
  #3 (permalink)  
Old 06-23-2008
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: How To handle Page cannot be displayed error

Browser("[ABC]").Page("[ABC1]").Sync
IF NOT Browser("[ABC]").Page("[ABC1]").WebEdit("txtbox").Exist THEN
Reporter.ReportEvent(micFail,"Page1","Page cannot be displayed.")
END IF

-Here I have used WebEdit("txtbox"). You can use any web object that gets displayed on the page by default.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
The results of the last test alone is displayed aarthi_28 QTP 4 04-22-2008 12:42 PM
Verify that this objects properties match an object currently displayed workhomes QTP 2 12-21-2007 02:41 AM
Invoke JSP error page from servlet jayalakshmic JSP 3 08-15-2007 06:31 AM
What should i do to rectify ERROR ON PAGE problem Geek_Guest QTP 1 07-18-2007 06:49 AM
Print icons are not displayed in run mode Santhana KrishnaN ASP.NET 0 06-19-2007 02:57 AM


All times are GMT -4. The time now is 01:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved