This is a migrated thread and some comments may be shown as answers.

Microsoft CodedUITest Recorded property generated different depending of Pc's language

1 Answer 96 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
WinBIZ
Top achievements
Rank 1
WinBIZ asked on 25 Nov 2014, 10:53 AM
Hi,

I'm encoutering an issue while trying to record a CodedUI Test over a very simple WPF application which looks like this :

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525">
  <Grid Margin="0,0,2,0">
    <telerik:RadTabControl HorizontalAlignment="Stretch" Margin="14,27,0,10" VerticalAlignment="Stretch">
      <telerik:RadTabItem Header="Tab1" Content="abc"/>
      <telerik:RadTabItem Header="Tab2" Content="abc"/>
    </telerik:RadTabControl>
  </Grid>
</Window>

I'm using a Windows 8.1 workstation. If the language English (US) is used as the Windows display language, when I try to perform an assertion on the RadTabControl, the ItemStatus property contains the following generated string, which seems correct :
... <Property Name="SelectedValue" Value="Telerik.Windows.Controls.RadTabItem Header:Tab1 Content:abc" /> ...

In another hand, if the language pack French (Switzerland) is used, with the exact same application and the exact same assertion, the generated string looks like this :
... <Property Name="SelectedValue" Value="Telerik.Windows.Controls.RadTabItem Header : Tab1 Content : abc" /> ...

We can notice the whitespaces added before and after the column character.

The issue with this behavior is that if we record a CodedUI Test on machine with English (US) settings, and playback on a machine with French (Switzerland) settings, the assertion will fail.

Can someone please look into this issue ?

Thank in advance.
-Vince

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 26 Nov 2014, 01:10 PM
Hi,

I created a sample app according to your details. Using the Coded UI Test Builder I inspected the tab control, however I was not able to reproduce the issue. Could you please provide us with more information regarding the version of the controls you are currently using. Also is this reproducible with the latest version? Any more info on the matter will help us locate what is causing it.

Regards,
Peshito
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
WinBIZ
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or