Telerik Forums
Test Studio Forum
3 answers
105 views
I've setup a db in Microsoft SQL Server Management Studio 2012 and connected it to the Reporter just fine. When running a test the Reporter signal goes green to red continuously (unless I stay on the Environment window) throughout the run. Tables and data are showing up in my db but not on my Analyze screen in Test Studio. I'm getting absolutely no test results. Any idea why this occurs?
Cody
Telerik team
 answered on 23 Oct 2013
9 answers
245 views
We are using Test Studio in order to ensure the quality of our developed Silverlight applications. Therefore we execute 11 test lists (containing about 34 single test) every night automatically. Over the last few months, when the test suite grew larger, we identified some issues in the execution of our tests. It happens very often that some tests seem to fail at random although the tests application is working correctly.

The main reasons we identified when a test failed at random were:
- Element to be clicked was not visible/enabled yet because the screen wasn't ready. The test execution was simply too fast. --> "Unable to locate element" or the click hit the disabled element.
- Error presented by Test Studio: "Execute command failed"
- unknown reason

Hence we tried to make the tests more robust and stable against unpredictable cases such as longer application/element loading times, slow service requests, busy CPU,...
This is what we tried to stabilize the tests:
- inserted execution delays before critical steps
- inserted "wait for" steps (especially waiting for BusyIndicators)
- increased WaitForElementTimeouts up to 30s
- added general execution delay for the test lists between steps (100ms-500ms)
- kill browser process on close

But we do not want to insert manual execution delays before every step we record...

Unfortunately this did not solve the problem of randomly failing tests. We still have a failure rate of 15-30% for some tests (yes, we did a detailed analysis) just because the tests are not working correctly. This results in a very time intensive effort to maintenance the tests and analyze the results. And it is kind of annoying.

At this point the automatic execution of the test lists is done at least two times a day such that we can find randomly failed tests more easy.

So the question is: do you have any tips to improve the stability and robustness of the test further?
Velin Koychev
Telerik team
 answered on 23 Oct 2013
1 answer
110 views
Hi Team,

There is a check box function which is not working in IE ( a defect and will be fixed for future release) however as I did not want this to be a blocker to test rest of the functionality and as the option is available in Chrome, I have coded the steps and it ran fine in Chrome.

Next thing I did was add IE and Chrome scripts to a test list and ran them.

Issue : When it came to the Chrome test script the test execution stopped. And looks like Chrome is not able to start the test execution.

Do Telerik Test Studio support multiple browser test run (adding test to a test list configured to different browser types).

I have added a screen shot for illustration 

Thanks
Niranjalee
Velin Koychev
Telerik team
 answered on 23 Oct 2013
1 answer
67 views
Hi,
  I have created and run the scripts successfully with windows XP (IE8) now my problem is i am trying to execute those scripts in windows 7(IE 9) but i am not able to execute those scripts and sometimes one of the step fails and sometimes it is moving to next iteration without finishing the first iteration so please provide details how to avoid that one or this telerik is compatible with for ie9
Ivaylo
Telerik team
 answered on 22 Oct 2013
3 answers
104 views
When I attempt to run more than 20 users on our license the Manage Users link is displaying this error.

"We are not able to acquire Licensing information."

We've got 6 licenses so we should be able to run 120 user if I'm correct.  I've attempted to deactivate the license for this account and reactivate but it's still displaying this error.  What am I missing?
Cody
Telerik team
 answered on 21 Oct 2013
1 answer
127 views
Hello,

We have a major concern regarding the result of our load test using test studio. Why is it that we're getting huge number of Faulted users in the Analysis Screen (page with metric graphs) even though there are no HTTP Errors (refer to - Analysis Screen.png) reported after the load test execution. Looking at the page specific metrics, all the URL pages did not encounter any error (refer to - No Errors on Page Specific Metrics.png). Also, there are no completed users for the entire life of the test.

Here's what we're aiming to achieve on the application using load test.
1. The application has a page which we call the operator console, under the operator console are lists of tasks that we need to change the status (e.g. change status from In Progress to Initiated).
*Note: There are preceeding pages that the user needs to go first before the Operator Console page.
2. So we designed our webtest to select random page on the operator console. And then, change the status of the tasks loaded on that page by selecting all the task and changing their status. (refer to - Operator Console Page.png)

We are load testing the application to see if it can handle multiple concurrent users changing the task status under the operator. However after the execution there are no completed users, meaning none of the virtuals users completed their requests and there is a huge number of faulted virtual users. Why are we getting this behavior? Also upon checking the tasks on the operator console page manually, NONE of the tasks changed status.

BTW, we are using Windows Authentication for our application.

Thanks. Hope you could help us ASAP with this.

Thanks,
Cairo

Ivaylo
Telerik team
 answered on 21 Oct 2013
4 answers
556 views
Can I use a c# class in Test Studio so I can create and maintain some global variables and methods I want to use? 
Thanks,

Jeff
Velin Koychev
Telerik team
 answered on 21 Oct 2013
2 answers
101 views
Hello Team ,
I have problem during record a test step in test studio, when i was tried to record test step , it did not get added to my test cases .and if i  try this with old test cases and try to edit existing step ,recorder is not working.

i just follow test studio documentation regarding ie setting and also calibrate,but still recorder is not working.

thanks in advance..
Humberto
Top achievements
Rank 1
 answered on 18 Oct 2013
1 answer
467 views
Hi,

I am new to Telerik. One of our client have delphi application. I wanted to know whether such applications are feasible to automate using Telerik?

Does Telerik automates Delphi application?
Boyan Boev
Telerik team
 answered on 18 Oct 2013
8 answers
192 views
Lately I've started running into an ExecuteCommand failed error in a bunch of tests, only when running them on the test studio run time.

It only happens on web forms ajax dropdown control, as far as I can tell.

The error messages look like:

ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_344da513-6c50-4d7e-8c61-b129e4dee963',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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.


The test log messages is:


Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_9e4e4fc8-fa84-485d-b8b7-1aefb61c62a7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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.
 
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_9e4e4fc8-fa84-485d-b8b7-1aefb61c62a7',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()] failed! Please make sure the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Object doesn't support property or method 'createEvent'
   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.
 
   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.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.InvokeScript(String script)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.InvokeOnChange()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.SelectByText(String text, Boolean invokeOnChangeEvent)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectDropDownActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


I should also point out that the dropdown box is changed to the correct value
Alan
Top achievements
Rank 2
 answered on 18 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?