Date Picker identification issue with CodedUI Test Framework

6 posts, 0 answers
  1. Bhagavan
    Bhagavan avatar
    5 posts
    Member since:
    Jun 2013

    Posted 11 Jun 2014 Link to this post

    Hi Team,

    We are using VS Coded UI test Framework to test our applications developed with Teleric. We have an application which is using RadDatePicker control from 2014 Q1 release. While automating with CUIT we have noticed that this DatePicker control is identified as Custom control. We would like CUIT to be identifying this control as DatePicker type. So that inorder to set date on the control we can make use of DateAsString property on it [while automating].

    We are using CUIT from VS2012 with update2.

    Following is the xaml for the sample application on which we can repro the issue:
    <Window x:Class="TelerikWpfApp1.MainWindow"
                    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"
                    Title="MainWindow" Height="350" Width="525">
            <Grid>
            <telerik:RadDatePicker HorizontalAlignment="Left" Margin="149,115,0,0" VerticalAlignment="Top" Width="100"/>
        </Grid>
    </Window>
  2. George
    Admin
    George avatar
    1332 posts

    Posted 11 Jun 2014 Link to this post

    Hello Bhagavan,

    We are aware of this discrepancy with RadDatePicker control type. We tried to register the control as DatePicker/DateTimePicker, but we failed due to some framework limitations. There is no such type in the AutomationControlType enum so we fallback to Custom. We know that the MS DatePicker control is read as DatePicker in the coded UI recorder and we contacted Microsoft if we can get more information how to do the same with the RadDatePicker/RadDateTimePicker control. We haven't received an answer from them for now and we are still waiting. Hopefully they will send us the required information and we will update our code as well.

    Regards,
    George
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. Bhagavan
    Bhagavan avatar
    5 posts
    Member since:
    Jun 2013

    Posted 11 Jun 2014 in reply to George Link to this post

    Hi George,

    Thanks for quick replay.

    This is blocking issue for us. Please let us know once it is fixed.

    Thanks&Reagards,
    Bhagavan.
  4. George
    Admin
    George avatar
    1332 posts

    Posted 13 Jun 2014 Link to this post

    Hello Bhagavan,

    Please note that we consider this as a framework limitation. We will try to find a way to set RadDateTimePicker as DatePicker control type when Microsoft contact us with a solution.

    Regards,
    George
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  5. Sutha
    Sutha avatar
    1 posts
    Member since:
    Jan 2015

    Posted 15 Jan 2015 in reply to George Link to this post

    I have same issue, I am using coded UI to automate the window store app which has telerik control. On the datepicker control coded UI was unable to find that control. Any update on this issue
  6. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 20 Jan 2015 Link to this post

    Hi Sutha,

    Can you please confirm if you are using DateTimePicker for WPF or for Windows8 as this issue is for WPF?

    Regards,
    Kalin
    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.

     
Back to Top