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

2 posts, 0 answers
  1. WinBIZ
    WinBIZ avatar
    1 posts
    Member since:
    Sep 2014

    Posted 25 Nov 2014 Link to this post

    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

  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 26 Nov 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top