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

RadDocking Silverlight not recognising AutomationProperties.AutomationId for Coded UI test

3 Answers 37 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sus
Top achievements
Rank 1
Sus asked on 27 Mar 2014, 05:54 AM
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>

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 27 Mar 2014, 09:38 AM
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.

 
0
Sus
Top achievements
Rank 1
answered on 27 Mar 2014, 11:28 AM
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
0
Georgi
Telerik team
answered on 28 Mar 2014, 12:01 PM
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.

 
Tags
Docking
Asked by
Sus
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Sus
Top achievements
Rank 1
Share this question
or