Is there any way to integrate Cypress test cases with any test management tools (Like Testlink, testrail, or qtest)?
I want to perform automation testing and try to report the results to test management tools like Testlink, testrail, or qtest. Is there any way to do that?
You've mentioned you are unable to integrate Cypress with a test management tool - have you tried already?
An NPM module, cypress-testrail-reporter, is available for TestRail - there may be more modules available.
Usage is pretty straightforward. You first define the connection details in your cypress.json
:
"reporter": "cypress-testrail-reporter",
"reporterOptions": {
"domain": "<your_testrail_server_url>",
"username": "<username_associated_with_api_key>",
"password": "<use_an_api_key_here>",
"projectId": <project_id_as_int>,
"suiteId": <suite_id_as_int>,
}
Then you need to annotate your test cases with the Case ID from the TestRail test case. The ID can either be added to the start, or the end of the Cypress test title.
This lets the plugin know where to submit the results after each test is executed.
it("C1234 Puts the lotion on its skin", ...
it("Or else it gets the hose again C5678", ...