Skip to content

Commit 339db76

Browse files
authored
Added instructions around file support
1 parent 767d7c1 commit 339db76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ You can also modify the **extension** of the file.
6060

6161
**Example:**
6262
In case you want to write CSV data to a file, all you need to do is change the `fileExtension` property in the `Tests` script to `csv`.
63+
64+
65+
## File Support
66+
You can modify the `opts` variable as per your need under the `Tests` tab of the collection, the following features are supported:
67+
68+
1. If you want all the data to be written to a single file then you can modify the value of mode to appendFile instead of writeFile (More functions here: [Node FS](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback))
69+
70+
2. If you want each response to be stored in a different file, then you can provide a `uniqueIdentifier` such as `Date.now()` or some environment variable as a counter, and it'll be used generate unique file names. You can also make the value of uniqueIdentifier as `true` and the server will internally append a unique number to every file name.

0 commit comments

Comments
 (0)