Search code examples
testingautomated-testse2e-testingtestcafetestrail

How to upload TestCafe results to TestRail account?


What is the best way to upload my testcafe test results to TestRail?

I am using TestRail as a test management tool and I see there is no official reporter supported by TestCafe yet. Is there any library that does this and what changes do I need in my tests for this??


Solution

  • Use testcafe-reporter-testrail-simple

    This reporter needs only 3 configuration parameters TestRail host, username, and password, and does the required backtracking to collect information like project id, suite id, etc that are required to publish the Test Run results to TestRail.

    No need to rename/ append the TestRailCase ids into the test case name, just add the tag {testRailCaseId: CXXXXX} in the test meta and the reporter will pick up the info.

    Easy and Clean!