Skip to content
ocx
install

TestRun

TestRunclassdataclass#

Re-exported from ocx_sdk._resultsView source
class TestRun(exit_code: int, stdout: str, stderr: str, duration_ms: int, truncated: bool)

What the tested command actually did.

Attributes

NameTypeDescription
exit_codeintThe command’s exit status.
stdoutstrIts stdout, truncated if truncated.
stderrstrIts stderr, same.
duration_msintWall time in milliseconds.
truncatedboolOutput was cut to fit the envelope.

duration_msattributeinstance attribute#

duration_ms: int

exit_codeattributeinstance attribute#

exit_code: int

stderrattributeinstance attribute#

stderr: str

stdoutattributeinstance attribute#

stdout: str

truncatedattributeinstance attribute#

truncated: bool

from_dictmethodclassmethod#

def from_dict(data: Mapping[str, Any]) -> TestRun

Build from the decoded run object.