> For the complete documentation index, see [llms.txt](https://wiki.loadium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.loadium.com/test-settings/file-output.md).

# File Output

A quick guide to output custom files from your test runs

Loadium allows you to generate custom files, download and access them in your JMeter tests using its "Custom Logging" feature.

<figure><img src="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FvXUc4NdQqZrQ1wi11pha%2Fimage.png?alt=media&amp;token=36e35e3e-5253-43f0-b948-dc1e828271eb" alt=""><figcaption></figcaption></figure>

You can use custom libraries (such as java.io.File) to generate files.

For example, we have a Groovy script for creating a `.txt` file for logging, as shown below:

<figure><img src="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FYj4j0yJZPj3uLgRJa6v0%2Fimage.png?alt=media&amp;token=77599a0e-1e8f-4d26-a288-731b9a09d1f3" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note: As mentioned above, output path of your custom file must be set as "useroutput/myFileName" in order to access your file.**
{% endhint %}

Run the test for which you want to get the file outputs and wait for the test to finish.

Once your test is complete, navigate to the **Actions** button in the top-right corner and select **Download Test Files** to download the main test folder.

<figure><img src="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FSWVEz5rTXGsHgCdyJSbF%2Fimage.png?alt=media&amp;token=c7282de6-d97f-46d3-b69e-bf619bbd0459" alt=""><figcaption></figcaption></figure>

Now you can access the output files of your test simply by unzipping specified output file.

<figure><img src="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FFLQOLmdEpBnPkto7jA8M%2Fimage.png?alt=media&amp;token=514120dc-77e0-4682-b664-387ad878831e" alt=""><figcaption></figcaption></figure>
