https://github.com/eddie4k-code/pytestautomationframework
A Data Driven Automation Testing Framework for a Demo Site.
https://github.com/eddie4k-code/pytestautomationframework
automated-testing automation automation-framework pytest selenium selenium-java selenium-webdriver test-automation testing
Last synced: about 1 month ago
JSON representation
A Data Driven Automation Testing Framework for a Demo Site.
- Host: GitHub
- URL: https://github.com/eddie4k-code/pytestautomationframework
- Owner: Eddie4k-code
- Created: 2023-01-19T21:28:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-21T16:27:50.000Z (over 3 years ago)
- Last Synced: 2025-04-06T06:44:51.699Z (about 1 year ago)
- Topics: automated-testing, automation, automation-framework, pytest, selenium, selenium-java, selenium-webdriver, test-automation, testing
- Language: Python
- Homepage:
- Size: 13.4 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.