This repository contains examples of automated web UI tests built using Selenium, Python and Pyleniumio
Tests :
-
TC-1
-
Steps:
- Open browser and navigate to https://abr.business.gov.au/
- Type" Automic" in the lookup field
-
Expected:
-
-
TC-2
Installation includes the following steps:
-
Clone repo.
-
Create virtual environment.
-
Activate virtual environment.
-
Install dependencies from requirements.txt
Dependencies include:
- python3
- pip
- virtualenv (or alternative tool)
Please find below more details on how to install repo.
- Clone this repo to your local machine using
git clone https://github.com/MaksimZinovev/py-abn-lookup.gitAssuming you already have python3 installed on your machine.
cd py-abn-lookup
MacOS (virtualenv):
virtualenv venvMacOS (venv):
python3 -m venv "venv"Windows (venv):
python -m venv "venv"MacOS
source venv/bin/activateWndows - please refer to python docs
venv\Scripts\activate.batpip install -r requirements.txt
pylenium --versionPylenium installs these for you automatically! YOU DO NOT NEED TO DO THIS!
For more details, please visit Pyleniumio docs.
Run all tests
pytest tests Run single test
pytest tests/test_abn_lookup.py::test_abn_details Headless tests
# Headless tests
pytest tests --options="headless, disable-gpu, no-sandbox"Run the tests using Chrome.
You can configure which browser to use for tests in two ways: using pylenium.json or directly from terminal.
Pylenium.json is located in the root folder of the repo.
"driver": {
"browser": "chrome",
"remote_url": "",
"wait_time": 10,
"page_load_wait_time": 0,
"options": [],
"experimental_options": null,
"capabilities": {},
"extension_paths": [],
"version": "latest"
}
Configuring browser from terminal. This is the browser name - "chrome" or "firefox" or "ie" or "opera" or "edge". For example, running tests using Chrome
pytest tests --browser=chromeFor more configuration info, please read Pyleniumio docs.
-
I am getting the error related to driver
- Please check your browser version. Browser version should match driver version.
- Update your browser if necessary or specify which driver version you want to use in pylenium.json.
- For more info please visit Pyleniumio docs.
-
I am on Windows and getting error while runningthe tests.
- if you have python 3.9 try to use python 3.8 instead.
- MIT license
- Author: Maksim Zinovev
Test2: this should be pulled from original repo https://github.com/MaksimZinovev/py-abn-lookup Test3: this should be pulled from original repo https://github.com/MaksimZinovev/py-abn-lookup





