Comment #4 on issue 589 by pekka.klarck: ROBOT_LIBRARY_SCOPE = "GLOBAL" is ignored in RF 2.5
http://code.google.com/p/robotframework/issues/detail?id=589

I'm on holiday and don't have any Windows machines to test the provided example. Any change you could create a platform independent example?

The very simple library I used to test this is below. It create on keyword 'X' and calling it on different suites increments the counter correctly. I also tested importing it on a resource file with argument, similarly as in the provided example, but everything still worked fine.

class DynamicGlobalLibrary:
    ROBOT_LIBRARY_SCOPE = 'GLOBAL'

    def __init__(self, counter=0):
        self.counter = int(counter)

    def get_keyword_names(self):
        return ['X']

    def run_keyword(self, name, args):
        self.counter += 1
        print 'counter:', self.counter


Reply via email to