Publishes Cypress runs on TestBench CS.
$ npm install cypress-testbench-reporter --save-dev
Add reporter to your cypress.json
:
...
"reporter": "cypress-testbench-reporter",
"reporterOptions": {
"domain": "https://server.testbench.com",
"tenantName": "tenantName",
"username": "username",
"password": "password",
"productId": 1,
}
Your Cypress tests should include the ID of your TestBench test case:
// Good:
it("[CYP-123] Can authenticate a valid user", ...
// Bad:
it("(CYP-123) Can authenticate a valid user", ...
it("<CYP-123> Can authenticate a valid user", ...
it("{CYP-123} Can authenticate a valid user", ...
domain: string domain name of your TestBench CS Server (e.g. https://server01.testbench.com).
tenantName: string name of the tenant to which the user belongs.
username: string login of the user under which the automation should run.
password: string password for the user.
productId: number product under which the automated test cases will be executed.
closeAlreadyRunningAutomation: boolean closes already existing automation, that was not closed properly in previous runs.
Samir Chouaieb - github
This project is licensed under the MIT license.