All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robotframework-2.7.7.atest.testdata.test_libraries.InitLogging.py Maven / Gradle / Ivy

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy