Skip to content

Latest commit

 

History

History
 
 

create-data-driven-tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Create Data-Driven Tests

Test Code: index.js

This example shows how to create a test that performs parameterized actions and run this test against two data objects.

The test function is wrapped in a foreach cycle that iterates through a data set. Data objects are imported from the data.json file. Test code uses data object's fields as input and expected values.