# Get results HTML path/filename through code

**URL:** <https://forum.katalon.com/t/get-results-html-path-filename-through-code/50526>\
**Category:** Integrations\
**Tags:** reports, integrations, katalon-studio\
**Created:** [December 23, 2020, 3:55pm UTC](https://forum.katalon.com/t/get-results-html-path-filename-through-code/50526 "2020-12-23T15:55:41Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [January 7, 2026, 4:12am UTC](https://forum.katalon.com/t/get-results-html-path-filename-through-code/50526/12 "2026-01-07T04:12:32Z")

</div>

> [@gengland](#):
>
> Is it possible to programmatically get the path and filename of the results HTML within a testcase script please? I’d like to automatically copy the results to another location at the end of my test run.

Please find my topic that I newly created at Dec 2025:

> [@Can I generate HTML Report in Test Listener? --- Yes, I can](https://forum.katalon.com/t/can-i-generate-html-report-in-test-listener-yes-i-can/186968/6):
>
> I renamed the PurgeHTMLReport class to GenerateTestSuiteReports. It supports generating PDF report as well as HTML report. import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import com.kms.katalon.core.annotation.AfterTestSuite import com.kms.katalon.core.configuration.RunConfiguration import com.kms.katalon.core.context.TestSuiteContext import com.kms.katalon.core.logging.KeywordLogger import com.kms.katalon.core.logging.model.TestSuiteLogRecord import com.kms.kat…

In this topic, I demostrated my TestListener can proactively trigger generating the HTML/PDF reports. My TestListener controls the location of report files. You can extend my apporoach to implement any post-processing such as transferring the gerenrated files to the location you want, e.g. JIRA.

---

_[View the full topic](https://forum.katalon.com/t/get-results-html-path-filename-through-code/50526)._
