Exemple #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 []
Exemple #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, {})
Exemple #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, {})
Exemple #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 []