Telerik Forums
Test Studio Forum
5 answers
127 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
269 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
112 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
83 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
70 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
97 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
138 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
103 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
10 answers
131 views

hi,dear, I am qiao
 
In the recorded during WebTest, it often pops up the following error:
    Save Project on Error
    An unexpected error occurred in Test Studio.
    The error has been reported to the Telerik team.
    Do you want to save your work
Then to save it,but save failed,How to solve?

                                                                     Thank you for your answer
Cody
Telerik team
 answered on 02 Oct 2014
7 answers
227 views
Hello,

We are currently evaluating Telerik and are very close to purchasing, however, I have come across a problem.

We need out tests to run overnight so were advised to run the tests on a Virtual Machine instead of my local machine. However, I have installed a trial version on my VM and attempted to record a test but when the browser opens it will not load and immediatley states "not responding" in the end i have to force close the web page. I have attached a log file for this in case that helps.

I recorded a test on my local machine and coppied this onto my Virtual Machine to try and run it, it navigates to the website in the first test step but then nothing happens, its as if it gets stuck trying to do the next test step and it just hangs. The test runs fine on my local machine. I have attached a log file for this too.

I am trying to record and play the test while remote desk topping onto the VM initialy and will then need to schedule the test to run overnight.

Any advice would be appreciated.

Thanks

Chloe
Ivaylo
Telerik team
 answered on 02 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?