Telerik Forums
Test Studio Forum
2 answers
131 views
Hello,
I have the element with such expression:
"tagname=div,class=select-normal,OuterMarkup=~id=mailprefs_default_compose_mode_labellink"
Element is determined correctly in IE browsers, but i have issues in Chrome and Firefox. I've got such error while executing scripts in followed browsers:
Unable to locate element. Details: Attempting to find [Html] element using 
Find logic 
 (Html): [class 'Exact' select-normal] AND [OuterMarkup 'Contains' id=mailprefs_default_compose_mode_labellink] AND [tagname 'Exact' div]

Inside Frame:[Frame:id=main_iframe,name=Frame_0,src=https://domain.com/ajax_prefs/main.php,UseQuery:True]
Unable to locate element. Search failed!

This issue is replicated for Firefox and Chrome browsers, and after this error i can't complete execution of test suite successfully. 
Note: I don't need to use tags such as title or name, because application is multi-language. Please look at this sample of code: 
<div id="mailprefsBody" style="height: 473px;">
<div class="pref-padwr">
<table cellspacing="0" cellpadding="0" role="grid">
<tbody>
<tr class="PrefText">
<td>
                    <select title="Default compose mode" alt="Default compose mode" tabindex="8160" id="mailprefs_default_compose_mode" name="default_compose_mode" style="display: none;">
                        <option value="Text">Text</option>
                        <option value="HTML">HTML</option>
                    </select><div class="select-normal" alt="Default compose mode" title="Default compose mode"><div class="select-inp"><div class="select-t">Text</div><a class="select-arr" id="mailprefs_default_compose_mode_labellink" tabindex="8160"></a></div></div>
                </td>
</tr>
</tbody>
</table>
</div>
</div>
Test
Top achievements
Rank 1
 answered on 12 Jun 2013
1 answer
122 views
Is it possible, to define a variable at the beginning of a test and use the vaue in the find settings of steps?
Sth. like TextContent = Productname: "{value of variable}" 
Boyan Boev
Telerik team
 answered on 12 Jun 2013
2 answers
130 views

Is anyone aware with any issues with Selecting a dropdown value?

I got the error below when testing with the website: http://www.echoecho.com/htmlforms11.htm

================================================================
Overall Result: Fail
------------------------------------------------------------
'11/06/2013 11:33:04 AM' - Using .Net Runtime version: '4.0.30319.17929' for test execution. Build version is '2012.2.1420.0'.
'11/06/2013 11:33:04 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'11/06/2013 11:33:08 AM' - Using 'InternetExplorer' version '9.0' as default browser.
'11/06/2013 11:33:14 AM' - 'Pass' : 1. Navigate to : 'http://www.echoecho.com/htmlforms11.htm'
'11/06/2013 11:33:15 AM' - 'Fail' : 2. Select 'ByValue' option 'Milk' on 'DropdownmenuSelect'
------------------------------------------------------------
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: [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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_d3d8231a-b3ab-438c-aefd-ea068639b46e',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: [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.

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: [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:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0];var evt = document.createEvent(\'HTMLEvents\');evt.initEvent(\'change\',true,true);el.dispatchEvent(evt);}fireChanged()',ClientId:'Client_d3d8231a-b3ab-438c-aefd-ea068639b46e',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: [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.

   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.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)
------------------------------------------------------------
'11/06/2013 11:33:15 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'11/06/2013 11:33:15 AM' - Overall Result: Fail
'11/06/2013 11:33:15 AM' - Duration: [0 min: 6 sec: 522 msec]
------------------------------------------------------------
'11/06/2013 11:33:16 AM' - Test completed!

================================================================

It isn't the website I'm testing but it has a dropdown that demonstrates the issue I'm having. The issue seems to disappear if I change InvokeSelectionChanged to False but I'm sure you can see how that could be a problem with some tests.

Has anyone else had a similar issue?

Erick
Top achievements
Rank 1
 answered on 12 Jun 2013
3 answers
77 views
Hi,

I have test execution license on our servers and use TeamCity to schedule the test execution.

I would like to know if it is possible to rebuild my Test Studio Project using the Telerik Test Execution license?

Thanks,
Terri
Ivaylo
Telerik team
 answered on 10 Jun 2013
3 answers
70 views
Originally it was set for May...Now its June? Does anyone have an estimated date?
I started reworking all my tests to try to use the newer Test Runner hoping it will work better than the current state.
Cody
Telerik team
 answered on 10 Jun 2013
1 answer
100 views
Hell Telerik,
i am still facing problems with the select-Control. 
I recorded on a Select-Control the following Select: .SelectByValue("30", true) .
When running the test the first time (in Telerik Test Studio), the select is executed correctly. When rerunning the test, very often it fails here with this error log:
(It fails on the recorded step and in a coded step.)

Do you have any suggestions how i can solve it?
--------------------------------------------------------------------------------------------------------------------------
System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   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.DoSelectDropDown(Element targetElement, String data)
   at ArtOfTest.WebAii.Core.Actions.SelectDropDown(Element targetElement, String text, Boolean useValue)
   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)







Plamen
Telerik team
 answered on 10 Jun 2013
5 answers
195 views
Hi,

I've noticed that when I select an element in the Elements pane, right-click and choose "Used By", the dialog that comes up sometimes shows me that the chosen element is "# Independent #" in some script files.  Can someone tell me what this means?

When i change the Elements pane to show only the elements used in this script, the independent ones appear, along with the ones actually referenced by the script steps, for certain files.  Is the any way to remove them from these script files?

Thanks,

-Mark
Boyan Boev
Telerik team
 answered on 07 Jun 2013
1 answer
91 views
I have a data driven test. The second step is a login. The handle login is successful on the first iteration, however, subsequent iterations it fails since we are re-using the browser instance. I set the "continue on failure" option, but the subsequent iterations are marked as failed just because of the login step is not needed. How do I get around this?
Cody
Telerik team
 answered on 06 Jun 2013
1 answer
126 views

Our current test solution is built on this architecture where in we have a Main test which is binded to an xml file. The xml file has all the information for logging and also the test data that the tests need. The Main test can call a number of Shared tests. These shared tests are again binded to the same xml file. The reason being, for the shared test to run stand alone (for debugging) it needs the same input values from the xml file.

Our question is when we have such binding across the tests for the same file, does this create multiple DOM trees in-memory ? The xml file that we are using is growing as we are adding more and more tests. We have 80 tests in our suite and we are now constantly running into OutOfMemory exceptions when running the whole suite. I see in the test run log that it is creating data iterations for xml files. Does this mean it is creating an in-memory tree and we also want to know how does telerik processes handle the release of this memory in between the test runs?

Exception details:

<<< Test-as-Step 'VerifyVitalsGridFirstRowData.tstest' log ends.

InnerException:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Text.RegularExpressions.Match..ctor(Regex regex, Int32 capcount, String text, Int32 begpos, Int32 len, Int32 startpos)
   at System.Text.RegularExpressions.RegexRunner.InitMatch()
   at System.Text.RegularExpressions.RegexRunner.Scan(Regex regex, String text, Int32 textbeg, Int32 textend, Int32 textstart, Int32 prevlen, Boolean quick)
   at System.Text.RegularExpressions.Regex.Run(Boolean quick, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
   at System.Text.RegularExpressions.Regex.Match(String input, Int32 startat)
   at ArtOfTest.Common.Parser.GetNextTag(Int32 startPosition, Int32& tagLength, String& tagContent, String& tagName, String& tagRemainder)
   at ArtOfTest.Common.Parser.Parse()
   at ArtOfTest.Common.Parser.Parse(String text)
   at ArtOfTest.Common.BaseTreeBuilder`1.BuildDomTree(String text, Boolean trimWhiteSpace)
   at ArtOfTest.WebAii.Silverlight.VisualTree.Refresh(String xamlTree)
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.RefreshVisualTrees()
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.Connect()
   at ArtOfTest.WebAii.Silverlight.SilverlightAppsList.get_Item(Int32 index)
   at FusionUITestsPOC.Pages.QAAUTOSYNC1228183918Page.get_SilverlightApp() in c:\Builds\120\Fusion_2010\PCDEV02_FusionUITestBuild\Sources\PCDEV02\Tests\WeUiPoc\FusionUITestsPOC\FusionUITestsPOC\Pages.g.cs:line 135

Any help appreciated...
Thanks

Cody
Telerik team
 answered on 06 Jun 2013
1 answer
109 views
Hi All,

I did load test for 1 hour in HP Loadrunner. I had a issue one transaction(Click PDF and download PDF) is getting failed after 55 minutes of test. I went through scripts and scripts are working fine. Transactions are passed till 55 minutes, after 55 minutes one transaction is getting failed in final iterations.

Any suggestions to find the root cause of these issue.

Thanks,
Priya
Cody
Telerik team
 answered on 06 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?