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

Assertions

13min

Assertions are a very important components of a test. They make a test robust and are the right way to determine whether your application is working as desired. Relicx supports a variety of assertions. In this section below we will describe each of them

Visual Assert

Description

Visual asserts are very important to determine whether elements are displayed correctly. They are often used to ensure a variety of visual validations starting from whether a logo is displayed correctly to whether the chart is displayed correctly with the same input data.

While creating this assertion, the user is supposed to select a specific area in the app

Parameter options

None

Advanced options

User can set a threshold that determines the sensitivity of comparison.

Return value

True or False

Document image


Assert user question

Description

This assertion uses AI to verify a question that a user may have on a specific page. For example a user may ask a question like "Am I on the dashboard page ?" , Relicx AI evaluates this question and returns a True or False

Parameter options

Question: Input for user question.

Make sure the question can be answered in True or False.

Advanced options

None

Return value

True or False

Document image


Wait for text

Description

This is one of the most popular assertions that allow the user to check whether a text exists or not within a specified wait time. It also allows the user to set multiple retries after a specified wait time.

This assertion can be used to assert on text embedded in other elements like buttons.

Parameter options

Text: This is the string that we are looking for Present: This a boolean flag to determine whether the text exists or not

Advanced options

Maximum time to wait in ms: typically 30000 Reload attempts: typically 0 Retry delai in ms: typically 5000 Target picker: used to update the object

Return value

True or False

Document image


Assert object is visible

Description

Used to assert existence of a specific object

Parameter options

Target picker to pick the object

Advanced options

None

Return value

True or False

Assert object is clickable

Description

Used to assert whether object is clickable

Parameter options

Target picker to pick the object

Advanced options

None

Return value

True or False

Assert object is not clickable

Description

Used to assert whether object is not clickable

Parameter options

Target picker to pick the object

Advanced options

None

Return value

True or False

Run custom script

Description

If the user wants to run a custom script as part of the test execution, they can use this option

Parameter options

Number of attempts: Usually 1 Time between retries in ms: usually 0 Script content

Advanced options

None

Return value

True or False

Document image


Assert URL

Description

Used to assert the test is on the desired URL

Parameter options

This assertion can either match the entire or part of the URL and users can use one of the condition types to match the URL

Advanced options

None

Return value

True or False

Document image




Updated 16 Jun 2023
Did this page help you?
PREVIOUS
User Actions
NEXT
Conditionals
Docs powered by
Archbee
TABLE OF CONTENTS
Visual Assert
Assert user question
Wait for text
Assert object is visible
Assert object is clickable
Assert object is not clickable
Run custom script
Assert URL
Docs powered by
Archbee