xlavm-lib 1.1.1__py3-none-any.whl → 1.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xlavm_lib/allure_report/allure_report.py +5 -5
- {xlavm_lib-1.1.1.dist-info → xlavm_lib-1.5.0.dist-info}/METADATA +5 -5
- {xlavm_lib-1.1.1.dist-info → xlavm_lib-1.5.0.dist-info}/RECORD +5 -5
- {xlavm_lib-1.1.1.dist-info → xlavm_lib-1.5.0.dist-info}/WHEEL +1 -1
- {xlavm_lib-1.1.1.dist-info → xlavm_lib-1.5.0.dist-info}/top_level.txt +0 -0
|
@@ -4,8 +4,8 @@ import requests
|
|
|
4
4
|
from xlavm_lib.allure_report.browserstack import Browserstack
|
|
5
5
|
from xlavm_lib.allure_report.video_recorder_mobile import VideoRecorderMobile
|
|
6
6
|
from xlavm_lib.allure_report.video_recorder_web import VideoRecorderWeb
|
|
7
|
-
import env
|
|
8
7
|
import random
|
|
8
|
+
from dotenv import load_dotenv
|
|
9
9
|
|
|
10
10
|
class AllureReport():
|
|
11
11
|
"""
|
|
@@ -29,10 +29,9 @@ class AllureReport():
|
|
|
29
29
|
debe ubicar:
|
|
30
30
|
request.node.report = AllureReport(driver)
|
|
31
31
|
|
|
32
|
-
Se debe crear el archivo env
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
os.environ["BROWSERSTACK_ACCESS_KEY"] = "tu_access_key"
|
|
32
|
+
Se debe crear el archivo .env en la raiz del proyecto con los siguientes valores (si no usas Browserstack, dejalos vacio)
|
|
33
|
+
BROWSERSTACK_USERNAME = "tu_username"
|
|
34
|
+
BROWSERSTACK_ACCESS_KEY = "tu_access_key"
|
|
36
35
|
|
|
37
36
|
Uso:
|
|
38
37
|
from xlavm_lib import AllureReport
|
|
@@ -48,6 +47,7 @@ class AllureReport():
|
|
|
48
47
|
web_recorder = VideoRecorderWeb(video_path_web)
|
|
49
48
|
|
|
50
49
|
def __init__(self, driver):
|
|
50
|
+
load_dotenv()
|
|
51
51
|
self.driver = driver
|
|
52
52
|
self.mobile_recorder = None
|
|
53
53
|
# BrowserStack credentials (desde ENV)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xlavm-lib
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: Visual Testing and Get Ids utilities for Selenium & Appium
|
|
5
5
|
Author-email: Luis Angel Vanegas Martinez <angelvamart@hotmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -14,6 +14,7 @@ Requires-Dist: numpy
|
|
|
14
14
|
Requires-Dist: lxml
|
|
15
15
|
Requires-Dist: imageio-ffmpeg
|
|
16
16
|
Requires-Dist: allure-pytest
|
|
17
|
+
Requires-Dist: dotenv
|
|
17
18
|
|
|
18
19
|
# xlavm-lib
|
|
19
20
|
|
|
@@ -82,12 +83,11 @@ GetIds(self.driver, 'nombre_pagina').exec()
|
|
|
82
83
|
report.stop_record_video()
|
|
83
84
|
```
|
|
84
85
|
|
|
85
|
-
2. En env
|
|
86
|
+
2. En .env:
|
|
86
87
|
|
|
87
88
|
```PY
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
os.environ["BROWSERSTACK_ACCESS_KEY"] = "tu_access_key"
|
|
89
|
+
BROWSERSTACK_USERNAME = "tu_username"
|
|
90
|
+
BROWSERSTACK_ACCESS_KEY = "tu_access_key"
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
3. En cualquier parte donde se quiera usar el reporte:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
xlavm_lib/__init__.py,sha256=XfuB9LfnSbwmjn-5WZnjHIYcYPloe_bE8U_ZQ08aYZ0,434
|
|
2
|
-
xlavm_lib/allure_report/allure_report.py,sha256=
|
|
2
|
+
xlavm_lib/allure_report/allure_report.py,sha256=HbGiH79odcrXMIj_pkKWn20zSpnV4DJRZvric69rI_Q,6453
|
|
3
3
|
xlavm_lib/allure_report/browserstack.py,sha256=FAjW-xwtySCe5seMqZENQJEm0jJVavFPsW6sK4gXG2I,1371
|
|
4
4
|
xlavm_lib/allure_report/video_recorder_mobile.py,sha256=fWBnMYISWqPYvkGP6L-NHDJ8CWPJ7nPzxcXWVKhQZPk,1670
|
|
5
5
|
xlavm_lib/allure_report/video_recorder_web.py,sha256=N27v1Kkpy9-58Au3BEpEgbPTprKTd4Nn8aS_EOwACKk,1392
|
|
6
6
|
xlavm_lib/get_ids/get_ids.py,sha256=-Dxij6mSKKvsG-VBU18-V9Ge63F2yhB30es2rgoaSig,21687
|
|
7
7
|
xlavm_lib/visual_test/visual_test.py,sha256=1DY0TcUisP7VeSKVQEwj1Buck9z98lI9VqWknpv62_U,18342
|
|
8
8
|
xlavm_lib/visual_test/visual_test_report.py,sha256=RhP3-aXi3fGWxTty82szHxsKyNLbZCNz2FT-lvbNH2s,13090
|
|
9
|
-
xlavm_lib-1.
|
|
10
|
-
xlavm_lib-1.
|
|
11
|
-
xlavm_lib-1.
|
|
12
|
-
xlavm_lib-1.
|
|
9
|
+
xlavm_lib-1.5.0.dist-info/METADATA,sha256=hi9gBdSJ_6ps44cpcWhze99PMpqiLIKqtEsiqq6SrA0,2493
|
|
10
|
+
xlavm_lib-1.5.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
11
|
+
xlavm_lib-1.5.0.dist-info/top_level.txt,sha256=TBz-23yEvg-FupfcwdKUnDYCOalQEHqkLquZjTWq32k,10
|
|
12
|
+
xlavm_lib-1.5.0.dist-info/RECORD,,
|
|
File without changes
|