Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recovery scenari issue?
#1
Not Solved
Hi ,
I want to handle security alert in gmail.,i done almost 90% as per understanding ,but some where iam missing ,pls can hav a look and suggest


1.This is my qtp script


Code:
SystemUtil.Run "iexplore.exe","http://www.gmail.com","",open

Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "madhu"

after this EXCEUTION ,will see a security alert dialog box in AUT

In OR ,I added all objects (gmail browser+security alert dilaog objects(DID WE WANT TO CAPTURE THIS OBJECTS ALSO WHILE CREATING RECOVERY SCENARIO)


2.This one is my Function ibrary

Code:
Function Recovery_Found(Object)
win_handle=Browser("Gmail: Email from Google").Dialog("Security Alert").GetROProperty("hwnd")

Set pop_win=Window("hwnd:=" & win_handle)



pop_win.WinButton("text:=OK").Click
End Function

Its saved in the local
.
From Recovery manger ,i did the all steps

Go to Resources->Recovery Scenario Manager...
Recovery Scenario Manager window opens
Click on "New Scenario" icon to open Recovery Scenario Wizard.
Click Next.
From Select Trigger Event, choose Pop-up window. Click Next.
Now when the "Specify Pop-up Window Conditions" area is open, make sure the pop-up window is also open simultaneously with this
"Specify Pop-up Window Conditions" window, so that you can click on the hand icon and then click on pop-up window so as to fill the "Window title" and "Window text contains" fields. Click Next.
Recovery Operations area opens, Click Next.
Choose Recovery Operation as Function Call, click Next.
On the next screen, click on button on the right of "Function Library" dropdown to select the function library we created earlier in local.
Click Next
In the Recovery Operation window uncheck "Add another recovery operation". Click Next.
In the Post-Recovery Test Run Options choose "Stop the test run" radio button. Click Next.
Give the Recovery Scenario a Name and Description and click Next
In the Completing the Recovery Scenario Wizard area check "Add scenario to current test" and click Finish.
In the Recovery Scenario Manager window you will see one scenario added in the scenarios area.
Click Close and save the Recovery Scenario.


Regards

Madhu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,282 08-13-2013, 08:37 PM
Last Post: excellentpawan
  Recovery scenarion issue 1981.madhu@gmail.com 0 2,109 12-30-2009, 12:32 PM
Last Post: 1981.madhu@gmail.com
  recovery elsekra 0 1,321 12-19-2008, 12:34 AM
Last Post: elsekra

Forum Jump:


Users browsing this thread: 1 Guest(s)