User Forms – Overview
Test and Monitor | Posted January 15, 2007

One of the most exciting features of TestComplete 5 is the ability to create user-defined forms and display them during the test execution. Testers can use these forms, for example, to select tests to be run, to input test parameters or to display information about the test execution.

TestComplete includes an easy-to-use designer (see the image below) where you can visually create and modify forms. It is similar to Microsoft Visual Studio or Borland Developer Studio form designers.

TestComplete includes 24 built-in components that included simple controls such as button, label, panel, spin edit and complex controls such as date and time editors, a text editor that “remembers” previously entered values, a text editor with integrated buttons that can be used to call dialogs or perform other actions, and even a numeric editor with a dropdown calculator. There are also full-featured dialog components that can be used to select one or several files or a whole directory.

You can place controls on the form, align them, change their size, customize their look and other properties, as your needs dictate. You can also assign script procedures to events that occur in controls and thus process button clicks and changes in control values.

Forms can be displayed from TestComplete scripts in two different ways:

  • Modal dialog boxes, which require the user to close the dialog box before continuing the test execution. Use these forms when you need the tester to select the test scenario or input initial test parameters.
  • Non-modal windows, which stay visible during the whole text execution. You can use these forms to display information about the test execution (such as the overall test progress), or to change test parameters “on the fly”.

Within scripts, you have full access to all forms defined in the project and their controls. You can show or hide forms, determine their result, and, of course, obtain and modify controls’ values and other properties.

In one of my future posts I will describe in detail how to create and customize forms in TestComplete and how to display them and process their results in scripts.


Close

By submitting this form, you agree to our
Terms of Use and Privacy Policy

Thanks for Subscribing

Keep an eye on your inbox for more great content.

Continue Reading

Add a little SmartBear to your life

Stay on top of your Software game with the latest developer tips, best practices and news, delivered straight to your inbox