Skip to content

Alexandersfg4/Selenium_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WEB automation project

Test web application: https://www.instagram.com/

Purpose

  1. To implement working project based on https://testautomationu.applitools.com/selenium-webdriver-python-tutorial/chapter1.html
  2. To build a basic Web UI test automation solution using Python and Selenium WebDriver

Setup

# Activate venv
souce env/bin/activate
# Install all dependencies in your virtualenv
pip install -r requirements.txt 
# Paste your creds inside test/data/test_data.json
{
    "config":
    {
        "browser": "Headless Chrome",
        "implicit_wait": 10
    }
    ,
    "valid_user_data":
    {
        "login": "[email protected]",
        "password": "password"
    }
}

How to run

# Run all test cases
pytest -v

Implemented test cases

I have named test files based on functionality
test_login.py contains the next test cases:

1. test_basic_login
Steps:

  • Open the main page
  • Fill out username and password
  • Click on "Log In" button
    Excepted result:
    • Oppened home page
    • Shown button bar
    • On the center shown search bar
    • Shown dialog "Save Your Login Info?"


2. test_login_invalid_data
Steps:

  • Open the main page
  • Fill out username and invalid password
  • Click on "Log In" button
    Excepted result:
    • Shown error message

About

For educational purposes only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages