I just switched to your latest internal build and all my assemblies no longer seem to work. I had to manually delete the existing references and re-add most of them, which seemed to fix the issue. Why does this happen? My coworker is using an older build of WebUI and when I try to run his code in my build, it doesn't work due to this same issue.
On a side note, I couldn't find the Telerik.WebAii.Controls.Html or Telerik.WebAii.Controls.Xaml references in the reference list. However, when I go to create a new test in a different solution, it adds those 2 references just fine.
11 Answers, 1 is accepted
The reason the references break when you upgrade is that the default on the reference properties is to look for a specific version. When you upgrade to a new version the old specific version of the assemblies no longer exist and you will get the broken references.
To overcome this annoyance you can set "Specific Version" to false as shown in the attached screenshot.
The dll's Telerik.WebAii.Controls.Html and Telerik.WebAii.Controls.Xaml are our translators for our RadControls. They provide advanced methods for accessing and driving them. These are normally kept in the folder C:\Program Files\Telerik\WebUI Test Studio 2010.2\Bin\Translators.
Cody
I'm having test problems with updates too.
you're likely running into a slightly different issue in QA edition. In your Project: try manually adding Assembly references to the Telerik translators as seen in this video:
http://www.screencast.com/users/TelerikTesting/folders/Jing/media/312f9c69-20e8-4e01-9fb7-657af4ae4991
Let me know whether this resolved the issue.
Kind regards,
I have see two problems thus far.
1.Pop-ups do not close anymore.
Checked all my IE8 settings too.
2.Many of the tests open the browser and slam it shut again without running any steps.
I looked at the tests and they start with, "Test as Step".
It is a login test attached to the front of most tests.
If I delete the, "Test as Step" ,Login and readd it I starts the test just fine.
Some of the newer tests I built on 1213 run okay.
Tests I didn't build that may have been built on an older version don't run at all.
They just slam the browser shut and end.
you state:
1.Pop-ups do not close anymore.
Do you mean that "Handle Dialog" steps that used to work before - timeout now?
2.Many of the tests open the browser and slam it shut again without running any steps.
Please give me as much info as possible on this issue. There should an error message indicating what went wrong. Also, screenshots and a video (Jing is great for this) would be very helpful.
Hope to hear from you soon.
Best wishes,
Stoich
the Telerik team
When I find a project that will execute if it has an external link.
open / close it will not close the link and the new window that popped up will never go away and the rest of the steps are trying to run in the new window and fail.
When I execute a test the first step in the test is, "tests as step".
Web UI can't seem to find the test that is used as a step.
When I run the same test directly it finds it???
When Web UI is clicking a link on a page I get this eror-
ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ArtOfTest.ShDocVw.WebBrowserClass.get_Document()
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_57af914e-4bf9-4179-a354-bf67bed1422a',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at ArtOfTest.ShDocVw.WebBrowserClass.get_Document()
at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(Browser browser, AutomationDescriptor descriptor)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
Connect to pop up windows error
ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception occured waiting for the new browser to connect. ---> System.OperationCanceledException: Exception occured waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
Handle confirm dialog error
ArtOfTest.Common.Design.Exceptions.ExecutionException: Timed out waiting '5000' msec. for dialog to be handled '1' ---> System.TimeoutException: Timed out waiting '5000' msec. for dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.DialogHandlerDescriptor.Execute(IAutomationHost browser)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--- End of inner exception stack trace ---
The pop up opens, the errors make it look like it didn't open.
I guess that is why they don't close.
On your problem:
Web UI can't seem to find the test that is used as a step.
When I run the same test directly it finds it???
Please see this KB article. It will probably solve the problem for you.
Please open up new forum posts or support tickets (one ticket per issue please) for your other problems (clicking a link throws an error, dialog not being handled, etc.). It is too confusing on our part to try and address multiple issues in the same ticket at the same time. Then we'll be very happy to assist.
Cody
the Telerik team
The move from the older 1213 to the newer version 1607.