How to Auto-Create a Defect in RTC when Automated Test Case Fails ?
Hello,
I would like to automatically create Defects in RTC when automated Test Cases Fail, creating so a complete End-to-End automated-integrated process. Is there a way to do that integrating a Test Automation tool with RTC?
Actually I’m using Robot Framework and JMeter to do Test-Automation, but I could use any appropriate tool (Open Source) if it’s possible to eventually integrate it with RTC on my Client environment.
I’m running Front-End Test automation scripts written with Selenium Library keywords, and also automated back-end Testing (batches) everything orchestrated with JMeter, and I wonder if I can create something with Test Automation tools (maybe using RTC work items API) that automatically Log a Bug in RTC (I have Clients License) when any automated Test (front-end or back-end) fails.
Website Front-End application that I’m testing is available on internet (access with no VPN), and RTC is installed on Client’s network.
Really thank you in advance for all your kind help!
Accepted answer
You actually don't necessarily want to do this - there may be many reason why a test script fails for a test case. Many times it's an application configuration error, or a data error, or a network error, or the test script needs to be updated when the AUT changes, or the requirements change, the app changes but the script isn't up to date.
This is why they have the ability to mark a test result with an actual result, so that you can assess the result and determine if it's actually a defect in the AUT, or a problem with the test in some way. Then you can mark the result accurately, and either log a defect (if you do it from the results it will auto fill an awful lot of the info) or log a task to change the test environment or the script.
Comments
1 vote
1 vote
showing 5 of 6
show 1 more comments
One other answer
EWM supports these APIs: The EWM SDK, OSLC CM.
You can create ETM integrations using the automation adapter API https://jazz.net/wiki/bin/view/Main/RQMAdapterAPI . You should be able to use the EWM APIs to create work items. A good entry point would be the work item command line https://github.com/jazz-community/work-item-command-line .