When recording, how do I get the recorder to record actions taken in a modal popup dialog?
Thanks
/Joakim
20 Answers, 1 is accepted
It's supposed to happen automatically. There isn't anything special you need to do for actions to be recorded in an IE modal popup window. When the popup first opens while recording you should get a dialog prompt asking you if you want to automate the popup. Do you get this prompt? When you answer Yes, all actions on that popup are supposed to be recorded. Is there anything different or really unusual about this popup that we need to know about?
Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I did not get any prompt to automate my popup.
The popup is created using showmodalpopup() I believe.
/Joakim
I should have tested it before my last response. It turns out we have a regression bug. This feature is no longer working as it should. Thank you for reporting this issue! We'll get it fixed ASAP.
I've marked this ticket and will update it when we have it fixed. Do you want an internal build containing the fix? In the meantime would running an older build that doesn't have this problem be acceptable to you?
Sincerely yours,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
As always thank you for the fast responses.
/Joakim
Great news. We have a build with this regression fixed. You can download the version you need from either of these links:
http://www.telerik.com/download/TestStudio/Telerik.WebUI.TestStudio.QA.2010.1.521.msi
http://www.telerik.com/download/TestStudio/Telerik.WebUI.TestStudio.Dev.2010.1.521.msi
Thank you for your patience as we work to resolve issues like this.Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tried out the new build. I still get no response when recording steps in modal dialogs. And i dont get any prompt asking me to handle the popup or not.
One more thing. Are you having any performance issues when using Windows XP? Everything feels very slow, even the GUI. When testing on Vista the slowness is gone.
Thanks for all the help, must be hard to release a product that is targeted to testers... ;)
/Joakim
I'm not seeing this build on the internal builds page. The page reports:
"No internal builds for WebUI Test Studio Developer Edition 2010.1 518 have been uploaded recently. "
BTW, the 521 build won't install over my 518 build. It wants me to uninstall everything, which is unusual.
Thanks,
Ken
Yes that build was targeted at Joakim specifically.
@Joakim
That is strange. I installed the 5.21 build myself and it's recording just fine for me. Can you open a support ticket on this problem so we can track it better please? Also can we schedule a GoToMeeting where I can look at this problem on your computer?
Kind regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I will try to create an example that illustrates the problem, might take a few days as I am very busy at work this week.
/Joakim
Thanks. I look forward to the sample. Also I must correct myself. When an IE Modal popup window opens, we don't actually prompt if you want to record it. We automatically add a Connect to popup step without prompting and start recording it. We do prompt for non-Modal IE popup windows.
Suman does raise a good question. If this is a Silverlight popup, then we have to treat it very differently. but if it's being opened via showmodalpopup() as you stated earlier, it should be working just fine.
Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
My sub form is a type of ChildWindow as "addForm", I pop up this sub form by addForm.Show()
But WebUI studio seems that can't record action as well as steps after.
Have the way to record this situation by configuration ?
I'm using WebUI studio: WebUI_TestStudio_Developer_2010_2_830_Trial.
Thanks.
My sub form is a type of ChildWindow as "addForm", I pop up this sub form by addForm.Show()
But WebUI studio seems that can't record action as well as steps after.
Have the way to record this situation by configuration ?
I'm using WebUI studio: WebUI_TestStudio_Developer_2010_2_830_Trial.
//
Please help, I need to know Does WebUI_TestStudio support this ?
(My application is a silverlight application)
The ChildWindows are now automatically handled by WebUI Test Studio. Along with the latest release you will only need to install the latest Silverlight v4 update on your end as described on the blogs.
All the best,
Konstantin Petkov
the Telerik team
I am facing similar issue, I am using modal pop-up with Telerik Rad grid control and Test studio is recording the actions but not able to playback the same. This is a kind of showstopper for us. Please let me know how to handle the modal pop-up and its events.
Thanks,
Arvind Dhiman
Is this a Silverlight modal pop up? Test Studio automatically detect them and record actions without any problems.
I recorded a short video as a demonstration.
If you haven't done so already please calibrate your browsers as seen in this article.
In order to help you best please elaborate a bit more on your scenario.
1. Is the pop up the same as in my video?
2. What is the exact issue you are experiencing, give as much as possible information?
3. Please record a short video to show us the issue you are experiencing. Jing is great for this.
4. Please send us the test project and give us a direct access to the application so we can reproduce your issue on our end and give you a working solution.
Hope to hear from you soon.
Boyan Boev
the Telerik team
Test Studio Trainings
Thanks for the reply. I have already calibrated my browsers according to the article as provided by you. Also, the modal pop-up that we are using is not of silverlight. I can not provide any video on Jing because of security issue. I am providing you snapshot of the pop-up and also the logs of the error shown by Test studio. Actually, the main issue is test studio opens the modal pop-up on playback but it is not able to set focus/ perform any of the recorded action on the pop-up.
Below is the error as shown in the test studio log file:-
20-02-2013 16:19:00' - 'Fail' : 23. Enter text '*org*' in 'CpHolderTxtEntityFilterText'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:name=PopUp_mwpWindowManager1361356870765,src=http://192.16.2.144/MYApp/General/WebGridSelector.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:name=PopUp_mwpWindowManager1361356870765,src=http://172.16.3.154/MYApp/General/WebGridSelector.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'20-02-2013 16:19:00' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
Snap shot for the test case and modal pop-up is attached.
Please let me know in case of any other information/issue.
This issue is often due to a dynamic frame Id or Name.
Please double check whether the Name or Src are constants.
If not this is remedied by using the tilde (~) character to indicate a partial match. This can be used in the BaseURL, Id, and Name fields. If the Src string contains a dynamic query, set UseQuery to False.
Please follow this article in order to get detailed instructions on how overcome this issue.
Hope this helps.
Boyan Boev
the Telerik team
Test Studio Trainings
Hello,
I am having an issue with an IE modal window popup. I open the modal popup in IE. Click a link to select an item. Then the application automatically goes back to the main window. When I try to run the test in IE, it fails every time with the following error:
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
I've checked UseStepWaitOnElementTimeOut, I've added execution delays, I've googled and read up and down the forums, but I can't figure this step out. Every time the modal pop up closes and the application goes back to the main window, and then after a few seconds IE just closes and I get this error in Telerik. I am updated to the latest update as well.
Please help.
Thanks,
Nisar
Hi Nisar,
Have you verified that if your pop-up too have random ID being assigned each time it is opened? As I had faced this issue and by using '~' as mentioned above in same forum, I was able to proceed further. Also, if you have used the wait command on any element, does that element exists in pop-up, may be Test Studio is not able to find it. You can try the 'Find Expressions' of Test Studio of finding any element over pop-up.
May be this is of any help to you, as it was to me.
Regards,
Arvind Dhiman