TestCafe JSON results¶
You can generate TestCafe JSON results by setting your TestCafe output to JSON. Read more about exporting TestCafe results into JSON here.
TestCafe JSON format¶
Download our example file here: example_testcafe_report.json
Report¶
startTimeignoredendTimeignoreduserAgentssplit and stored into OS and platform.passedignoredtotalignoredskippedignoredfixtureswe iterate over fixtures and define each object as a container.warningsadded to upload warnings.
Fixture¶
A fixture will be read as a container with one or more result(s).
namestored as title.pathif name is not present, path is stored as title.testswe iterate over the array and define each object within as a result.
Test¶
A test will be rewritten as result.
namestored as title.errsfirst line is stored as exception_name, remaining text stored as exception_description.durationMsdivided by 1000 to convert into seconds and stored as duration.unstableadded to open text field, named "json_data".skippedif present, stored as status.screenshotPathignored