Kea2-python 0.2.2__py3-none-any.whl → 0.2.4__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.4
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
@@ -18,22 +18,21 @@ Dynamic: license-file
18
18
  [![PyPI Downloads](https://static.pepy.tech/badge/kea2-python)](https://pepy.tech/projects/kea2-python)
19
19
  ![Python](https://img.shields.io/badge/python-3.8%2B-blue)
20
20
 
21
-
22
21
  <div>
23
- <img src="https://github.com/user-attachments/assets/36ec9f2f-a3d8-482a-9a61-4785f3278991" style="border-radius: 14px; width: 20%; height: 20%;"/>
22
+ <img src="https://github.com/user-attachments/assets/84e47b87-2dd2-4d7e-91d1-e8c1d1db0cf4" style="border-radius: 14px; width: 20%; height: 20%;"/>
24
23
  </div>
25
24
 
26
25
  ### Github repo link
27
26
  [https://github.com/ecnusse/Kea2](https://github.com/ecnusse/Kea2)
28
27
 
29
- ### [点击此处:查看中文文档](README_cn.md)
28
+ ### [点击此处:查看中文文档](README_cn.md)
30
29
 
31
30
  ## About
32
31
 
33
32
  Kea2 is an easy-to-use tool for fuzzing mobile apps. Its key *novelty* is able to fuse automated UI testing with scripts (usually written by human), thus empowering automated UI testing with human intelligence for effectively finding *crashing bugs* as well as *non-crashing functional (logic) bugs*.
34
33
 
35
34
  Kea2 is currently built on top of [Fastbot](https://github.com/bytedance/Fastbot_Android), *an industrial-strength automated UI testing tool*, and [uiautomator2](https://github.com/openatx/uiautomator2), *an easy-to-use and stable Android automation library*.
36
- Kea2 currently targets [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
35
+ Kea2 currently targets [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
37
36
 
38
37
  ## Novelty & Important features
39
38
 
@@ -1,19 +1,19 @@
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
5
- kea2/cli.py,sha256=YgWOe5JB0_WBTKyBShBEymhLIqj6K5gNR4Aaj6Pbtn0,2796
6
- kea2/fastbotManager.py,sha256=aMPPB4dziyPfHyJAYde0GPZEWq73XM9YJcOqC_Ne8-Q,7659
7
- kea2/keaUtils.py,sha256=gLcN37cdEtsCOkCporcASv5e2TmZffPlVLXu6VteLJk,25798
8
- kea2/kea_launcher.py,sha256=LbireYeES3SH3U5m04zRZaZx54Vz-CrR5dvbCsuEsPI,6190
9
- kea2/logWatcher.py,sha256=glE-R9G93IWdk0jpaMleTn1Whh7X5dhI69ymr902kAQ,2196
3
+ kea2/adbUtils.py,sha256=zi0T0_g44xZQZe3XYzBsuh7VTHpdZ4dd6yKi-p7BTYI,19939
4
+ kea2/bug_report_generator.py,sha256=Cluf8yJT8gPsGIf-c0FpCUPMFhK-oRVLRJfoOBH6IsA,33784
5
+ kea2/cli.py,sha256=rQqRSOSlVjXRRvIjzcO-ZdHp4wxgOrR_8Dh_erkB25c,4145
6
+ kea2/fastbotManager.py,sha256=gQ3FI1AezCxZ8NorOOW9_K6ASWpRTYTLpJ7eR1R4-8Y,7973
7
+ kea2/keaUtils.py,sha256=UFZo6iT03sXL3tDoTCWza8RaqcVnTRjSqWdBMrc49Qc,25904
8
+ kea2/kea_launcher.py,sha256=M9TMCdgkteCWO5iBxJRDRvb7dikanoPf3jdicCEurU8,6268
9
+ kea2/logWatcher.py,sha256=Dp6OzvLSuWYw0AqdcPDqfotaRZQgpF8S49LInGsAWp8,2599
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
16
- kea2/assets/monkeyq.jar,sha256=TTptUo-B4VV9Q8AeQKSqi1KsyG3eY4iYYb0NZCc4yV4,112189
16
+ kea2/assets/monkeyq.jar,sha256=KfXi0ujVMdGB6_-OHYgTdKP6IHrUFS8RCa82s6GQ1Ww,112832
17
17
  kea2/assets/quicktest.py,sha256=TJj9GaRioFrijU9PMLpyZY8S07db67UZFBr5G-aQY80,3000
18
18
  kea2/assets/fastbot_configs/abl.strings,sha256=Rn8_YEbVGOJqndIY_-kWnR5NaoFI-cuB-ij10Ddhl90,75
19
19
  kea2/assets/fastbot_configs/awl.strings,sha256=-j4980GoWQxGOM9ijAwXPQmziCwFBZJFmuiv2tOEaYI,101
@@ -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=859q7o-zQLOyQah4o2OKCe2s3YTN9_iHessNPM_bd_c,76986
31
+ kea2_python-0.2.4.dist-info/licenses/LICENSE,sha256=nM9PPjcsXVo5SzNsjRqWgA-gdJlwqZZcRDSC6Qf6bVE,2034
32
+ kea2_python-0.2.4.dist-info/METADATA,sha256=YOaae-sPJ2gpDuBZ3xc_o4BE_66SUy5_f9fzQaiinFo,14024
33
+ kea2_python-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
+ kea2_python-0.2.4.dist-info/entry_points.txt,sha256=mFX06TyxXiUAJQ6JZn8QHzfn8n5R8_KJ5W-pTm_fRCA,39
35
+ kea2_python-0.2.4.dist-info/top_level.txt,sha256=TsgNH4PQoNOVhegpO7AcjutMVWp6Z4KDL1pBH9FnMmk,5
36
+ kea2_python-0.2.4.dist-info/RECORD,,