Robotframework-dashboard

Hello,
I have a question concerning Robotframework-Dashboard when run as a server.
I’ve tried uploading logs (log.html) using the API for “/add-log-file” and using robotframework-listener. But I can’t get neither to work.
Using the API I get either an error message that no comparable log.html or output.xml exists, or that it has been successfully uploaded to robot_logs/log.html - but when trying to access it, the dashboard tries to access log.html (without robot_logs).
Anyone has had any success using the log-upload of robotframework-dashboard?
I am using the currently latest version 1.8.1.
Thanks and regards

@timdegroot1996 is the author of rf dashboard, maybe he has some ideas ?

1 Like

Thanks @rasjani for the ping!

I think the issue you are having is that the log.html file you are uploading should match the path of an output.xml. Which means that if you have for example uploaded:

path/to/folder/output123.xml then the logfile should at least be in the same folder and with the same name like:path/to/folder/log123.html so it can find which output it corresponds to.

Can you check if that is indeed the case?

Thanks in advance,

Tim

Hi,
Thanks for the answer. I was already considering this and changed the names. Without success. Currently I believe it has something to do with my setup. I created a container with podman for robotframework-dashboard, pushed it to a registry and then created a gitops to pull this image and start the dashboard from there.
The containerfile just runs
FROM python:3.11-slim
RUN pip install robotframework-dashboard[server]
EXPOSE 8543
CMD ["robotdashboard"]
but the deployment.yaml on github then runs robotdashboard -s 0.0.0.0:8543 -d /data/dashboard.db -u. I’m not too sure if I was using absolute path. Will have to check in 12h :slight_smile:
I will have to check on the setup of the CI/CD pipeline, if the issue is there.
Regards.

Hi @TorSte,

Do let me know what happens and what you are trying to execute. If you want you can even include the API responses so I can debug or at least try to reproduce locally!

If you want to move this to an actual issue if you have problems that is also fine, but staying here and helping is also possible. (Issue can be made here if you need it: GitHub · Where software is built )

3 Likes