This project automates the testing of a web application using Cypress.
Before you begin, ensure you have the following installed on your system:
- Node.js: Make sure you have Node.js installed. You can download it from here.
- npm: npm comes with Node.js, so if you have Node.js installed, you should also have npm.
Follow these steps to install the required npm packages for this project:
First, clone the repository to your local machine using Git or download it as a ZIP file and extract it.
git clone [email protected]:midas-research/Cypress_testing_audino.git
Run the following command to install all the necessary npm packages:
This command will install all the dependencies listed in the package.json file.
Once the npm packages are installed, you can run the Cypress tests using the following commands:
Open Cypress Test Runner To open the Cypress Test Runner, use the command:
This will open the Cypress Test Runner interface, where you can select and run individual test files.
If you want to run a specific test file, you can specify it with the following command:
Replace your-test-file.cy.js with the path to the test file you want to run.
If you need to set up environment variables, you can do so in a ##### cypress.env.json ##### file in the root of your project:
json
{ "master_id": "your_master_id",
"master_password": "your_master_password",
"annotations_1": "your_annotations_1",
"annotations_2": "your_annotations_2"
// Add other environment variables as needed
}
Make sure to update this file with your actual environment variable values.
If you encounter any issues during installation or while running tests, try the following: