Applies to TestComplete 14.50, last modified on August 05, 2020
You can use a form to ask testers for their user name and password. To enter passwords, use the
TcxTextEdit component. This component has a special property that is used for password typing. In this mode, the component replaces entered characters with asterisks or any other character.
- Open the desired form for editing.
- Place the
TcxTextEdit component on the form.
- Select the component on the form and switch to the Properties panel.
- In the Properties panel, expand the Properties node and specify the eemPassword value in the EchoMode box:
Setting this value specifies the component to work in password mode during the test run.
- Using the PasswordChar property you can specify the character that TestComplete will display in the edit box instead of typed characters.
You can either specify the desired character (for instance,
|), or specify the character’s ASCII code, for instance, #65. By default, the property holds the #0 value that corresponds to the asterisk character.
- Choose File | Save to save the changes.
||By assigning a value to the
Text property of the
TcxTextEdit component at design time, you specify the string to be displayed in the component by default. If you use
TcxTextEdit component in password mode, do not specify the default password in the
Text property, since the property’s value is not encoded. It is stored in the project item file in plain text format.
User Forms Editor