Kea2-python 0.2.2__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/u2Driver.py CHANGED
@@ -381,7 +381,8 @@ class U2Driver(AbstractDriver):
381
381
 
382
382
  @classmethod
383
383
  def tearDown(self):
384
- self.scriptDriver.tearDown()
384
+ if self.scriptDriver:
385
+ self.scriptDriver.tearDown()
385
386
 
386
387
 
387
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.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
@@ -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=9XwKDIzEDOQjOchPsZPPK6WDC0ojYNSvW0YvMfwAwQY,19842
4
- kea2/bug_report_generator.py,sha256=br0OkUDFmaJz0S7s-0uxbAPOFJYAlDjmG436dCwoDIo,20246
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=aMPPB4dziyPfHyJAYde0GPZEWq73XM9YJcOqC_Ne8-Q,7659
7
- kea2/keaUtils.py,sha256=gLcN37cdEtsCOkCporcASv5e2TmZffPlVLXu6VteLJk,25798
6
+ kea2/fastbotManager.py,sha256=o6Re1sOPPOYAFuxw15sVvxH_JzxmoxBAjbCrRbuc4rY,7869
7
+ kea2/keaUtils.py,sha256=ULFJLbIxWj8DEdbf_2iQ_9aieTVjJiLx-imrcVX9r9s,25864
8
8
  kea2/kea_launcher.py,sha256=LbireYeES3SH3U5m04zRZaZx54Vz-CrR5dvbCsuEsPI,6190
9
- kea2/logWatcher.py,sha256=glE-R9G93IWdk0jpaMleTn1Whh7X5dhI69ymr902kAQ,2196
9
+ kea2/logWatcher.py,sha256=jothWgFlUDV0BrY7L1AD5FtZEeHGvDuk41-ye7p4a3g,2312
10
10
  kea2/resultSyncer.py,sha256=9kb3H0Innwj7oPboDDTf97nbjam7EP6HYxywR9B8SvM,2437
11
- kea2/u2Driver.py,sha256=huXCosf0ZVc5rPVgkBw0dRIkciQORIZc3Lq91WBMvFE,15580
12
- kea2/utils.py,sha256=ErMUCwKddA6xETE8xKFI281N6iiVzpDBEhfSZ_JFNGQ,1467
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=hAg57OTUfScH9HJTwkBMI1HhVAcElMW8jO1eS6AE5rs,38249
31
- kea2_python-0.2.2.dist-info/licenses/LICENSE,sha256=nM9PPjcsXVo5SzNsjRqWgA-gdJlwqZZcRDSC6Qf6bVE,2034
32
- kea2_python-0.2.2.dist-info/METADATA,sha256=XRm-0S80IGNjJgmleKgeJAHDq1rJFkrJb6PiwxH1zw0,14023
33
- kea2_python-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- kea2_python-0.2.2.dist-info/entry_points.txt,sha256=mFX06TyxXiUAJQ6JZn8QHzfn8n5R8_KJ5W-pTm_fRCA,39
35
- kea2_python-0.2.2.dist-info/top_level.txt,sha256=TsgNH4PQoNOVhegpO7AcjutMVWp6Z4KDL1pBH9FnMmk,5
36
- kea2_python-0.2.2.dist-info/RECORD,,
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,,