Kea2-python 0.2.1__py3-none-any.whl → 0.2.3__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.
Potentially problematic release.
This version of Kea2-python might be problematic. Click here for more details.
- kea2/adbUtils.py +3 -1
- kea2/bug_report_generator.py +458 -229
- kea2/fastbotManager.py +30 -3
- kea2/keaUtils.py +72 -64
- kea2/kea_launcher.py +19 -1
- kea2/logWatcher.py +4 -2
- kea2/templates/bug_report_template.html +499 -152
- kea2/u2Driver.py +5 -3
- kea2/utils.py +14 -0
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/METADATA +2 -2
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/RECORD +15 -15
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/WHEEL +0 -0
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/entry_points.txt +0 -0
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {kea2_python-0.2.1.dist-info → kea2_python-0.2.3.dist-info}/top_level.txt +0 -0
kea2/u2Driver.py
CHANGED
|
@@ -285,13 +285,14 @@ class _HindenWidgetFilter:
|
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
class U2StaticDevice(u2.Device):
|
|
288
|
-
def __init__(self, script_driver):
|
|
288
|
+
def __init__(self, script_driver=None):
|
|
289
289
|
self.xml: etree._Element = None
|
|
290
290
|
self._script_driver = script_driver
|
|
291
291
|
|
|
292
292
|
def __call__(self, **kwargs):
|
|
293
293
|
ui = StaticU2UiObject(session=self, selector=u2.Selector(**kwargs))
|
|
294
|
-
|
|
294
|
+
if self._script_driver:
|
|
295
|
+
ui.jsonrpc = self._script_driver.jsonrpc
|
|
295
296
|
return ui
|
|
296
297
|
|
|
297
298
|
@property
|
|
@@ -380,7 +381,8 @@ class U2Driver(AbstractDriver):
|
|
|
380
381
|
|
|
381
382
|
@classmethod
|
|
382
383
|
def tearDown(self):
|
|
383
|
-
self.scriptDriver
|
|
384
|
+
if self.scriptDriver:
|
|
385
|
+
self.scriptDriver.tearDown()
|
|
384
386
|
|
|
385
387
|
|
|
386
388
|
"""
|
kea2/utils.py
CHANGED
|
@@ -2,6 +2,9 @@ import logging
|
|
|
2
2
|
import os
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
from typing import TYPE_CHECKING
|
|
5
|
+
|
|
6
|
+
import time
|
|
7
|
+
from functools import wraps
|
|
5
8
|
if TYPE_CHECKING:
|
|
6
9
|
from .keaUtils import Options
|
|
7
10
|
|
|
@@ -55,3 +58,14 @@ def getProjectRoot():
|
|
|
55
58
|
return None
|
|
56
59
|
cur_dir = cur_dir.parent
|
|
57
60
|
return cur_dir
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def timer(func):
|
|
64
|
+
@wraps(func)
|
|
65
|
+
def wrapper(*args, **kwargs):
|
|
66
|
+
start_time = time.time()
|
|
67
|
+
result = func(*args, **kwargs)
|
|
68
|
+
end_time = time.time()
|
|
69
|
+
print(f"Function '{func.__name__}' executed in {(end_time - start_time):.4f} seconds.")
|
|
70
|
+
return result
|
|
71
|
+
return wrapper
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Kea2-python
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: A python library for supporting and customizing automated UI testing for mobile apps
|
|
5
5
|
Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -20,7 +20,7 @@ Dynamic: license-file
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
<div>
|
|
23
|
-
<img src="https://github.com/user-attachments/assets/
|
|
23
|
+
<img src="https://github.com/user-attachments/assets/36ec9f2f-a3d8-482a-9a61-4785f3278991" style="border-radius: 14px; width: 20%; height: 20%;"/>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
### Github repo link
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
kea2/__init__.py,sha256=JFJjqgf5KB4bXUFQ3upkEug0cFMFIk9p3OHV9vzulHw,75
|
|
2
2
|
kea2/absDriver.py,sha256=NzmsLs1Ojz-yEXctGAqj7aKBwAQW19zd83l65RABCe8,1288
|
|
3
|
-
kea2/adbUtils.py,sha256=
|
|
4
|
-
kea2/bug_report_generator.py,sha256=
|
|
3
|
+
kea2/adbUtils.py,sha256=zi0T0_g44xZQZe3XYzBsuh7VTHpdZ4dd6yKi-p7BTYI,19939
|
|
4
|
+
kea2/bug_report_generator.py,sha256=A7M_jGiA1IhOevr0drWQnGJHKrOmEUsp1u1hBt_Ji1E,29105
|
|
5
5
|
kea2/cli.py,sha256=YgWOe5JB0_WBTKyBShBEymhLIqj6K5gNR4Aaj6Pbtn0,2796
|
|
6
|
-
kea2/fastbotManager.py,sha256=
|
|
7
|
-
kea2/keaUtils.py,sha256=
|
|
8
|
-
kea2/kea_launcher.py,sha256=
|
|
9
|
-
kea2/logWatcher.py,sha256=
|
|
6
|
+
kea2/fastbotManager.py,sha256=o6Re1sOPPOYAFuxw15sVvxH_JzxmoxBAjbCrRbuc4rY,7869
|
|
7
|
+
kea2/keaUtils.py,sha256=ULFJLbIxWj8DEdbf_2iQ_9aieTVjJiLx-imrcVX9r9s,25864
|
|
8
|
+
kea2/kea_launcher.py,sha256=LbireYeES3SH3U5m04zRZaZx54Vz-CrR5dvbCsuEsPI,6190
|
|
9
|
+
kea2/logWatcher.py,sha256=jothWgFlUDV0BrY7L1AD5FtZEeHGvDuk41-ye7p4a3g,2312
|
|
10
10
|
kea2/resultSyncer.py,sha256=9kb3H0Innwj7oPboDDTf97nbjam7EP6HYxywR9B8SvM,2437
|
|
11
|
-
kea2/u2Driver.py,sha256=
|
|
12
|
-
kea2/utils.py,sha256=
|
|
11
|
+
kea2/u2Driver.py,sha256=BZMQOQtYX2Oo6nXRPjIspRlc_TpPo_tgGo2fOLDYYMo,15614
|
|
12
|
+
kea2/utils.py,sha256=QXaiUhOstcKyVl0TZOuVB8SaxVVK1lJGpWvhJ4ddWQY,1817
|
|
13
13
|
kea2/assets/fastbot-thirdpart.jar,sha256=0SZ_OoZFWDGMnazgXKceHgKvXdUDoIa3Gb2bcifaikk,85664
|
|
14
14
|
kea2/assets/framework.jar,sha256=rTluOJJKj2DFwh7ascXso1udYdWv00BxBwSQ3Vmv-fw,1149240
|
|
15
15
|
kea2/assets/kea2-thirdpart.jar,sha256=HYdtG2gqDLuLb72dpK3lX-Y6QUNTrJ-bfQopU5aWpfo,359346
|
|
@@ -27,10 +27,10 @@ kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so,sha256=tAFrG73pJi7XakRxS
|
|
|
27
27
|
kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so,sha256=UV8bhaiPoPKdd3q0vj3kSZqPR9anllai_tz_2QkMMbQ,1335372
|
|
28
28
|
kea2/assets/fastbot_libs/x86/libfastbot_native.so,sha256=k-aw1gEXRWMKZRNHIggKNuZy0wC1y2BnveJGEIO6rbo,2036856
|
|
29
29
|
kea2/assets/fastbot_libs/x86_64/libfastbot_native.so,sha256=tiofhlf4uMQcU5WAvrdLgTBME0lb83hVUoGtTwxmE8A,2121416
|
|
30
|
-
kea2/templates/bug_report_template.html,sha256=
|
|
31
|
-
kea2_python-0.2.
|
|
32
|
-
kea2_python-0.2.
|
|
33
|
-
kea2_python-0.2.
|
|
34
|
-
kea2_python-0.2.
|
|
35
|
-
kea2_python-0.2.
|
|
36
|
-
kea2_python-0.2.
|
|
30
|
+
kea2/templates/bug_report_template.html,sha256=E3UDsIarKwWj4K2WgBp7ipfHLQsBXpGI7-BeRy7Gucc,59903
|
|
31
|
+
kea2_python-0.2.3.dist-info/licenses/LICENSE,sha256=nM9PPjcsXVo5SzNsjRqWgA-gdJlwqZZcRDSC6Qf6bVE,2034
|
|
32
|
+
kea2_python-0.2.3.dist-info/METADATA,sha256=dao57eaySY7oP76vsrtgPk1hHviHVc1_xhx03lKy8w8,14023
|
|
33
|
+
kea2_python-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
34
|
+
kea2_python-0.2.3.dist-info/entry_points.txt,sha256=mFX06TyxXiUAJQ6JZn8QHzfn8n5R8_KJ5W-pTm_fRCA,39
|
|
35
|
+
kea2_python-0.2.3.dist-info/top_level.txt,sha256=TsgNH4PQoNOVhegpO7AcjutMVWp6Z4KDL1pBH9FnMmk,5
|
|
36
|
+
kea2_python-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|