How to use the junitparser.junitparser.Property function in junitparser

To help you get started, we’ve selected a few junitparser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def __iter__(self):
        return super(Properties, self).iterchildren(Property)
github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def __init__(self, name=None, value=None):
        super(Property, self).__init__(self._tag)
        self.name = name
        self.value = value
github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def __init__(self, name=None, value=None):
        super(Property, self).__init__(self._tag)
        self.name = name
        self.value = value
github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def add_property(self, name, value):
        """Adds a property to the testsuite/testcase.

        See :class:`Property` and :class:`Properties`
        """
        props = self.child(Properties)
        if props is None:
            props = Properties()
            self.append(props)
        prop = Property(name, value)
        props.add_property(prop)
github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def add_property(self, name, value):
        """Adds a property to the testsuite.

        See :class:`Property` and :class:`Properties`
        """

        props = self.child(Properties)
        if props is None:
            props = Properties()
            self.append(props)
        prop = Property(name, value)
        props.add_property(prop)
github gastlygem / junitparser / junitparser / junitparser.py View on Github external
def __iter__(self):
        return super(Properties, self).iterchildren(Property)