Skip to content

Rules and Logic ​

Form Control Names ​

When writing feature files in AireAssert, avoid using question marks (?) and apostrophes (') in your test commands. Including these will cause the test to fail.

Note: Although your form’s field labels may include question marks (?) and apostrophes ('), you must omit these characters when referencing fields in your steps.

Example of a Failing Scenario ​

gherkin
Scenario: Complete Form
  Given we are completing the testing eform
  When we set 'Testing?' to 'Yes'
  Then 'control-1' is not empty

Corrected Scenario ​

Remove the question mark from the field label:

gherkin
Scenario: Complete Form
  Given we are completing the testing eform
  When we set 'Testing' to 'Yes'
  Then 'control-1' is not empty

Other Symbols ​

All other punctuation and symbols are supported. For example, an exclamation mark is fine:

gherkin
Scenario: Complete Form
  Given we are completing the testing eform
  When we set 'Testing!' to 'Yes'
  Then 'control-1' is not empty

Referencing Controls by ID ​

As an alternative to labels, you can reference controls using their building block and control name:

gherkin
When we set 'building-block-name-control-name' to 'Yes'