8000 GitHub - utestpy/python-page-object at d3f6cf4537890a74c6358c7ce555a4caefaca0f3
[go: up one dir, main page]

Skip to content

utestpy/python-page-object

Repository files navigation

Build Status Coverage Status GitHub watchers Forks Stars

EO principles respected here License: GPL v3 Hits-of-Code

Python page object model

Represent most popular OOD pattern for Web UI automation using python programming language.

Automated tests are demonstrated on http://newtours.demoaut.com/mercurywelcome.php web app. Enjoy it!

Tools

  • python 3.6+
  • selenium and pom
  • pytest
  • allure reporting
  • travis CI

In addition code is fully type annotated and covered with static code analysis tools (black, flake8 and mypy).

Usage

From the root directory of your shell run following commands:

Smoke tests

~ ./run-tests.sh smoke

Unit tests

~ ./run-tests.sh unittest

Launch whole set of tests

~ ./run-tests.sh all

Tests (html) report sample

Run a bunch of tests (e.g smoke) via following command:

~ ./run-tests.sh smoke

After please open test-report.html file to see detailed testing report:

Screenshot

Generate allure report

Please follow next instruction to generate allure report (mac OS example):

  1. Update java via brew cask install adoptopenjdk
  2. Install allure via brew install allure
  3. Generate allure project via allure serve report

Screenshot

Release History

  • 0.3.0
    • Introduce allure integration
  • 0.2.0
    • Introduce travis CI
    • Add static code analysis tools (black, flake8 and mypy) along with unittests
  • 0.1.0
    • Distribute initial version

Meta

Author – Volodymyr Yahello vyahello@gmail.com

Distributed under the MIT license. See LICENSE for more information.

You can reach out me at:

Contributing

  1. clone the repository
  2. configure Git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all project development dependencies

About

📔 Page object design pattern implementation (python, pom, selenium, pytest, travisCI)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0