Use Test Data
Using test data is a simple way to inject dynamic data into your tests. Our AI will identify the data needed for each test and use your added data when generating tests.
The data here will be used independently by each test. For global test data shared by all tests, refer to the Global Setup And Teardown page.
Pre-condition: You must add your data file in the stably/data
directory.
Static Data
Add your static data as a JSON
file. The file name will be used as the data name. For example, you can add a user.json
file with the following content:
Dynamic Data
Add your dynamic data as a js
file. The file name will be used as the data name. It must export a function that returns a JSON
object.
For example, you can add a new_event.js
file with the following content:
Was this page helpful?