ortoniKC / ortoni-report

Welcome to Ortoni Report, a comprehensive and visually appealing HTML report generator tailored for Playwright tests. Designed with powerful features and customizable options, Ortoni Report simplifies the process of reviewing and managing test results, making test reporting more intuitive and accessible.
https://www.npmjs.com/package/ortoni-report
GNU General Public License v3.0
51 stars 3 forks source link

[Question] How to upload test results to some server #36

Closed JaLe29 closed 2 weeks ago

JaLe29 commented 3 weeks ago

Is there any way how to upload test results to some my server?

I would like to create some test results UI to display results from hourly testing jobs.

ortoniKC commented 3 weeks ago

As of now it is standalone html file, You can upload to any server..

JaLe29 commented 3 weeks ago

Yes, I can, but links to trace results don't work after uploading to the server, because the trace points to a playwright instance running locally. It might be nice to link to https://trace.playwright.dev/?trace=URL_TO_TRACE_FILE

ortoniKC commented 3 weeks ago

The trace file is required to view the trace, and it is stored in the ortoni-data folder, and trace viewer files are within the trace folder for local view. You can upload the entire ortoni-report folder to server, it should work fine. For ex, I have uploaded to ortoni.netlify.app

JaLe29 commented 3 weeks ago

I would like to host my reports on following url: https://xxxxxxxx/test-results/04-11-2024-09-37/index.html

But looks like that report can work only on base root domain like this: https://xxxxxxxx , links are broken.

ortoniKC commented 3 weeks ago

I hope you're using the latest version of 2.0.6

JaLe29 commented 3 weeks ago

Of course.

Look at my report: https://evidia.fra1.cdn.digitaloceanspaces.com/test-results/04-11-2024-09-37/index.html

Try to click on View Trace button, there is a broken link... because I am using prefix test-results/04-11-2024-09-37/ in my s3 storage

ortoniKC commented 3 weeks ago

Pls check with the default report and what the trace path looks like.