Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/massimilianovisintainer/login-test-automation
Automated test for a login Web page, using python selenium
https://github.com/massimilianovisintainer/login-test-automation
automated-testing page-object-model pycharm python selenium selenium-python selenium-webdriver
Last synced: 25 days ago
JSON representation
Automated test for a login Web page, using python selenium
- Host: GitHub
- URL: https://github.com/massimilianovisintainer/login-test-automation
- Owner: MassimilianoVisintainer
- Created: 2023-12-02T10:10:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-03T09:20:56.000Z (11 months ago)
- Last Synced: 2024-09-28T11:03:36.876Z (about 1 month ago)
- Topics: automated-testing, page-object-model, pycharm, python, selenium, selenium-python, selenium-webdriver
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Login Test Automation
## Introduction
This Selenium test script demonstrates automated testing of the login functionality on a web application using Python's Selenium library.### Test Scenario
- The test suite checks the login functionality of a web application by attempting to login with valid and invalid credentials.
- It validates the login process by checking if the appropriate error message is displayed for invalid credentials and verifies the successful redirection to the dashboard after logging in with valid credentials.## Technologies Used
- Python
- Selenium WebDriver
- HTMLTestRunner## Setup and Execution
1. Install Python if not already installed.
2. Install the necessary packages:
```bash
pip install selenium webdriver-manager html-testRunner
```
3. Clone the repository:
```bash
git clone
```
4. Navigate to the project directory:
```bash
cd path/to/project
```
5. Run the tests:
```bash
python login_tests.py
```## Test Cases
- **test_login_not_valid:** Validates the behavior of the login process with invalid credentials by checking for the 'Invalid credentials' error message.
- **test_login_valid:** Tests the successful login process with valid credentials and verifies the redirection to the dashboard.## Test Execution Reports
The test execution generates HTML reports located in the `Reports` directory after test completion.## Contributors
- [Massimiliano Visintainer](https://github.com/MassimilianoVisintainer)## Acknowledgments
- The Selenium community and contributors for providing a robust testing framework.