Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class ExecutableItem(object):
name = attrib(default=None)
status = attrib(default=None)
statusDetails = attrib(default=None)
stage = attrib(default=None)
description = attrib(default=None)
descriptionHtml = attrib(default=None)
steps = attrib(default=Factory(list))
attachments = attrib(default=Factory(list))
parameters = attrib(default=Factory(list))
start = attrib(default=None)
stop = attrib(default=None)
@attrs
class TestResult(ExecutableItem):
file_pattern = TEST_CASE_PATTERN
uuid = attrib(default=None)
historyId = attrib(default=None)
testCaseId = attrib(default=None)
fullName = attrib(default=None)
labels = attrib(default=Factory(list))
links = attrib(default=Factory(list))
@attrs
class TestStepResult(ExecutableItem):
id = attrib(default=None)
@attrs
@attrs
class TestResult(ExecutableItem):
file_pattern = TEST_CASE_PATTERN
uuid = attrib(default=None)
historyId = attrib(default=None)
testCaseId = attrib(default=None)
fullName = attrib(default=None)
labels = attrib(default=Factory(list))
links = attrib(default=Factory(list))
@attrs
class TestStepResult(ExecutableItem):
id = attrib(default=None)
@attrs
class TestBeforeResult(ExecutableItem):
pass
@attrs
class TestAfterResult(ExecutableItem):
pass
@attrs
class Parameter(object):
name = attrib(default=None)
labels = attrib(default=Factory(list))
links = attrib(default=Factory(list))
@attrs
class TestStepResult(ExecutableItem):
id = attrib(default=None)
@attrs
class TestBeforeResult(ExecutableItem):
pass
@attrs
class TestAfterResult(ExecutableItem):
pass
@attrs
class Parameter(object):
name = attrib(default=None)
value = attrib(default=None)
@attrs
class Label(object):
name = attrib(default=None)
value = attrib(default=None)
@attrs
def start_step(self, parent_uuid=None, uuid=None):
parent = self._get_item(uuid=parent_uuid, item_type=ExecutableItem)
step = TestStepResult()
step.start = now()
parent.steps.append(step)
self._items[uuid or uuid4()] = step
yield step
uuid = attrib(default=None)
historyId = attrib(default=None)
testCaseId = attrib(default=None)
fullName = attrib(default=None)
labels = attrib(default=Factory(list))
links = attrib(default=Factory(list))
@attrs
class TestStepResult(ExecutableItem):
id = attrib(default=None)
@attrs
class TestBeforeResult(ExecutableItem):
pass
@attrs
class TestAfterResult(ExecutableItem):
pass
@attrs
class Parameter(object):
name = attrib(default=None)
value = attrib(default=None)
@attrs
class Label(object):