Skip to content

Instantly share code, notes, and snippets.

@StefanIGit
Created January 31, 2018 14:24
Show Gist options
  • Save StefanIGit/00313812941e05520f7099736f193cef to your computer and use it in GitHub Desktop.
Save StefanIGit/00313812941e05520f7099736f193cef to your computer and use it in GitHub Desktop.
'''
Ride.py test plugin to see the "selected" TCs
issue 1571 https://github.com/robotframework/RIDE/issues/1571
'''
from robotide.pluginapi import Plugin
from robotide.pluginapi import RideTreeSelection, RideSaved
from robotide.publish.messages import RideTestSelectedForRunningChanged
class EventLisener(Plugin):
print 'Event should be printed now...\n'
def __init__(self,args):
print 'init'
self.subscribe(self.OnTestSelectedForRunningChanged, RideTestSelectedForRunningChanged)
def OnTestSelectedForRunningChanged(self, message):
print message.tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment