Content Assist

Use Content Assist in the test editor to complete your action lines faster and with more accuracy.

TestArchitect's Content Assist feature provides context-sensitive assistance as you author your action lines in test modules, actions, interface entities and data sets. Autocomplete pop-up windows are used to offer appropriate choices for action names, domain-limited argument values, variable names and function names. Whenever a pop-up appears, you have the option of selecting an item from the list for insertion into the current cell. Furthermore, Content Assist's pop-ups for actions offer helpful descriptive information on each action.

Action assistance

As you begin creating an action line by typing an action's name into the first cell of a row (that is, column A), Content Assist pops up a small window displaying valid user-defined and built-in actions. If you continue typing, the list is continuously filtered down to only those actions that contain the entered sequence of characters. (Actions that actually begin with the sequence appear first in the list.)

Use the Up and Down arrow keys to scroll through the available choices. Note that, as each action is selected, its description is displayed, along with its argument list.

Tip: When you first enter a new cell, and before typing any characters, you may also press Ctrl + Space or Space to invoke Content Assist. If editing an existing action line, pressing Ctrl + Space also brings up Content Assist with appropriate selections.

After selecting an action, you can insert it into your test editor by pressing Enter.

Argument assistance

When you begin typing into the cell of an action line argument whose type is INTERFACE ENTITY, INTERFACE ELEMENT, or VALUE SET, Content Assist displays a list of all appropriate values. The list is continuously filtered to include only the items that begin with the entered characters.
  • In the case of INTERFACE ENTITY-type arguments (generally, arguments named window), Content Assist supplies the names of all interface entities of your project's assumed interface:
    Note: Note that Content Assist tries to make an educated guess as to the interface that will be in effect at any given point in your test module, so that it may present you with the appropriate interface entities. Action lines following a use interface action are assumed to use to the target interface of that action. In the absence of a use interface action, action lines are assumed to apply to whatever interface is currently designated as the default.
  • Once a window or dialog is specified, INTERFACE ELEMENT-type arguments (typically named control), have their domains limited to the elements (controls) of the given interface entity.
  • VALUE SET-based arguments are those for which a domain of allowable values has been explicitly specified; this set of values serves as the pre-filtered source of the Content Assist list.

Note: As with action assistance, you can also press Ctrl + Space or Space to access Content Assist for argument lists at any time.
After selecting an item, you insert in into your test editor by pressing Enter.

Variable and function assistance

For those arguments which accept expressions (which include variables and functions), Content Assist attempts to compile a list of all known variables based on those that have been declared and appear to be within scope at that given point, along with a list of valid built-in expression functions. For these arguments, entering the expression indicator (#) triggers the list. As you continue typing characters, the list is filtered to include only the variables and the expression functions that begin with those characters.

After selecting an item with the Up/Down keys, insert it into the editor by pressing Enter.
  • As you enter an expression function, a screentip appears displaying the function's syntax.

  • If more than one variable or expression function is needed in an expression, press Ctrl + Space to trigger the autocomplete for each variable/function.

Applicable actions assistance

It may often be the case that you need to write one or a series of test cases related to a given control, but you are not certain which actions can be used on that control. In general, the determination of whether a given control can be handled by a certain action is based on the TA class of the control. To allow you to avoid constantly referring to the Built-in Action reference pages to determine which actions can be used for a control, a Content Assist window is available for any mapped control, presenting a list of those actions that may be used with it. For details, see Applicable action suggestions for a window or control.