-
Hey there, So Ideally I have a tool to connect seleniumbase with testrail, I managed to get it working (almost) by going through this guide So the thing is, I would like to able to modify the junitxml with the record_property so that it can ammend screenshot file to the xml reporting. Is there a way to modify the xml in seleniumbase without forking the whole project? thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The You can save images in base64 format so that you can more easily add it to the report after you modify the file. You may want to use SeleniumBase's built-in report system: |
Beta Was this translation helpful? Give feedback.
-
Okey based from your answer above, means I cant proceed to add a value in the xml report even with the selenium built in report yes? |
Beta Was this translation helpful? Give feedback.
-
For future reference, those who use testrail <> seleniumbase but dont want to fork/download the whole project, you can create a separate script and run it after your test complete. Example of the code I used.
Steps:
use below testrail xml mapping to get the sub_element_name 👍if you find this useful. |
Beta Was this translation helpful? Give feedback.
The
--junit-xml=report.xml
option comes frompytest
, notseleniumbase
.See: https://github.com/pytest-dev/pytest/blob/5cffef7f07a1007681b671304e4ee69864c13940/src/_pytest/junitxml.py#L387
You can save images in base64 format so that you can more easily add it to the report after you modify the file.
You may want to use SeleniumBase's built-in report system:
See Dashboard / Reports / Logs.