https://github.com/sancakerkan/login-automation
This repository contains automated tests for a simple login interface using Selenium WebDriver and TestNG. The tests include verification of correct and incorrect login attempts across different browsers.
https://github.com/sancakerkan/login-automation
java maven selenium selenium-webdriver test-automation testing
Last synced: about 2 months ago
JSON representation
This repository contains automated tests for a simple login interface using Selenium WebDriver and TestNG. The tests include verification of correct and incorrect login attempts across different browsers.
- Host: GitHub
- URL: https://github.com/sancakerkan/login-automation
- Owner: sancakerkan
- License: mit
- Created: 2024-08-28T12:20:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T07:37:04.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T03:49:54.706Z (over 1 year ago)
- Topics: java, maven, selenium, selenium-webdriver, test-automation, testing
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Login Automation





## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Contributing](#contributing)
- [License](#license)
## Introduction
This repository contains automated tests for a simple login interface using Selenium WebDriver and TestNG. The tests include verification of correct and incorrect login attempts across different browsers.
## Features
- **Cross-Browser Testing:** Tests run on both Chrome and Firefox.
- **Login Verification:** Ensures correct redirection on successful login and appropriate error handling on failure.
- **TestNG Factory:** Demonstrates the use of the @Factory annotation in TestNG to create test instances.
## Installation
### Prerequisites
- Java Development Kit (JDK) 8 or later
- Maven
- An IDE with Maven support (IntelliJ IDEA, Eclipse, etc.)
### Cloning the Repository
1. **Using IntelliJ IDEA:**
- Go to `File` > `New` > `Project from Version Control`.
- Enter the repository URL: `https://github.com/yourusername/Login-Test.git`.
- Click `Clone`.
2. **Using Eclipse:**
- Go to `File` > `Import...`.
- Select `Git` > `Projects from Git` > `Clone URI`.
- Enter the repository URL: `https://github.com/yourusername/Login-Test.git`.
- Follow the prompts to complete the cloning process.
3. **OR Simply Download the ZIP file**
- [ZIP File](https://github.com/yourusername/Login-Test/archive/refs/heads/main.zip)
## Usage
### Running the Tests
1. **Using IntelliJ IDEA:**
- Open the project.
- Navigate to the `src/test/java/` directory.
- Right-click the `LoginTestFactory` class.
- Select `Run 'LoginTestFactory'`.
2. **Using Eclipse:**
- Open the project.
- Navigate to the `src/test/java/` directory.
- Right-click the `LoginTestFactory` class.
- Select `Run As` > `TestNG Test`.
### Test Structure
- `ChromeLoginTest`: Tests login functionality on Chrome.
- `FirefoxLoginTest`: Tests login functionality on Firefox.
- `LoginTestFactory`: Generates test instances for both Chrome and Firefox.
## Contributing
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Open a pull request
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.