Framework to build UI test automation in Page Transactions pattern
Project description
Guará
Guará is a Python framework designed to simplify UI test automation.
Syntax
Application.at(apage.DoSomething [,with_parameter=value, ...]).asserts(it.Matches, a_condition)
Example in Action
from selenium import webdriver
from pages import home, contact, info, setup
from guara.transaction import Application
from guara import it
def test_sample_web_page():
# Initialize the Application with a driver
app = Application(webdriver.Chrome())
# Open the web application
app.at(setup.OpenApp, url="https://anyhost.com/")
# Change language to Portuguese and assert content
app.at(home.ChangeToPortuguese).asserts(it.IsEqualTo, content_in_portuguese)
# Navigate to Info page and assert text presence
app.at(info.NavigateTo).asserts(it.Contains, "This project was born")
# Close the web application
app.at(setup.CloseApp)
For more information, check the documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
guara-0.0.18.tar.gz
(866.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
guara-0.0.18-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file guara-0.0.18.tar.gz.
File metadata
- Download URL: guara-0.0.18.tar.gz
- Upload date:
- Size: 866.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e52ffaacfe8714bb62ae197242e8fbf1eccf2d58f4921c7142ebf5436a12a2d
|
|
| MD5 |
3ad9a8b957bf624865f8830b45ac5fa9
|
|
| BLAKE2b-256 |
fbf78ae441b210272643a223048a68889849f0234ac80e961b2fea1dc541a512
|
File details
Details for the file guara-0.0.18-py3-none-any.whl.
File metadata
- Download URL: guara-0.0.18-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af22686ba4c1150a8dd77a22c4d8f01b106e59b01371b6128476131b2f237bbc
|
|
| MD5 |
f9ea768962c2e0470fc75c3a7fb5eb34
|
|
| BLAKE2b-256 |
6c2de74c3f1bb282105d1b8c2ebcaea1defb3d2d699a396618ab144ced9ea3d4
|