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.

Recovery Scenario isn't working for other users, it’s working who is created

This is a discussion on Recovery Scenario isn't working for other users, it’s working who is created within the QTP forums, part of the Software Testing category; Hi all, i have created recovery scenario for 'security alert dialog' with descriptive programming. It is working perfectly for the user from which it is created, but not working for ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 04-18-2008
Junior Member
 
Join Date: Dec 2007
Location: Pune
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
vishwasb is on a distinguished road
Recovery Scenario isn't working for other users, it’s working who is created

Hi all, i have created recovery scenario for 'security alert dialog' with descriptive programming. It is working perfectly for the user from which it is created, but not working for other users. I have verified that 'recovery scenario' is added for other users and when i verify in the below code to see recovery scenario status it is showing 'true', but recovery scenario not handling 'security alert dialog' for other user. Please put some lights on this, if you have implemented recovery scenario in such situation. Could you please help me on this? thanks in advance, vishwas i am attaching the 'recovery function'. Msgbox recovery.count,, "number of recovery scenarios" msgbox recovery,, "is recovery enabled?" for iter = 1 to recovery.count recovery.getscenarioname iter, scenariofile, scenarioname position = recovery.getscenarioposition( scenariofile, scenarioname ) msgbox recovery.getscenariostatus( position ),, "is scenario " & _ scenarioname & " from " & scenariofile & " enabled ?" next '--------------------- recovery function -------------------------- function recoveryfunction(object) dim obrowser, obj_desc, obj_desc1 set obrowser = browser("micclass:=browser") set obj_desc = description.create obj_desc("micclass").value= "dialog" obj_desc("nativeclass").value= "#32770" obj_desc("text").value = "security alert" if browser(obrowser).dialog(obj_desc).exist then docustomreport micpass, "security alert dialog", "'security alert' dialog apearing on current page" browser(obrowser).dialog(obj_desc).activate docustomreport micpass, "security alert dialog", "'security alert' dialog activated" set obj_desc1 = description.create obj_desc1("micclass").value= "winbutton" obj_desc1("nativeclass").value= "button" obj_desc1("text").value = "&yes" if browser(obrowser).dialog(obj_desc).winbutton(obj_desc1).exist then docustomreport micpass, "security alert dialog", "'yes' button found on 'security alert' dialog box" browser(obrowser).dialog(obj_desc).winbutton(obj_desc1).click if browser(obrowser).dialog(obj_desc).exist then docustomreport micfail, "security alert dialog", "'security alert' dialog still apearing current page or not able to handle 'security alert' dialog box" else docustomreport micpass, "security alert dialog", "'security alert' dialog box closed" end if else docustomreport micfail, "security alert dialog", "'yes' not button found on 'security alert' dialog box" end if else docustomreport micpass, "security alert dialog", "'security alert' dialog not found or not able to handle 'security alert' dialog box" end if end function
Reply With Quote
Sponsored Links
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
When do we use the recovery scenario manager in the QTP Geek_Guest QTP 2 06-26-2008 03:32 AM
What is post recovery scenario? suneetham QTP 3 03-27-2008 12:38 PM
Concept of Recovery Scenario Manager j_madhuri QTP 2 09-25-2007 04:09 AM
Recovery Scenario sutnarcha WinRunner 5 06-07-2007 04:05 AM
Does default constructors gets created in all scenario RyanJames C and C++ 1 07-12-2006 05:34 PM


All times are GMT -4. The time now is 03:10 PM.


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