Send service messages for robot framework through ssh connections

I am trying to send service messages through robot framework since teamcity does not have plugin for robot.

I created below file in robot as 

class TeamCityListener():

    ROBOT_LISTENER_API_VERSION = 2

    def start_suite(self, name, attrs):
        sys.__stdout__.write("##teamcity[testSuiteStarted name='{name}']\n".format(name=name))
        print 'hi'
        sys.__stdout__.flush()

In teamcity `Build step: command line` I added

` ssh user@testmachine

pybot --listener TeamCityListener.py --console none test.robot `

But when I run in project I see Step 1/1 and them Success Do I have to add anything on teamcity side? Before running pybot I'm sshing into machine, maybe that's the reason?

1

Please sign in to leave a comment.