Methods
-
register() → {void}
-
Description
Registers csv helper
- Define request and logger in the scope of the code helper context, allowing user to use request, logger in their mock files
- Fetch the file path, key, value and random variables from the the helper
- Throw error if file path not defined log and return appropriate error
- if random is true, evaluate response for one random row from csv file
- else, evaluate response for all rows from csv file matching a search pattern using specified key and value
Returns
Details