Skip to content

Mennaa-Ayman/Automation-testing-using-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Automation Testing

Using Selenium-based automation for testing user authentication flows including login and signup functionality Validating successful and error scenarios.

Project Structure

├── tests/
│   ├── test_login.py          # Login test cases (valid & invalid credentials)
│   ├── test_signup.py         # Signup test cases (empty fields & invalid email)
|   └── conftest.py            # Pytest configuration & fixtures
|
├── Utils/
│   └── Config.py              # Configuration file (URLs, test data)
|
├── requirements.txt           # Python dependencies
├── test-case.md               # Test Case Documentation
└── README.md             

Installation & Setup

1. Install Dependencies

pip install -r requirements.txt

No manual driver setup required. The project uses webdriver-manager to automatically download and manage the correct ChromeDriver version.

2. Configure Test Data Update Utils/Config.py with your test credentials:

BASE_URL = "https://automationexercise.com/login"
VALID_EMAIL = "your-email@example.com"
VALID_PASSWORD = "your-password"
INVALID_EMAIL = "wrong@email.com"
INVALID_PASSWORD = "wrongpassword"

Running Tests

Run All Tests

pytest -v

Run Specific Test File

# Login tests only
pytest -v tests/test_login.py

# Signup tests only
pytest -v tests/test_signup.py

Run Specific Test Case

pytest -v tests/test_login.py::test_login_valid

Requirements

  • Python 3.7+
  • Selenium 4.0+
  • pytest 8.0+
  • webdriver-manager 4.0+

About

Automation testing with selenium WebDriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages