def parse(self, source): try: xml = ElementTree.parse(source) except ElementTree.ParseError, e: get_logger().error( "Can not parse xunit file, error: {0}".format(e)) return []
def __init__(self): self.source_name = get_conf()['test_results']['source'] self.conf = {} try: self.source_mod = import_module( "trep.incoming.%s" % self.source_name) except ImportError: get_logger().error('Invalid source value: "%s"' % self.source_name) raise self.conf = get_conf()['test_results'].get(self.source_name, {})
def __init__(self): self.source_name = get_conf()['test_results']['source'] self.conf = {} try: self.source_mod = import_module("trep.incoming.%s" % self.source_name) except ImportError: get_logger().error('Invalid source value: "%s"' % self.source_name) raise self.conf = get_conf()['test_results'].get(self.source_name, {})
def parse(self, source): try: xml = ElementTree.parse(source) except ElementTree.ParseError, e: get_logger().error("Can not parse xunit file, error: {0}".format(e)) return []