website logo
⌘K
Welcome to 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
Autonomous Testing
How Does Relicx AutoTest Work?
Benefits of Relicx AutoTest
Running Autonomous Test
Interpreting the results
Adding Tests
User-Defined Tests
Generating Tests from User Sessions
Creating Tests with Chrome Extension
Interactive Test Authoring (Coming Soon)
Editing Tests
Running Tests
Test Run Page
Test Suite
CI/CD Integration
Notifications
Slack
Email
Video Resources
Changelog
Docs powered by archbee 
7min

Data Driven Tests

Data-Driven Testing is a common extension of any kind of automated test, and Relicx provides the capability to execute tests with parameterised datasets, and to execute multiple iterations of the testing with different pieces of data

Providing data sets for a test suite

To iterate a set of tests for different combinations or instances of data, we can provide Relicx with a file that specifies what values each Parameter should take with each “Iteration”. Relicx will then run the suite of tests multiple times, once for each instance of data

File format

Below is an example of of the JSON file we would upload to drive the testing in Relicx:

JS
|




  1. “Iteration 1” & “Iteration 2” are labels we can define for our different iterations of data for reporting purposes, within each object we define the data for that suite test run
  2. "ACCOUNT_TYPE", "DEPOSIT_AMOUNT", "EXPECTED_PAGE" etc. are the names of our parameters that we have been using in our suite, within the iteration objects you can see the values that will be executed. In this example we are running our suite twice, once with a “FORM_ACTION” of “reset” and once with a value of “submit”
  3. “All” refers to the scope of our data: it refers to all of the tests in our suite. This means we will run All of our tests with the following iterations/data
  4. If we need our individual tests to use different data values from one another, we can declare them separately by using their IDs instead of “all” like so:
JS
|


Here we can see that we can have different iterations, and different data within them, per test in the suite.

Running a data driven suite

When we execute a suite, we are offered a button to upload the JSON file that drives our data-driving, Relicx will then execute according to the file.



Data driven test results

When our test suite has finished executing, the report will display each of the test iterations separately so you can view them each as their own test report



If you click through to one of them you will see a regular test report, you can always view the parameters tab to understand the values used in a particular iteration





Updated 06 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Test Run Page
Docs powered by archbee 
TABLE OF CONTENTS
Providing data sets for a test suite
File format
Running a data driven suite
Data driven test results