Telerik Forums
Test Studio Forum
1 answer
167 views

Do we have translator for Kendo Dropdown list in Telerik Test Studio ?

I am using Telerik Test Studio version 2017.1.328.0

Nikolay Petrov
Telerik team
 answered on 27 Feb 2018
17 answers
489 views
Hi,

I am having issue entering value (numeric) in Numeric only text box. While recording I entered all numeric value. However, when I execute my test, it does not seem to type in anything but the step passes and continues. Here is an example of the text box. Please let me know how I can successfully add numeric data to numeric only text box (via coded step or recording).

<TextBlock x:Uid="TextBlock_2" Grid.Row="0" Grid.Column="0" Margin="3,2,3,0" Text="Numeric ID" AutomationProperties.AutomationId="TextBlock_2" />
                                        <TextBox x:Uid="txtNumericID" x:Name="txtNumericID" Grid.Row="1" Grid.Column="0" Margin="3,1,17,2"
                             Text="{Binding NumericEdit.NumericID, Mode=TwoWay,ValidatesOnExceptions=True}"
                             adr:BusinessBaseBehavior.BusinessRulesSource="{Binding Path=NumericID.NumericID, Mode=TwoWay}"
                             MaxLength="10">
                        <interactivity:Interaction.Behaviors>
                          <behaviors:TextBoxFilterTypeBehavior Filter="Integer"/>
                       </interactivity:Interaction.Behaviors>

Thank You,
Dipti
Elena
Telerik team
 answered on 27 Feb 2018
4 answers
117 views

 

I have used Test studio for web applications, but I am now trying to automate tests for a hybrid mobile app. 

Does Test Studio Mobile support data-driven testing for hyprid apps?

 

Elena
Telerik team
 answered on 15 Feb 2018
3 answers
177 views

Hi,

document.getElementsByTagName('select')[6];target.dispatchEvent(evt);] failed! Please make sure the function exists and the call is using the correc

I updated test studio version yesterday and then started seeing this error in all places where drop down is when tests are ran.

 

Below is the error --

 

ExecuteCommand failed!InError set by the client. Client Error:System.InvalidOperationException: Javascript call [var eventObjJSON = 'null';var eventObj = JSON.parse(eventObjJSON);var eventType = "HTMLEvents";var eventName = "change";var evt = document.createEvent(eventType);if (!evt) throw "Error creating event";var altKey = false;var ctrlKey = false;var shiftKey = false;var metaKey = false;if (eventType == "HTMLEvents" || !eventObj) {evt.initEvent(eventName, true, true);}else {if (eventObj.modifiers & 0x01)altKey = true;if (eventObj.modifiers & 0x02)ctrlKey = true;if (eventObj.modifiers & 0x04)shiftKey = true;if (eventObj.modifiers & 0x08)metaKey = true;if (eventType == "MouseEvents") {var button = 0;if (eventObj.button & 1)button = 0;else if (eventObj.button & 2)button = 2;else if (eventObj.button & 4)button = 1;var relatedTarget;if (eventObj.relatedTarget)relatedTarget = eval(eventObj.relatedTarget);evt.initMouseEvent(eventName, true, true, window, 0, eventObj.screenX, eventObj.screenY,0, 0, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);}else if (eventType == "KeyboardEvent") {var keyCode;var charCode;keyCode = eventObj.keyCode;if (eventName == "keypress") {charCode = eventObj.keyCode;}else {charCode = 0;}var keyNum = String.fromCharCode(parseInt(keyCode)).toUpperCase().charCodeAt(0);var keyIdentifier = "U+00" + keyNum.toString(16);evt.initKeyboardEvent(true, true, window,keyIdentifier,0, ctrlKey, altKey, shiftKey, metaKey);}}var target = document.getElementsByTagName('select')[6];target.dispatchEvent(evt);] 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, IHTMLDocument2 doc) at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, BrowserCommand command) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeEvent',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'onchange--@@--null',ClientId:'Client_c62ec753-e4e2-4ff5-af77-8fe0c44bee21',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'2',InError:'True',Response:'System.InvalidOperationException: Javascript call [var eventObjJSON = 'null';var eventObj = JSON.parse(eventObjJSON);var eventType = "HTMLEvents";var eventName = "change";var evt = document.createEvent(eventType);if (!evt) throw "Error creating event";var altKey = false;var ctrlKey = false;var shiftKey = false;var metaKey = false;if (eventType == "HTMLEvents" || !eventObj) {evt.initEvent(eventName, true, true);}else {if (eventObj.modifiers & 0x01)altKey = true;if (eventObj.modifiers & 0x02)ctrlKey = true;if (eventObj.modifiers & 0x04)shiftKey = true;if (eventObj.modifiers & 0x08)metaKey = true;if (eventType == "MouseEvents") {var button = 0;if (eventObj.button & 1)button = 0;else if (eventObj.button & 2)button = 2;else if (eventObj.button & 4)button = 1;var relatedTarget;if (eventObj.relatedTarget)relatedTarget = eval(eventObj.relatedTarget);evt.initMouseEvent(eventName, true, true, window, 0, eventObj.screenX, eventObj.screenY,0, 0, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);}else if (eventType == "KeyboardEvent") {var keyCode;var charCode;keyCode = eventObj.keyCode;if (eventName == "keypress") {charCode = eventObj.keyCode;}else {charCode = 0;}var keyNum = String.fromCharCode(parseInt(keyCode)).toUpperCase().charCodeAt(0);var keyIdentifier = "U+00" + keyNum.toString(16);evt.initKeyboardEvent(true, true, window,keyIdentifier,0, ctrlKey, altKey, shiftKey, metaKey);}}var target = document.getElementsByTagName('select')[6];target.dispatchEvent(evt);] 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, IHTMLDocument2 doc) at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, BrowserCommand command) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(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 [var eventObjJSON = 'null';var eventObj = JSON.parse(eventObjJSON);var eventType = "HTMLEvents";var eventName = "change";var evt = document.createEvent(eventType);if (!evt) throw "Error creating event";var altKey = false;var ctrlKey = false;var shiftKey = false;var metaKey = false;if (eventType == "HTMLEvents" || !eventObj) {evt.initEvent(eventName, true, true);}else {if (eventObj.modifiers & 0x01)altKey = true;if (eventObj.modifiers & 0x02)ctrlKey = true;if (eventObj.modifiers & 0x04)shiftKey = true;if (eventObj.modifiers & 0x08)metaKey = true;if (eventType == "MouseEvents") {var button = 0;if (eventObj.button & 1)button = 0;else if (eventObj.button & 2)button = 2;else if (eventObj.button & 4)button = 1;var relatedTarget;if (eventObj.relatedTarget)relatedTarget = eval(eventObj.relatedTarget);evt.initMouseEvent(eventName, true, true, window, 0, eventObj.screenX, eventObj.screenY,0, 0, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);}else if (eventType == "KeyboardEvent") {var keyCode;var charCode;keyCode = eventObj.keyCode;if (eventName == "keypress") {charCode = eventObj.keyCode;}else {charCode = 0;}var keyNum = String.fromCharCode(parseInt(keyCode)).toUpperCase().charCodeAt(0);var keyIdentifier = "U+00" + keyNum.toString(16);evt.initKeyboardEvent(true, true, window,keyIdentifier,0, ctrlKey, altKey, shiftKey, metaKey);}}var target = document.getElementsByTagName('select')[6];target.dispatchEvent(evt);] 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, IHTMLDocument2 doc) at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, BrowserCommand command) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeEvent',Target:'ElementId (tagName: 'select',occurrenceIndex: '6')',Data:'onchange--@@--null',ClientId:'Client_c62ec753-e4e2-4ff5-af77-8fe0c44bee21',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'2',InError:'True',Response:'System.InvalidOperationException: Javascript call [var eventObjJSON = 'null';var eventObj = JSON.parse(eventObjJSON);var eventType = "HTMLEvents";var eventName = "change";var evt = document.createEvent(eventType);if (!evt) throw "Error creating event";var altKey = false;var ctrlKey = false;var shiftKey = false;var metaKey = false;if (eventType == "HTMLEvents" || !eventObj) {evt.initEvent(eventName, true, true);}else {if (eventObj.modifiers & 0x01)altKey = true;if (eventObj.modifiers & 0x02)ctrlKey = true;if (eventObj.modifiers & 0x04)shiftKey = true;if (eventObj.modifiers & 0x08)metaKey = true;if (eventType == "MouseEvents") {var button = 0;if (eventObj.button & 1)button = 0;else if (eventObj.button & 2)button = 2;else if (eventObj.button & 4)button = 1;var relatedTarget;if (eventObj.relatedTarget)relatedTarget = eval(eventObj.relatedTarget);evt.initMouseEvent(eventName, true, true, window, 0, eventObj.screenX, eventObj.screenY,0, 0, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);}else if (eventType == "KeyboardEvent") {var keyCode;var charCode;keyCode = eventObj.keyCode;if (eventName == "keypress") {charCode = eventObj.keyCode;}else {charCode = 0;}var keyNum = String.fromCharCode(parseInt(keyCode)).toUpperCase().charCodeAt(0);var keyIdentifier = "U+00" + keyNum.toString(16);evt.initKeyboardEvent(true, true, window,keyIdentifier,0, ctrlKey, altKey, shiftKey, metaKey);}}var target = document.getElementsByTagName('select')[6];target.dispatchEvent(evt);] 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, IHTMLDocument2 doc) at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, BrowserCommand command) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request) at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(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.InvokeEvent(Element targetElement, ScriptEventType eventType) at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.InvokeEvent(ScriptEventType eventType) at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.InvokeOnChange(Boolean initEvent) 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)

 

 

Elena
Telerik team
 answered on 14 Feb 2018
1 answer
97 views
I need to exit from current test in a list if the test is not completed in a certain time frame.
Nikolay Petrov
Telerik team
 answered on 06 Feb 2018
1 answer
133 views

Hello,

please, take a look at https://harvesthq.github.io/chosen/ .

- there's a example dropdown element under: "Standard Select" -> "Into This" (a select for countries on the right side)

Can anyone tell my, how i set this element to "Germany" without using a Desktopcommand Mouse Leftclick 

Thanks

André

Nikolay Petrov
Telerik team
 answered on 06 Feb 2018
3 answers
244 views
Hello,
I am using a RadGridView in my WPF application. The RadGridView is filled dynamically, so there might be a different amount of rows every time the test runs. The columns can be reordered.
The test needs to check a specific cell that is identified by its column header and a value in another cell of that row.

Example RadGridView data:
Name        | City        | Workload in hours
-------------------------------------------
Foo Bar        | LA        | 45
John Doe    | NY        | 20

Now I would like to check the values for "Workload in hours" with a data driven test.
Example data source for the data driven test:

Name        | Workload in hours
-------------------------------
John Doe    | 20        

I can't say for sure in what row "John Doe" is since there might be more or less rows in the table. I also can't say if the column is always the third because it might be in another order.
But I do know that I need:

"cell
in COLUMN 'Workdload in hours'
in ROW where COLUMN 'Name' is <data driven value 'John Doe'>"

I would like to check if the value inside of that cell matches the data source or do further testing with the row or cell (for example: right click on that cell to edit the person's data in another view).
Since I use both Telerik control and Telerik Test Studio there should be a way to achieve this without the need to code every step in the RadGridView.

For the solution it would be okay if I...
...add a function to the grid (in the WPF solution) that is called by Telerik Test Studio to get the needed cell for further testing.
...create a "Test As Step" that returns the cell AND that can be reused for different tests.
...use a test step element that takes parameters (data driven) and returns a cell.

It would NOT be okay to write a new "Coded Step" for every interaction with a RadGridView because there are lots of RadGridViews.
Elena
Telerik team
 answered on 01 Feb 2018
5 answers
96 views

The first congrats for really great job on product. Awesome. Love it. Its great tool for developers and QA.

One thing constantly pops up in between developers and QA how to reproduce error for specific platform as its required new setup (Azure or Amazon storage).
Would it possible to add new step (Http Request, Verification and ect)? The step would be just text notes and would use Telerik Edit control with minimal features.
Essentially its readme block, where all information stored for devs and QA. It would be great help, as wiki pages or word docs quick getting out of sync and hard to maintain. Keeping everything together big bonus for development as requirements changes quickly in agile land.

If the text nodes could store images as base64 what would be great.

Sincerely J.B

Elena
Telerik team
 answered on 22 Jan 2018
7 answers
298 views
Is there a way to generate random text to enter in a test step? I saw a similar thread where one could enter random numbers.
Elena
Telerik team
 answered on 22 Jan 2018
1 answer
1.1K+ views

Hi,

I am testing a WCF Service using Test Studio, the service(POST) accepts only JSON body.

I have selected boy format as raw and type as JSON, but I am getting the following error

The incoming message has an unexpected message format 'Raw'

 

Please help

 

Nikolay Petrov
Telerik team
 answered on 18 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?