I have problem during running recorded test in WebUi Test Studio QA Edition. When I running previously recorded test after executing few steps i get following message: "Are you sure you want to navigate away from this page? Leaving or refreshing this page can result in date loss. Press OK to continue, or Cancel to stay on the current page."
This message doesn't appear during recording test, but always appears after running tests. Does somebody know how to avoid appearing of this message? This message appears when user reload current page or want to close tab or browser, but I didn't do any of these two actions during recording test.
Thanks in advance...
Tony
8 Answers, 1 is accepted
Thanks for the post and screenshot. I've seen this typically when a test is run and the browser is closed without the test doing an explicit log out or save for the information filled out during the test run.
Could you try recording the log off or save sequence in the test to see if the dialog is still thrown?
Regards,
Nelson Sin
the Telerik team
I'm not quite sure that I understand your answer. You said in your answer that problem was in browser, because browser was closed, I recorded test with open browser but, i still get the same message. I can't record logout (log off) from my tested application because there is no logout. I think I know what is the problem, but I don't know how to resolve it. My tested application uses Telerik RadControls (Popup Manager and RadWindow) for Silverlight and when I choose something from application menu after that opens new window and WebUI "understand" that user leave current window. What should be done that WebUI still considers that it is in the same window during running tests?
I'm not sure if the popups can cause such issue but before we step into that possibility can you also please check and follow the browser setup described in the documentation here for IE and here for Firefox and see if everything is correctly set up? I'm mainly concerned about the Trusted sites where you may need to add your URL of the application under test in order to let the browser trust it during automation.
Sincerely yours,
Konstantin Petkov
the Telerik team
I have checked my settings in IE 8 and FF 3.5.10 and everything is in both browsers set as described in guide ("Configuring Internet Explorer 7 or 8 for WebAii Automation and Configuring Firefox 2.x and 3.x for WebAii Automation"), maybe problem persist because I run WebUI on Windows 7 x64 bit, although, even I set up FF 3.5.10 I have never run recording or executing recorded test in FireFox, when I run recorded test in FF I get this window, (please see attached picture).
If you can please try disabling all the Add-Ons in IE besides the following:
Name WebUI TestStudio Recorder
Publisher Control name is not available
Status Enabled
Version 4.0.31106.0
Load time 0.01 s
Name WebAii Test Execution Extension
Publisher Control name is not available
Status Enabled
Version 4.0.31106.0
Load time 0.10 s
You may need to keep the 'Discuss' Add On enabled also.
For Firefox, please only have the WebAii 2.1 Automation Infrastructure Add On enabled.
Please try running the tests after trying the above.
All the best,
Nelson
the Telerik team
I apologize for not asking this sooner, but just wanted to check back to see if you are still having problems with Firefox test playback and any further problems recording or playing back in IE.
All the best,
Nelson
the Telerik team
My working configuration:
- Windows 7 32bit
- Firefox 3.6.8
- Firebug 1.5.4 Add-In (enabled)
- Java Console 6.0.11 Add-In (enabled)
- FiddlerHook 2.2.9.4 Add-In (enabled)
- Page Speed 1.8.3 Add-In (DISABLED)
- WebAii Automation Infrastructure 2010.2 Add-In (enabled)
- Visual Studio 2008 SP1
- Firefox configured with instruction at http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=configurefirefox2x3x
Thanks for posting this info. I've logged a bug for investigation.
Sincerely yours,
Konstantin Petkov
the Telerik team