Skip to main content

Framework to build UI test automation in Page Transactions pattern

Project description

Guará

PyPI Downloads

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


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.14.tar.gz (853.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guara-0.0.14-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file guara-0.0.14.tar.gz.

File metadata

  • Download URL: guara-0.0.14.tar.gz
  • Upload date:
  • Size: 853.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for guara-0.0.14.tar.gz
Algorithm Hash digest
SHA256 3554e28f095d535492dbea2174f783d8febba81495f76872182404d62cdb3c6b
MD5 3cfde6a3e9c5190c30836f7660fb5f9c
BLAKE2b-256 a737b4334f6178dbb1869d0aff2f95ed32d6b117b345afc2c41c60faefab058d

See more details on using hashes here.

File details

Details for the file guara-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: guara-0.0.14-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.23

File hashes

Hashes for guara-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 8d9744f3000a2e90483aa630791a8d324faecbbfae687c49d97e8f3721534ed9
MD5 89cf7c3167998ec001af9ad7093e226b
BLAKE2b-256 183e40a8fc988e2777184d8a4acd3de63155d2d241b2efbd8a69e7411d0d9ee0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page