javaheri2016 / parentland_tests_behave

ParentLand Portal - automation with Python, Selenium and Behave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Automation Scenarios for Testing Parent.Land Website

This a project for web automation of Parent.Land

Technology stack: Python, Selenium, Behave

Structure

Project Folder
├── features
│   ├── pages
│   │   ├── base_page.py    # base class - helper functions
│   │   ├── home.page.py    # homepage class with locators dictionary
│   ├── steps
│   │   ├── parentland.py   # Gherkin steps
│   ├── parentland.feature  # test scenarios
│   ├── environment.py      # browser settings 
├── test_data.py            # test data, usernames etc.

Assets

Credentials are hidden in local file: assets/passes.txt Please create Parent.Land account and add credentials to this file, as well as your e-mail. Helper function "read_creds" () is used.

Local env setup

Tu use this project Python 3.8. is required.

python3.8 -m venv venv
pip install -r requirements.txt

The convention for managing Python dependency is as follows:

  • we add the dependency into requirements.in
  • we call pip-compile to create requirements.txt
  • we commit both files to repository.

To run tests locally Selenium Webdriver is required. In this project Selenium Webdriver is managed automatically by Webdriver Manager Be sure that you have updated version of Chrome Browser on your device.

How to run?

Just type in command line

behave

About

ParentLand Portal - automation with Python, Selenium and Behave


Languages

Language:Python 94.1%Language:Gherkin 5.9%