Telerik Forums
Test Studio Forum
5 answers
129 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
127 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
5 answers
135 views
hi im just trying to figure out the results from the load test that i have conducted.

can anyone please help me understand the rationale behind this:

one of the goals of the load test i have made is to get the average response time for the overall test. i have set the parameter to fail this goal if the value is greater than 2000ms. to which the goal failed because the max value reached is 11249ms

but on the table produced after the test, the average time is at 222ms only. the max is at 11249. so if the average response time is only at 222ms, and at one point there was a page that took 11249ms to load how does the application fair overall during the load testing. its quite confusing since the term "average response time (ms) for overall test" is used.
Ivaylo
Telerik team
 answered on 10 Oct 2014
11 answers
277 views
Hi,

We're having issues with running tests for WPF application. Tests created on one computer don't run on another computer with error "Unable to locate element. Search failed!".

When updating failing test on another computer I even get different XamlPath for the same element. Original path on first computer was:
[name 'Exact' PART_ItemsHolder] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /contentpresenter[1]/grid[0]/grid[0]/textbox[1]/border[name=border]/scrollviewer[name=PART_ContentHost]/grid[0]/scrollcontentpresenter[0]/textboxview[0]]

Updated path on another computer:
[name 'Exact' PART_ItemsHolder] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /contentpresenter[1]/grid[0]/grid[0]/textbox[1]/listboxchrome[name=Bd]/scrollviewer[name=PART_ContentHost]/grid[0]/scrollcontentpresenter[0]/textboxview[0]]

I marked different paths with bold. Path until bold is OK and TestStudio was able to find target element when resolving failure. However, after resolving and saving the test it fails on first computer.

What are we doing wrong?
Boyan Boev
Telerik team
 answered on 09 Oct 2014
1 answer
114 views
How to Set values for Combo box,Date time controls,Number Controls.

Scenario is:
                 Assume in my web page there are combo boxes,date/time pickers,number controls.Here,I have to set the values into combo boxes,date/time pickers,number controls. I am using Test Studio Project and hope to implement code in the ''New Coded Step'' area. Please guide through code, how to SET values to following fields. I do not need a Enumeration examples.
               I have done for Text-boxes,check-boxes like :

               //Set text from the excel to text box.
              HtmlInputText firstname= Manager.ActiveBrowser.Find.ById<HtmlInputText>("txtfirstname");
              firstname.Text = "telerik";

Here,I want to do like this for combo box,date/time pickers,number control. ,So,Please,Help me out :

With this,I have attached a snapshot of combo  box , date/time pickers,number control.I hope,i will get a positive reply soon from you guys.




Ivaylo
Telerik team
 answered on 08 Oct 2014
1 answer
86 views
I was wondering if you could clarify Test Studio if it support integrating with Karma. I've checked the Telerik Forum and notice it mentioned supporting Protractor and Jasmine for JUnit testing. But did not mention anything about Karma.

Thank you,

James Nguyen
Cody
Telerik team
 answered on 07 Oct 2014
1 answer
74 views
We are currently using Telerik for a web based application that contains a grid with no identification in code and Telerik is not able to identify the row or cells due to its dynamic nature. We decided assign friendly names (element names) to each grid element.

I'm curious to know what naming conventions is used by the Telerik users / experts in this forum, to name elements. Should names match what the fields are named in code, tables or .....? Any suggestion, ideas, experience sharing would help in my decision. Thanks for your shared insight.
Cody
Telerik team
 answered on 07 Oct 2014
1 answer
103 views
The item selected in this drop down affects the next drop down. The change triggers a Javascript call. I get this error when that happens. 

ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[3]).change();] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$(document.getElementsByTagName(\'select\')[3]).change();',ClientId:'Client_f849a365-c9ab-4ece-aaf7-36083835f3a7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'5',InError:'True',Response:'System.InvalidOperationException: Javascript call [$(document.getElementsByTagName(\'select\')[3]).change();] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
Cody
Telerik team
 answered on 07 Oct 2014
3 answers
143 views
Hi,

I'm creating a test in which I run through a registration form, part of this registration form is the email adres field. This field is mapped to a Telerik control, and the Telerik framework has made it a "HtmlInputText". This results in an error, I imagine because when it looks for this control the type is "type=email", either way it gives me the following exception: Invalid input type "Email'' for this control. Control was expecting ''Text"

This is fixed whenever I change the control's type to HtmlInputEmail, however because the pages.g.cs is auto regenerated everytime you build, the Telerik framework automatically changes this back to HtmlInputText which breaks the test. How can I manually force it to generate this as a HtmlInputEmail? Also I suppose this can be seen as a bug report of sorts, because the "type=email" is even included in the control's find parameters, how does the framework not properly create this as an HtmlInputEmail?

Regards,
Sander
Ivaylo
Telerik team
 answered on 07 Oct 2014
3 answers
106 views
I have a HTML Application (.hta extension) that i would like to record against. Below is the link of the application.

http://simsapptest/sims/sims.hta

When i enter the above link in internet explorer, it opens up as an application. I would like to record my actions on the HTML application that pops up. Does Telerik support recording on HTML Application (.hta extension)? If yes, can you please provide me information on how i could do that.

Thank you,
Nithin
Cody
Telerik team
 answered on 06 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?