Skip to main content

User Actions

Overview

In interactive authoring of tests, Harness AIT automatically records each user action as you interact with your application. These actions create a sequence of steps that represent your activity. While user actions are captured automatically, you can also add assertions to ensure test steps execute as expected.

This document provides an overview of all supported user actions. For information on assertions, please review the Assertions section.

Supported Actions

Click

The most commonly used command in all tests.

FeatureDescription
DescriptionClick on any place in the viewport to register a click command as a test step. No additional action required.
Parameter optionsYes. Parameterize based on input
Advanced optionsControl Network based waits
Return valueNone

Write

Used to input text into form fields.

FeatureDescription
DescriptionWrite text in any input field
Parameter optionsCan be parameterized by first setting a parameter using the Set Parameter command
Advanced optionsNone
Return valueNone

Select

Used for selecting values from dropdown lists.

FeatureDescription
DescriptionSelect a value from a list
Parameter optionsNo
Advanced optionsNone
Return valueNone

tip

Click, Write, and Select are automatically detected by Harness AIT. Users don't need to select these commands from a list.

Used to navigate to specific URLs.

FeatureDescription
DescriptionNavigate to a specific URL
Parameter optionsNo
Advanced optionsBASE_URL translation: Set to True or False depending on URL type. For external URLs, set to False
Return valueNone
set-parameter

Wait for Time

Creates a timed pause in test execution.

FeatureDescription
DescriptionWait for a specified period of time
Parameter optionsTime in milliseconds to wait
Advanced optionsNo
Return valueNone
set-parameter

Reload

Refreshes the current page.

FeatureDescription
DescriptionReload or refresh the page (infrequently used)
Parameter optionsNo
Advanced optionsNo
Return valueNone

Viewport

Adjusts the screen dimensions for testing responsive designs.

FeatureDescription
DescriptionSet the width and height of the screen to emulate different device sizes
Parameter optionsWidth (e.g., 1440 px), Height (e.g., 900 px)
Advanced optionsNo
Return valueNone
viewport

Key Press

Simulates keyboard input.

FeatureDescription
DescriptionPerform a key press action (e.g., Enter while in a text field)
Parameter optionsCommand to be sent
Advanced optionsNo
Return valueNone
keypress

Mouse Over

Simulates hovering over elements.

FeatureDescription
DescriptionPoint the mouse to a specific target (useful for displaying hover menus)
Parameter optionsNone
Advanced optionsNo
Return valueNone

Double Click

Performs a double-click action.

FeatureDescription
DescriptionDouble click on a target
Parameter optionsNone
Advanced optionsNo
Return valueNone

Right Click

Simulates a right-click mouse action.

FeatureDescription
DescriptionRight-click on a target
Parameter optionsNone
Advanced optionsNo
Return valueNone

Set Parameter

Creates dynamic variables for test execution.

FeatureDescription
DescriptionSet a parameter during test execution to use values dynamically between steps
Parameter options• Name of the parameter Value of the parameter (select from list or use custom script)
Advanced optionsSet context as Run time, App, or Test Suite
Return valueNone
set-parameter