Пример #1
0
 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 []
Пример #2
0
    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, {})
Пример #3
0
    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, {})
Пример #4
0
 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 []