- 1 year ago
How can I record my Cypress Test on windows?
Comment
1 / 1
To record your Cypress tests on Windows, you can use the Cypress Dashboard service. The Cypress Dashboard allows you to record and store your test results and videos online. Here's how you can do it:
Set up a Cypress Dashboard account:
- Go to the Cypress Dashboard website: https://dashboard.cypress.io/
- Sign up for an account and log in.
Install the Cypress Dashboard service:
- Open your Cypress project folder in the terminal or command prompt.
- Run the following command to install the Cypress Dashboard service:css
npm install cypress-dashboard --save-dev
Configure your Cypress project:
- Open your Cypress configuration file, usually named
cypress.json
. - Add the following configuration to enable the Dashboard service and specify your project ID (you can find the project ID on the Cypress Dashboard website after creating a new project):json
{
"projectId": "YOUR_PROJECT_ID",
"video": true
}
- Open your Cypress configuration file, usually named
Run your Cypress tests with recording enabled:
- To record your tests, run the Cypress tests with the
--record
option:arduinonpx cypress run --record
- To record your tests, run the Cypress tests with the
View your test results and videos on the Cypress Dashboard website:
- After running the tests, you can view the test results and videos on the Cypress Dashboard website under your project.
That's it! Your Cypress tests will now be recorded and stored on the Cypress Dashboard, allowing you to view and analyze the test results and videos online.