Hey everyone,
I’m trying to set up an automated testing workflow with Jira and Jenkins. I’ve got Jira and Jenkins running on different servers, and I’ve connected them using the ‘Jira for Jenkins’ and ‘Jenkins for Jira’ plugins. That part seems to be working fine.
The problem I’m running into is with Zephyr for Jira. I’m using it for test management, but I can’t get it to update test results automatically. What I want is to be able to click the execute button in Jira, have it run the test scripts (which are stored in GitHub), and then automatically update the results in Jira.
I’ve tried a bunch of different approaches I found online, but nothing’s working so far. Has anyone here successfully set up something like this? Any tips or suggestions would be really appreciated!
Thanks in advance for your help!
I’ve been through a similar setup process and found it can be a bit challenging. One approach that worked for me involved the Zephyr Scale API along with a post-build step in Jenkins. I created a custom script that parsed the test results from my automated tests and then added a post-build step in Jenkins that executed this script. The script would call the Zephyr Scale API to update test results in Jira. It took some trial and error, but once everything was set up, it worked smoothly. One important point was ensuring the test case IDs in your automated tests match those in Jira. Also, check that you have the proper permissions configured in Jira for the account updating the results. If you run into further issues, consulting the Zephyr Scale documentation might offer additional insights.
Having implemented a similar automation setup, I can attest to its complexity. One effective method I found was utilizing the Zephyr API in conjunction with a custom Jenkins plugin. This approach allows for seamless integration between your test execution in Jenkins and result updates in Jira.
The key is to create a Jenkins job that not only runs your tests but also communicates with the Zephyr API post-execution. Ensure your test scripts output results in a format that can be easily parsed. Then, develop a script to interpret these results and make appropriate API calls to Zephyr.
Remember to configure proper authentication for the API calls and double-check that your test case IDs in GitHub align with those in Jira. This setup requires initial effort but pays off in long-term efficiency.