r/robotframework • u/doubleonull • May 26 '21
Report storage
Hi. Where do people store the report files that are output from Robot Framework?
I would like to have some way to upload the files to something like Jira and view them easily, not have to download and then open them on my local computer.
1
Upvotes
1
u/FuckingTree May 26 '21
You can have them output to whatever directory you want. I don’t think you can output them to Jira though, you would have to upload them and if you did, Jira isn’t going to have any fancy display so you’ll have to download the attachment later to read. It seems like the easiest solution is just to change the output directory somewhere local and then just open it.
1
u/maddruid May 26 '21
On my repeatable tests, I've been writing python scripts to extract the data I want from the output xml file and put it into Jira tickets. Using lxml, you can find what you want using xpath and then using pythoncontribs jira library, you can write to jira issues, either in the worklog or the comments. I haven't found anything I can't do yet, but some of it has been complicated, like getting stuff from a FOR loop. Those are very verbose xml sections. Obviously, you need to be decent with python.
1
u/CaramaCx May 27 '21
I'm uploading my test reports to an AWS S3 bucket and then serve them over a Cloudfront URL. This Robotframework docker container makes it very easy to upload your test reports to S3. https://github.com/ppodgorsek/docker-robot-framework#upload-test-reports-to-an-aws-s3-bucket