Skip to main content

TAI Custom Libraries

Project description

TAI Libraries

Custom libraries and CLI tools for Test Automation Integrated (TAI) projects.

Installation

From Source

pip install .

From GitHub (Internal)

pip install git+https://github.com/delieloliveira/natura-robotframework.git@main

CLI Usage

This package includes the tai command-line interface to help you scaffold new automation projects quickly.

Initialize a New Project

tai init [template] [options]

Arguments:

  • template: The project template to use. Defaults to web.
    • web: Standard Web automation structure.
    • api: API testing structure.
    • mobile: Mobile automation structure.
    • web-playwright: Web automation using Playwright.

Options:

  • --venv: Automatically creates a virtual environment (.venv).
  • --install: Installs dependencies from the template's requirements.txt.

Examples:

# Basic Web Project
tai init

# API Project with Auto-Setup
tai init api --venv --install

# Playwright Project
tai init web-playwright

Note: tai init must be run in an empty directory.

Library Usage

Importing in Robot Framework

*** Settings ***
Library    tai
Library    tai.Confluence
Library    tai.document_generator

Supported Modules

Generators

Data generation utilities for different countries.

  • Brasil: Generate Brazil Cep (alias: Gerar Cep)
  • Equador: Generate Ecuador Cedula (alias: Generate Random Cedula)
  • Mexico: Generate Mexico Curp (alias: Generate Curp)

Utilities

  • Document Generator: Generation of document images (CNH, RG, DNI, etc.) for OCR testing.
  • Atlassian: Confluence integration keywords.
  • AWS: AWS AppConfig integration.

Python Code Example

from tai import generate_brazil_cep, generate_ecuador_cedula
from tai import Confluence

# New naming convention
cep = generate_brazil_cep("data/ceps.csv")
cedula = generate_ecuador_cedula()

# ...

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

robotframework_tai-0.1.0.tar.gz (13.7 MB view details)

Uploaded Source

Built Distribution

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

robotframework_tai-0.1.0-py3-none-any.whl (13.7 MB view details)

Uploaded Python 3

File details

Details for the file robotframework_tai-0.1.0.tar.gz.

File metadata

  • Download URL: robotframework_tai-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for robotframework_tai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ebc55a47d8576e391e2d838b5d35a8c34ba7a19d07e10e95da58be514ad6c80
MD5 7ed43600933e2b8bf8db92ac53968b83
BLAKE2b-256 2fb919d69e34415f3557ff07aea9781afcbb37a18aba313489b855ed9afc80a6

See more details on using hashes here.

File details

Details for the file robotframework_tai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_tai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5709a485818d702c8104d048ad8868700e61437b2fe9c8923a267dfb71465711
MD5 9d5ac564cb9823990d17b264f5909e1a
BLAKE2b-256 ef6b68d51b8d1b8ec1d2bdcbebbce2ba2ee3a67a1c15c89a75bde9e7284dc4f3

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