website logo
⌘K
Welcome to Relicx
How does Relicx work ?
Benefits of Relicx
Getting Started
Sign-up
Instrumenting Your App
Security and Privacy
Application & Environments
Adding Application
Adding a new Test Environment
SDK
getSessionUrlCallback()
identify()
Log()
sessionVars()
sessionLabels()
User Sessions
Session Replay and Detail
Developer Console
Automatic Release Validation
How Does Relicx Release Validation Work?
Benefits of Relicx Release Validation
Running Release Validation
Interpreting the results
Adding Tests
Smart Tests
Interactive Test Authoring
Generating Tests from User Sessions
Editing Tests
Running Tests
Test Run Page
Test Suite
CI/CD Integration
Notifications
Slack
Email
Additional Resources
Importing tests into Relicx
Testing Firewall Protected Apps
Timezones
How-to-Guides
Instrumenting Your App
Convert a session with errors to test
Video Resources
Changelog
Docs powered by
Archbee
Smart Tests
Interactive Test Authoring

Conditionals

5min

These conditionals allow users to define different execution paths in a test based on a specied condition. A test can use a combination of IF, ELSE IF, ELSE and END IF. If the IF doesn't have a corresponding END IF then the user cannot save the test. Such errors are highlighted in red.

IF / ELSE IF

Description

This condition takes a custom javascript as an input. The script must evaluate to TRUE or FALSE. If the condition returns true then subsequent steps in the test block are executed.

Parameter options

Custom Script

Advanced options

None

Return value

TRUE or FALSE

Document image


ELSE

Description

Used to create an alternative path for test execution

Parameter options

None

Advanced options

None

Return value

None

END IF

Description

Used to end a conditional block

Parameter options

None

Advanced options

None

Return value

None



Updated 16 Jun 2023
Did this page help you?
PREVIOUS
Assertions
NEXT
Generating Tests from User Sessions
Docs powered by
Archbee
TABLE OF CONTENTS
IF / ELSE IF
ELSE
END IF
Docs powered by
Archbee