Skip to content

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 example file (right-click "Save link as.." to download): example_testcafe_json_report.json.

Report

  • startTime ignored
  • endTime ignored
  • userAgents split and stored into OS and platform.
  • passed ignored
  • total ignored
  • skipped ignored
  • fixtures we iterate over fixtures and define each object as a container.
  • warnings added to upload warnings.

Fixture

A fixture will be read as a container with one or more result(s).

  • name stored as title.
  • path if name is not present, path is stored as title.
  • tests we iterate over the array and define each object within as a result.

Test

A test will be rewritten as result.

  • name stored as title.
  • errs first line is stored as exception_name, remaining text stored as exception_description.
  • durationMs divided by 1000 to convert into seconds and stored as duration.
  • unstable added to open text field, named "json_data".
  • skipped if present, stored as status.
  • screenshotPath ignored

Linking your scenario's to JIRA

This functionality is not available yet, but it is in the pipeline!

By adding a tag to your scenario saying: @jira_issue_PROJ-201 it will be read as a ticket "PROJ-201" to be linked to your scenario. You can set up your profile to be linked to a JIRA account.