I have written code that does exactly this feature in Ruby,
The code is in an infancy state because I ripped it from a much larger bot that I am building. In order to run this ruby script I suggest you take it an adapt it to a fully fledged bot. However you can run it as is and it will work provided you make the necessary changes in the file to hook into your companies email server and so on. Then point test rail to where the script is and everything should work as is.
Install instructions for linux host:
- Install Ruby 2.3.1 as a service user on the TestRail server (or another server but update the start address to 0.0.0.0)
- Make a directory called testrail_interceptor
- Install bundler
- type the command
- put the file from the url in that directory
- add the following gems to the Gemfile
bundle install and follow that by running
ruby ./bot.rb. Make sure you made the necessary configuration options in the file. Read the comments in the file to get a grip of where to change what. Finally apologies for the not so great code as I said before these are just the bits and bobs needed to run ripped from a much larger bot I am building and I do recommend just extracting the code and adapting it to your own bot.