Completed
Last Updated: 09 Dec 2014 13:48 by ADMIN
ADMIN
Stoich
Created on: 04 Feb 2014 15:46
Type: Feature Request
0
Auto-generated Find Logic for KendoInputButton is brittle
Currently if you record a click against a KendoInputButton - Test Studio will generate the find logic for you automatically. When the button is part of a complex widget like a grid the logic is based on tagIndex and is very brittle. The test will tend to break very fast. 

Here is a little demonstration:
http://screencast.com/t/qqaaeTaWW

Demo:
http://demos.telerik.com/kendo-ui/web/grid/editing-popup.html
- Click to edit in the grid, opening the popup
- Click on the Unit Price numeric

It would be good to have:
A) "Smarter" translators that can design better find logic 
B) Design our Kendo widgets in a way that's more automation-friendly
2 comments
ADMIN
Iliyan Panchev
Posted on: 15 Jul 2014 12:02
There is a new find expression logic that fixes this problem. It will be part of the upcoming minor and major releases.
ADMIN
Konstantin Petkov
Posted on: 06 Feb 2014 13:59
Hello,

This is specific to the demo app. Test Studio cannot find anything reliable to record the element accordingly (no parent element with ID for example) and defaults to the tag index. Which in turn records brittle find logic and the app makes it easier to break by updating the HTML adding more span elements according to the user actions. For example you record a test but continue to do something in the same browser instances so you get more elements in the HTML and on playback in the same instance the test fails because it finds another element (span:560 for instance no longer corresponds to the KendoUI widget).

Useful resources:
http://docs.telerik.com/teststudio/user-guide/project-settings/identification-logic.aspx
http://tv.telerik.com/watch/automated-testing-tools/test-studio-flexible-locators
http://docs.telerik.com/teststudio/user-guide/elements-pane-overview/find-element.aspx

Regards!