Won't Fix
Last Updated: 21 Jul 2016 12:23 by ADMIN
ADMIN
Velin Koychev
Created on: 26 Nov 2013 13:20
Type: Bug Report
0
Issue with the recorded find logic of TextBox in a WPF application for GridView inline editing scenario
Test Studio records successfully the typing step in a WPF application that uses RadControls version 2013.3.1016.45.

When you try to execute the test, it fails with exception that the element is not located.

During a further examination, we can see that Test Studio has recorded a  TextBox element with a find logic that includes AutomationId. The problem comes from the fact that the GridView gives AutomationId to the TextBox element only after you type at least one character inside this TextBox element. Before the typing, this element doesn't have AutomationId and for that reason Test Studio is not able to locate it.

Sample test and WPF application are attached in the internal description.
6 comments
ADMIN
Konstantin Petkov
Posted on: 21 Jul 2016 12:23
Hello,

The only way to unify the recording and execution behavior is to disable the automation peers as pointed out above. This requires a respective application update and is out of the control for Test Studio.

Regards!
Tomasz
Posted on: 21 Jul 2016 12:05
I have a question - is there an option, that the AutomationId's were generated during test execution? Could we (e.g in first coded step of the test) generate the AutomationId's in the same way they are generated when test is recorded?
ADMIN
Maya
Posted on: 06 Nov 2014 15:26
The solution is to disable the automation peers with the help of AutomationManager ( http://www.telerik.com/help/wpf/common-ui-automation.html) - functionality available from Q2 2014 SP. Thus the AutomationID will not be set while recording the test and on the playback all criteria will match.

The reason for the behavior is that when a test is recorded, the first thing which is taken as search criterion is the AutomationID. The peer of the cell is invoked, the override of GetAutomationId method is called and the AutomationId is assigned to the editing element. When the test is playbacked, GetAutomationID method is not called again and the elements do not have their AutomationID-s being set. As a result, when they are searched for, they cannot be found.
ADMIN
Iliyan Panchev
Posted on: 08 Oct 2014 08:44
This is out of our control. If you experience such problems, contact the rad controls team.
ADMIN
Vera
Posted on: 10 Dec 2013 15:40
Hi, 

The issue has been reopened since it is reproducible with the latest version of RadControls for WPF. We will need some time to investigate it and will provide more information once it is available.
ADMIN
Konstantin Petkov
Posted on: 27 Nov 2013 14:31
Hello,

That appeared to be a temporary problem in RadGridView resolved with latest build.

Regards!