robotframework-2.7.7.atest.testdata.test_libraries.InitLogging.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!
import sys
from robot.api import logger
class InitLogging:
called = 0
def __init__(self):
InitLogging.called += 1
print '*WARN* Warning via stdout in init', self.called
print >> sys.stderr, 'Info via stderr in init', self.called
logger.warn('Warning via API in init %d' % self.called)
def keyword(self):
pass