Log data from your tests

Logging information is critical to the development and maintenance of your tests. AltWalker collects stdout and returned data from your tests.

Table of Contents

Stdout

AltWalker captures stdout data from each test and outputs it to the stdout of altwalker cli, or to a file if --report-file option is used.

class Simple:
    def vertex_a(self, *args):
        print("Simple.vertex_a")
[2020-04-27 14:26:20.731201] Simple.vertex_a Status: PASSED
Output:
Simple.vertex_a

Returned data from tests

AltWalker captures return value from each test and outputs it to the stdout of altwalker cli, or to a file if --report-file option is used.

Return any json serializable object

class Simple:
    def vertex_a(self, *args):
        return { "key" : "value" }
[2020-04-27 14:26:20.731201] Simple.vertex_a Status: PASSED
Result:
{
    "key": "value"
}