|
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
|