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

RadMaskedTextInput: how to insert value in it using Test Studio

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kanwarjit
Top achievements
Rank 1
Kanwarjit asked on 13 Jan 2017, 10:08 AM

RadMaskedTextInput: how to insert value in it using Test Studio, I need to raise the valuechanged event so that other button on UI will be enabled.

 

Thanks,

Kanwar

2 Answers, 1 is accepted

Sort by
0
Kanwarjit
Top achievements
Rank 1
answered on 13 Jan 2017, 03:12 PM
We are using RadMaskedTextInput, could you tell me anyway to fill its value(or text) which will generate the changed event so that other controls on screen will use it to enable them self.
Basically I am able to enter value into RadMakedTextInput but its not doing anything. It looks like we need to do some action so that this control value must be changes. I need the way in test studio or any code snippet which I can use here in my test suite code.


<Border Grid.Row="1" Grid.Column="3" Visibility="{Binding ShowAlias, Converter={converters:BooleanToVisibility Flavor=Collapsed}}"  VerticalAlignment="Center">
            <telerikInput:RadMaskedTextInput Mask="" Placeholder=" " IsClearButtonVisible="False" Margin="1,0" TabIndex="2" x:Name="txtAlias" EmptyContent="Alias" Height="22" Width="150"
                                       HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Value="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.Alias,Mode=TwoWay}"
 Background="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.IsAliasValid, Converter={StaticResource falseYellowBrushConverter}}"
                                       Visibility="{Binding Model.PortfolioProviderWrapper.ProviderViewModel.IsAliasAllowed, Converter={converters:BooleanToVisibility Flavor=Collapsed}}" InputBehavior="Insert"/>
        </Border>
0
Elena
Telerik team
answered on 18 Jan 2017, 08:25 AM
Hi Kanwar,

Since there is an event attached to the text input it needs to be triggered for the proper work of the tested application. Here is how you could fire the events in code. I hope this will be helpful to you. 

Regards,
Elena Tsvetkova
Telerik by Progress
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Kanwarjit
Top achievements
Rank 1
Answers by
Kanwarjit
Top achievements
Rank 1
Elena
Telerik team
Share this question
or