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>
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>