I’ve been working on test automation using Robot Framework with Python and Selenium in PyCharm. Now I need to connect these automated tests with JIRA so I can track test results and link them to specific JIRA tickets.
I want to automatically update JIRA issues when my tests run, showing whether they passed or failed. I’ve heard about XRay but couldn’t find clear setup instructions that worked for my environment.
Has anyone successfully set up this kind of integration? What tools or plugins would you recommend for syncing Robot Framework test results with JIRA? Any step-by-step guidance would be really helpful since I’m new to this integration process.
We solved this using the Robot Framework Listener interface combined with JIRA REST API calls. Instead of post-processing XML files, I implemented a custom listener that makes real-time API calls during test execution. The listener catches test start/end events and immediately updates corresponding JIRA tickets with execution status. The setup requires creating a listener class that inherits from robot.api.TestListener and implementing the end_test method to handle API calls. You’ll need to configure JIRA credentials and map your test cases to ticket IDs through robot framework variables or tags. This approach provides immediate feedback in JIRA without waiting for full suite completion. One gotcha I encountered was handling API rate limits during large test runs, so implement some basic retry logic with delays. The advantage over XRay is lower cost and simpler maintenance since you control the entire integration workflow.
honestly the easiest way ive found is using robot framework’s --listener option with a custom listener that posts to jira webhooks. way simpler than parsing xml afterwards and you dont need extra libraries. just configure your jira project to accept webhook payloads and format the test results accordingly in your listener class.
I implemented Robot Framework to JIRA integration about six months ago and found the Atlassian Python API to be more straightforward than XRay for basic result reporting. You can create a simple post-execution script that parses the output.xml file generated by Robot Framework and pushes results directly to JIRA using the jira-python library. The key is setting up proper test case tagging in your Robot Framework tests that correspond to your JIRA issue keys. I created custom fields in JIRA to track execution status and timestamps, then wrote a Python script that runs after each test suite completion. This approach gives you more control over what data gets pushed and how it appears in JIRA compared to third-party plugins. The initial setup takes some time but works reliably once configured properly.