Skip to content

dani-tc/automated-testing-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Login Form Testing

Task Description

Launch URL

Swag Labs

Use Cases

UC-1: Test Login Form with Empty Credentials

  1. Type any credentials into the "Username" and "Password" fields.
  2. Clear the inputs.
  3. Hit the "Login" button.
  4. Check the error message: "Username is required".

UC-2: Test Login Form with Credentials by Passing Username

  1. Type any credentials in the "Username" field.
  2. Enter a password.
  3. Clear the "Password" input.
  4. Hit the "Login" button.
  5. Check the error message: "Password is required".

UC-3: Test Login Form with Valid Credentials

  1. Enter a username from the Accepted Username section.
  2. Enter "secret_sauce" as the password.
  3. Click on Login.
  4. Validate the title "Swag Labs" in the dashboard.

Test Requirements

  • Implement parallel execution, logging for tests, and use Data Provider to parametrize tests.
  • Ensure all tasks support these conditions: UC-1, UC-2, and UC-3.

Technologies & Tools

  • Test Automation Tool: Selenium WebDriver
  • Project Builder: Maven
  • Supported Browsers:
    • Firefox
    • Edge
    • Chrome
  • Locators: XPath
  • Test Runner: TestNG
  • Assertions: Hamcrest

Optional Enhancements

  • Design Patterns:
    • Singleton
  • Test Automation Approach: BDD
  • Logging Framework: SLF4J

About

Automated testing framework with Java, Selenium, TestNG and Cucumber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published