When testing WPF PasswordBox controls, you can use properties and methods specific to these controls, as well as properties and methods that TestComplete applies to tested objects, onscreen objects and window objects. If the specified custom control does not fit the control’s type, then it may not properly respond to commands that TestComplete sends, so recording or playing back user actions over the tested control will cause errors. Once the control is mapped, it gets all the properties, methods and actions specific to the WPF PasswordBox control. For detailed information, see Object Mapping. TestComplete will retrieve the control’s class name and add it to the selected mapping group automatically. As an alternative, you can click Add From Screen and select your custom control on screen. If you do not know the control’s name, you can ask the control’s developers, or you can view the control’s ClrFullClassName property in the Object Browser panel. Open your project’s Object Mapping options.Īdd the control’s class name to the WPF Controls | Password edit group. To command TestComplete to recognize your custom controls as Group.) If the plugin is not available, run the TestComplete installation in the Repair mode. If you experience issues when working with the controls, select File > Install Extensions from the TestComplete main menu and check whether the plugin is active. This plugin is installed and enabled automatically as part of the TestComplete Desktop module. Support for the WPF PasswordBox controls is implemented by the WPF Control Support plugin. This is VB.Net, but in case you are looking for C, the corresponding code should be pretty easy to infer. You can also command the test engine to recognize custom controls as WPF PasswordBox controls. Private Sub yourCheckboxCheckedChanged (sender As Object, e As EventArgs) Handles yourCheckbox.CheckedChanged If (yourCheckbox.Checked true) then yourTextBox.UseSystemPasswordChar true Else yourTextBox.UseSystemPasswordChar false End If End Sub. The control’s class name must be specified in the WPF Controls | Password edit group of your project’sīy default, this group contains the following item: You must have an active license for the TestComplete Desktop module. In order for TestComplete to be able to work with WPF PasswordBox controls, the following requirements must be met: It provides special properties and methods that let you retrieve the controls data and simulate user actions on the controls (see below). TestComplete can recognize WPF PasswordBox controls in WPF applications.
0 Comments
Leave a Reply. |