Visual Testing and Get Ids utilities for Selenium & Appium
Project description
xlavm-lib
Librería orientada a pruebas automatizadas de Python (Pytest) con Selenium y Appium.
Esta libreria se enfoca en 3 partes fundamentales:
- Pruebas Visuales
- Obtencion de accessibility id o xpath (Sin necesidad de inspeccionar elementos)
- Reportes en Allure (Local y en Browserstack)
Instalación
pip install xlavm-lib
Visual Testing
-
En conftest.py:
@pytest.fixture def driver(): driver.quit() from xlavm_lib import VisualTestReport VisualTestReport().exec()
-
En cualquier parte donde se quiera realizar una prueba visual:
from xlavm_lib import VisualTest VisualTest(self.driver, 'nombre_pagina').exec()
Get Ids
- En cualquier parte donde se quiera obtener los elements ids de una pagina:
from xlavm_lib import GetIds
GetIds(self.driver, 'nombre_pagina').exec()
Allure Reports
-
En conftest.py:
@pytest.fixture def driver(request): request.node.report = AllureReport(driver) yield driver from xlavm_lib import AllureReport # HOOKS def pytest_runtest_call(item): report = getattr(item, "report", None) if report: report.start_record_video() def pytest_runtest_teardown(item): report = getattr(item, "report", None) if report: report.stop_record_video()
-
En .env:
BROWSERSTACK_USERNAME = "tu_username" BROWSERSTACK_ACCESS_KEY = "tu_access_key"
-
En cualquier parte donde se quiera usar el reporte:
from xlavm_lib import AllureReport AllureReport(driver).step("1. Ingreso credenciales validas", request.node.name) #toma pantallazo por cada paso AllureReport(driver).info("este es un mensaje infomativo") AllureReport(driver).error("este es un mensaje de error")
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
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
File details
Details for the file xlavm_lib-1.5.0.tar.gz.
File metadata
- Download URL: xlavm_lib-1.5.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89d32c0685bef5cda422dfc622dd78598f92d3e37c72a731ea99d9c9ee72125e
|
|
| MD5 |
a57746e512d9f2ed11f9e75fe9981668
|
|
| BLAKE2b-256 |
8f03063425bf240665a9250558e3e325a3477f222570fc6de4a7f3fd2bcaeffd
|
File details
Details for the file xlavm_lib-1.5.0-py3-none-any.whl.
File metadata
- Download URL: xlavm_lib-1.5.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7fa161dcd7da3eb407de3c41f04941a4286d741919e5b74bc4c1694d10d5123
|
|
| MD5 |
ebb9312c7420fdeb99149f24e0921aeb
|
|
| BLAKE2b-256 |
d82fcd44be59e76e7b6354ee510b80ef386ef9c61607f79561225d19d99ff1ce
|