How-to

Empty assert (toBeEmpty)

Empty assert (toBeEmpty) ​

Expect assertion: the Target has no text or value.

Step model ​

action_nametoBeEmpty
GroupExpect
TargetRequired
ValueUnused
expected_valueUnused
TEST_ACCOUNTForbidden
Do not confuse withtoHaveValue, clear

Target/Value facts match the source-of-truth catalog and Autotest step.

Prerequisites ​

  1. Target is a field or an element with text.

Steps ​

  1. Add a toBeEmpty step.
  2. Set Target.
  3. Leave Value empty.
  4. Save.

The step is stored on the autotest. Next - neighbouring steps or autotest run creation.

Examples ​

Fields in the UI:

FieldValue
action_nametoBeEmpty
Targetkind LABEL, value Search

Step JSON fragment (copy-paste):

json
{
  "action_name": "toBeEmpty",
  "target": {
    "kind": "LABEL",
    "value": "Search"
  }
}

Common mistakes ​

  • An empty field and a field of spaces are not the same thing on the page.

Screenshots ​

Screenshots of the step form for toBeEmpty will be added here in a later pass.

Version 1.0.0 · Last updated 2026-10-03

Did this page help?