robotframework-2.7.7.atest.testdata.libdoc.DynamicLibrary.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robotframework Show documentation
Show all versions of robotframework Show documentation
High level test automation framework
The newest version!
# coding=UTF-8
class DynamicLibrary(object):
"""This is overwritten and not shown in docs"""
ROBOT_LIBRARY_VERSION = 0.1
def __init__(self, arg1, arg2="This is shown in docs"):
"""This is overwritten and not shown in docs"""
def get_keyword_names(self):
return ['0', 'Keyword 1', 'KW2', 'non ascii doc 42']
def run_keyword(self, name, args):
print name, args
def get_keyword_arguments(self, name):
return ['arg%d' % (i+1) for i in range(int(name[-1]))]
def get_keyword_documentation(self, name):
if name == 'non ascii doc 42':
return 'Hyvää yötä.\n\nСпасибо!'
short = 'Dummy documentation for `%s`.' % name
if name.startswith('__'):
return short
return short + '''
Neither `Keyword 1` or `KW 2` do anything really interesting.
They do, however, accept some `arguments`.
Neither `introduction` nor `importing` contain any more information.
Examples:
| Keyword 1 | arg |
| KW 2 | arg | arg 2 |
| KW 2 | arg | arg 3 |
-------
http://robotframework.org
'''