Telerik Forums
Test Studio Forum
15 answers
190 views

Hi,

My script is not able to locate a Silverlight control which is inside a RadPanel and it throws Out of bound exception. Here are the steps:

1. I perform a few steps like loading the application, login and other things which are working fine.
2.
I scroll the RadPanel to top of the page and then click it. This expands the RadPanel and here is when the Silverlight Application is loaded. You can now see a Silverlight Hyperlink button. Screenshot name “Step 2”.
3. W
hen I click on the Hyperlink “AddDocumentlink..” the action is recorded and when I try to run the script it doesn’t click this hyperlink and an exception is seen.

The code that is recorded is:
[CodedStep(@"Click AddDocumentLinkHyperlinkbutton", RequiresSilverlight=true)]
        public void AddProduct_CodedStep2()
        {
            // Click AddDocumentLinkHyperlinkbutton 
            Pages.RoadmapGetOnTheMap3.SilverlightApp.AddDocumentLinkHyperlinkbutton.User.Click();
  
     }
Error Message: Exception thrown executing coded step: '[AddProduct_CodedStep2] : Click AddDocumentLinkHyperlinkbutton, RequiresSilverlight=True'.
Exception is:
ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[AddProduct_CodedStep2] : Click AddDocumentLinkHyperlinkbutton, RequiresSilverlight=True'. ---> System.InvalidOperationException: Point (223, 1027) outside bounds of browser window: (0, 140, 1366, 565)
   at ArtOfTest.WebAii.Silverlight.UserInteraction.ValidateMouseLocationIfNeeded(Point point)
   at ArtOfTest.WebAii.Silverlight.UserInteraction.Click(MouseClickType clickType, Point offsetPoint, OffsetReference reference)
   at ArtOfTest.WebAii.Silverlight.UserInteraction.Click()
  
at BgRoadmap.AddProduct.AddProduct_CodedStep2() in d:\WebUI Automation\BgRoadmap\AddProduct.aii.cs:line 188
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance)

Please let me know how can I resolve this. Thanks, Mithul.

 

Boyan Boev
Telerik team
 answered on 29 Oct 2014
3 answers
141 views
I am trying to extract the contents of a combo box, but the only way TS wants to do it is using a absolute method, like tag index, or xpath, or htmlpath. This means that if a designer moves that combo on the page at all my test is broken.

The element which contains the actual text is generated by kendo, and thus I can't code a tag to it to make the test easier. However there is a surrounding take that has a good tag on it (aria-owns="ContactID_listbox"). If I could use a relative index to that item, I may be ok, as the relative index isn't like to change unless kendo's rendering changes.  But I can't seem to find a way to do that.

I realise Test Studio is really meant for Internet Explorer, and the 'kendo' features don't work with Chrome. But we have had to abandon IE due to it's lack of WebSQL support. So if there is a better way to record this extraction that works in Chrome, please suggest.

Thanks,
~Shea M.
Boyan Boev
Telerik team
 answered on 29 Oct 2014
1 answer
71 views
Is there a way I can specify a specify Chrome user to be used when recording and running tests. It is possible to tell chrome which profile to launch with: http://www.chromium.org/developers/creating-and-using-profiles

But how can I make Test Studio use the command switch?

Thanks,
~Shea M
Cody
Telerik team
 answered on 23 Oct 2014
4 answers
287 views
Which files should be put in source control? I am guessing for teams using TFS (the 1%), Test Studio correctly decides, but for people using SVN/Git/Hg, which files should be on the ignore list.

i.e., Should resx files be in there?

Thanks,
~Shea
Boyan Boev
Telerik team
 answered on 23 Oct 2014
7 answers
291 views
Hi there,

Im new to this, I have been passed a set of tests, that I need to now stick in Jira (Zephyr).

Is there any way I can take the steps and export them? I have tried to use the story board, this only works for a full set of tests.

We have several sets all linked to make 1 full set. Can i story board this?

Thanks.
Boyan Boev
Telerik team
 answered on 21 Oct 2014
1 answer
109 views
Hi,

With Telerik Testing Framework (ArtOfTest.WebAii) and Telerik Test Studio, is there support to allow for the automation of a common operation for selection of Context Menu to View Item or Edit Item in a SharePoint List

Cody
Telerik team
 answered on 17 Oct 2014
1 answer
109 views
Please look into this issue.
Maria Ilieva
Telerik team
 answered on 15 Oct 2014
1 answer
71 views
Is there a way to control how IE gets called in test studio, so that I can try to have it launch with something like "iexplore –extoff" ?

Trying to figure out why I get the DEP error only when running Test Studio on playback.
Boyan Boev
Telerik team
 answered on 14 Oct 2014
5 answers
121 views
Hi,

I'm currently trying to validate the contents of a drop down list but I'm unsure on how to go about doing this (This is in Silverlight).  Any suggestions?

Cheers

Boyan Boev
Telerik team
 answered on 14 Oct 2014
1 answer
122 views
If I run a particular test, it keeps failing at the same spot.  I've rebooted several times and that has not solved anything.  I did do a shutdown and restart and it did work once, however, since then, keeps failing on the same step.

Product Version 2012.2.1420.0
Windows 8.1, IE 11

ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_9c800a5e-cc40-4968-8121-cece25ed6f8f',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WaitForPipeDrain()
   at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
 ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException ---> System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WaitForPipeDrain()
   at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   --- End of inner exception stack trace ---
   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.IsReady()
   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)
   --- End of inner exception stack trace ---

Ivaylo
Telerik team
 answered on 14 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?