def __str__(self): ret_str = """\ id = %s name = %s date = %s testId = %s testUid = %s comment = %s tags = %s """ % ( self._id, self._name, self._started, self._testId, self._testUid, self._comment, " ".join(self._tags), ) ret_str = textwrap.dedent(ret_str) ret_str += "parameters:\n" for param in self._parameters: ret_str += indent("%s = %s\n" % (param[0], param[1]), 4) ret_str += "values:\n" for val in self._values: ret_str += indent(str(val) + "\n", 4) ret_str += indent("------------------------\n", 4) return textwrap.dedent(ret_str)
def __str__(self): ret_str = """\ id = %s uid = %s name = %s groupid = %s description: """ % (self._id, self._uid, self._name, self._groupid) ret_str = textwrap.dedent(ret_str) ret_str += indent(str(self._description) + "\n", 4) ret_str += "metrics:\n" for metric in self._metrics: ret_str += indent(str(metric) + "\n", 4) ret_str += indent("------------------------\n", 4) return textwrap.dedent(ret_str)
def __str__(self): ret_str = """\ id = %s name = %s comparator = %s description: """ % (self._id, self._name, self._comparator) ret_str = textwrap.dedent(ret_str) ret_str += indent(self._description + "\n", 4) return ret_str
def __str__(self): ret_str = """\ metric name = %s result = %s """ % (self._metricName, self._result) ret_str = textwrap.dedent(ret_str) ret_str += "parameters:\n" for param in self._parameters: ret_str += indent("%s = %s\n" % (param[0], param[1]), 4) return textwrap.dedent(ret_str)
def __str__(self): ret_str = """\ id = %s name = %s date = %s testId = %s testUid = %s comment = %s tags = %s """ % (self._id, self._name, self._started, self._testId, self._testUid, self._comment, " ".join(self._tags)) ret_str = textwrap.dedent(ret_str) ret_str += "parameters:\n" for param in self._parameters: ret_str += indent("%s = %s\n" % (param[0], param[1]), 4) ret_str += "values:\n" for val in self._values: ret_str += indent(str(val) + "\n", 4) ret_str += indent("------------------------\n", 4) return textwrap.dedent(ret_str)
def __str__(self): ret_str = """\ metric name = %s result = %s """ % ( self._metricName, self._result) ret_str = textwrap.dedent(ret_str) ret_str += "parameters:\n" for param in self._parameters: ret_str += indent("%s = %s\n" % (param[0], param[1]), 4) return textwrap.dedent(ret_str)
def __str__(self): ret_str = """\ id = %s name = %s comparator = %s description: """ % ( self._id, self._name, self._comparator) ret_str = textwrap.dedent(ret_str) ret_str += indent(self._description + "\n", 4) return ret_str