Skip to content

la-lev/test-automation-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QA: Selenium Test Automation Project

written in

Python 2.7 / Selenium / pytest

The project is created to outline most popular Selenium WebDriver commands and their usage.

Application Under Test is LiteCart E-commerce Platform

Subjects covered in this project:

  • locating elements
  • navigation and interaction with elements
  • working with alerts, frames, WebDriver window handle
  • waits
  • browser capabilities
  • most common webDriver Exceptions
  • PageObjects

How to:

Installation. Running tests locally requires you to have browser drivers installed on your machine. For more details, check out Selenuim and Python: drivers and installation.

For test execution you need to have AUT installed locally, it can be downloaded here: LiteCart E-commerce Platform. If you do not have local server, you can use a free solution from MAMP.

To run the tests - run any *test.py file. Each file contains full steps for each automated test scenario.

To check out PageObject implementation, run tests/productcart_test.py. It will initialize app class (application.py) that contains references to page classes.

    def test_cart(app):
        test_products = 2
        products = app.get_product_links(test_products)

Pages package contains sample classes and methods for web pages automation.

Useful links:

Happy testing!

About

QA Selenium Test Automation Project. The project is created to outline most popular Selenium WebDriver commands and their usage (written in Python 2.7 / Selenium / pytest).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages