RadDocking Silverlight not recognising AutomationProperties.AutomationId for Coded UI test

4 posts, 0 answers
  1. Sus
    Sus avatar
    2 posts
    Member since:
    Mar 2014

    Posted 27 Mar 2014 Link to this post

    I am working on Coded UI automation for my Silverlight project. I am using RadDocking control in one of my page. 

    I can able to record the controls inside of the RadDocking, but while running the test it's failing. It is not running the steps which I have recorded. Can anyone help me on this issue?

    Here is the sample code below which I have in my Silverlight page.
    <telerik:RadDocking x:Name="RadDocking" AutomationProperties.AutomationId="telerikRadDocking" Background="Transparent" BorderThickness="0" Margin="0">
                                        <telerik:RadDocking.DocumentHost>
                                            <telerik:RadSplitContainer>
                                                <telerik:RadPaneGroup Style="{StaticResource MainRadPaneGroupStyle}">
                                                    <telerik:RadDocumentPane CanUserClose="False" Visibility="Collapsed">
                                                        <telerik:RadDocumentPane.Content>
                                                           <Border Grid.Row="0" Style="{StaticResource ContentBorder}">
                                                                <!-- Content Panel -->
                                                                <ScrollViewer x:Name="PageScrollViewer" AutomationProperties.AutomationId="svPageScrollViewer" BorderThickness="0" Margin="0,2,0,2" VerticalAlignment="Top">
                                                                    <StackPanel x:Name="ContentStackPanel" AutomationProperties.AutomationId="spContentStackPanel" VerticalAlignment="Top" Background="White">
                                                                        <Grid x:Name="grdEmployeeInfo" AutomationProperties.AutomationId="grdEmployeeInfo" HorizontalAlignment="Stretch" VerticalAlignment="Top" >
                                                                            <Grid.ColumnDefinitions>
                                                                            <ColumnDefinition Width="*"/>
                                                                            </Grid.ColumnDefinitions>
                                                                            <Grid.RowDefinitions>
                                                                                <RowDefinition />
                                                                                <RowDefinition  Height="2"/>
                                                                                <RowDefinition />
                                                                                <RowDefinition  Height="2" />
                                                                            </Grid.RowDefinitions>
                                                                            <Border x:Name="sectAlerts" Grid.Row="0" Grid.Column="0" 
                                                                                    Style="{StaticResource UserControlBorder}" VerticalAlignment="Top" 
                                                                                    Visibility="{Binding Converter={StaticResource DisplayUserControlsHandler},ConverterParameter=Alert,Mode=OneWay}">
                                                                                <UC:Alert x:Name="ctrlAlert" AutomationProperties.AutomationId="ctrlAlert" ></UC:Alert>
                                                                            </Border>
                                                                            <Border x:Name="sectSummary"
                                                                                    Grid.Row="2" Grid.Column="0"
                                                                                    Style="{StaticResource UserControlBorder}" VerticalAlignment="Top"
                                                                                    Visibility="{Binding Converter={StaticResource DisplayUserControlsHandler},ConverterParameter=OrderAuditSummary,Mode=OneWay}"
                                                                                    Tag="{Binding RelativeSource={RelativeSource Self}, Path=Name}">
                                                                                <UC:Summary x:Name="ctrlSummary" AutomationProperties.AutomationId="ctrlSummary"
                                                                                                           DataSource="{Binding DataContext, ElementName=EmployeeInfo, Mode=TwoWay}"
                                                                                                           AnchorSettings="{StaticResource AuditAncorSetting}" />
                                                                            </Border>
    </Grid>
                                                                    </StackPanel>
                                                                </ScrollViewer>
                                                            </Border>
                                                        </telerik:RadDocumentPane.Content>
                                                    </telerik:RadDocumentPane>
                                                </telerik:RadPaneGroup>
                                            </telerik:RadSplitContainer>
                                        </telerik:RadDocking.DocumentHost>
  2. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 27 Mar 2014 Link to this post

    Hi Sus,

    Are you using this plugin for creating Coded UI Tests for Silverlight?
    Please note that it is not official Microsoft tool and it could have some issues and therefore it is not supported for the Telerik controls:
    "A few members of the product team got together and built this plugin as an off-hours project. It is not an official Microsoft release."


    Also we used to have similar issue and if you are not using the latest version of the controls upgrading to it could solve the issue.

    Regards,
    Georgi
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. DevCraft banner
  4. Sus
    Sus avatar
    2 posts
    Member since:
    Mar 2014

    Posted 27 Mar 2014 in reply to Georgi Link to this post

    Hi Georgi,

    I am using the latest version of the same tool - Microsoft Visual Studio UI Test Plugin for Silverlight.

    While recording the steps for test it recognizes the control, but while running the test it fails to recreate the steps. I have debug my test application and found that It could not able to find the RadDocking control.

    Thanks
    Susanta
  5. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 28 Mar 2014 Link to this post

    Hi Sus,

    Thank you for the feedback.
    Keeping in mind that this is not a official Microsoft tool and  therefore we can not claim support for it we are at this moment gathering feedback about it.

    So once again thank you for the information, we will have it in mind when we are evaluating the plugin and its support for our controls.

    Regards,
    Georgi
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top