Skip to content

Eddie4k-code/pyTestAutomationFramework

Repository files navigation

pyTestAutomationFramework

A Data Driven Automation Testing Framework for a Demo Site. https://www.globalsqa.com/angularJs-protractor/BankingProject/#/customer

Description

Having experience in automation testing with Java, Selenium and TestNG. I wanted to get my hands on pytest and create an automation framework in python with it to practice my skills.

Command Line

(Tests that are avaliable are test_login and test_customer)

Run a specific test

- pytest -v -s testCases/test_file_name.py --html=Reports\report.html --capture sys -rF

Change Browser

add --browser= chrome or firefox

Tests

Login Test - Tests logging into the application

Customer Test - Tests Logging into the application and making a deposit and a withdrawl.

Directory

Configurations

Contains all config info such as URL, and path to test data.

Logs

Stores all logs from run time

PageObjects

Contains functions and element selectors for each page

Reports

After run time a html report is generated and stored here.

Screenshots

When a test fails a screenshot is saved here

testCases

Contains all test methods

TestData

Test Data Excel file is stored here

utilities

Contains utilities such as common functions that are used, functions for reading test data, reading properties and logging.

Releases

No releases published

Packages

No packages published