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.13.tar.gz
(850.4 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.13-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file guara-0.0.13.tar.gz.
File metadata
- Download URL: guara-0.0.13.tar.gz
- Upload date:
- Size: 850.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7be6847cc21a4166a39eaa77e38e6261dbd7900243ef9c4ee6d80ac82f731e8f
|
|
| MD5 |
9df4524f59605962a925a9e344ac443d
|
|
| BLAKE2b-256 |
1f553822ac858d9d15fce1450c2abce82952f7c2dce00bf9fd7ff7dd08b2571f
|
File details
Details for the file guara-0.0.13-py3-none-any.whl.
File metadata
- Download URL: guara-0.0.13-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
497fd0755c2533f3a99805466eaca59daaef3efec5a998ea8319519209e5891f
|
|
| MD5 |
88890f997f92c04c5c34e4a2fb04c099
|
|
| BLAKE2b-256 |
0d14ab99ffe7c2497de8d9b94335ccc8971aa1fdd82f0649b2c04cc47e1d2c3f
|