Kea2-python 0.0.1a6__tar.gz → 0.0.1b0__tar.gz
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_python-0.0.1a6 → kea2_python-0.0.1b0/Kea2_python.egg-info}/PKG-INFO +22 -4
- kea2_python-0.0.1a6/README.md → kea2_python-0.0.1b0/PKG-INFO +33 -3
- kea2_python-0.0.1a6/Kea2_python.egg-info/PKG-INFO → kea2_python-0.0.1b0/README.md +21 -15
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/keaUtils.py +4 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/kea_launcher.py +0 -1
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/u2Driver.py +4 -1
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/pyproject.toml +1 -1
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/Kea2_python.egg-info/SOURCES.txt +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/Kea2_python.egg-info/dependency_links.txt +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/Kea2_python.egg-info/entry_points.txt +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/Kea2_python.egg-info/requires.txt +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/Kea2_python.egg-info/top_level.txt +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/LICENSE +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/__init__.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/absDriver.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/adbUtils.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot-thirdpart.jar +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/ADBKeyBoard.apk +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/abl.strings +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/awl.strings +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/max.config +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/max.fuzzing.strings +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/max.schema.strings +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/max.strings +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/max.tree.pruning +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_configs/widget.block.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/x86/libfastbot_native.so +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/x86_64/libfastbot_native.so +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/framework.jar +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/monkeyq.jar +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/quicktest.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/u2.jar +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/cli.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/logWatcher.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/utils.py +0 -0
- {kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Kea2-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.1b0
|
|
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
|
|
@@ -12,6 +12,10 @@ Dynamic: license-file
|
|
|
12
12
|
|
|
13
13
|
# Introduction
|
|
14
14
|
|
|
15
|
+
[](https://pypi.python.org/pypi/kea2-python)
|
|
16
|
+
[](https://pepy.tech/projects/kea2-python)
|
|
17
|
+

|
|
18
|
+
|
|
15
19
|
Kea2 is an easy-to-use Python library for supporting, customizing and improving automated UI testing for mobile apps. The library is currently built on top of [Fastbot](https://github.com/bytedance/Fastbot_Android) and [uiautomator2](https://github.com/openatx/uiautomator2), and targeting [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
|
|
16
20
|
|
|
17
21
|
### Kea2 has three important features:
|
|
@@ -297,16 +301,30 @@ class MyFirstTest(unittest.TestCase):
|
|
|
297
301
|
You can read [Kea - Write your fisrt property](https://kea-docs.readthedocs.io/en/latest/part-keaUserManuel/first_property.html) for more details.
|
|
298
302
|
|
|
299
303
|
### Notes
|
|
300
|
-
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship)
|
|
301
|
-
|
|
304
|
+
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship) in uiautomator2. The Script body in the function fully support uiautomator2.
|
|
302
305
|
|
|
303
306
|
| | **Support** | **Not support** |
|
|
304
307
|
| -- | -- | -- |
|
|
305
308
|
| **Selctor** | `d(text="1").exist` | `d(text="1").child(text="2").exist` |
|
|
306
|
-
| **XPath** | `d.xpath(".//[@text='1']")` | `d.xpath(".//[@text='1']").xpath(".//[@text]='2'")` |
|
|
307
309
|
|
|
308
310
|
If you need to specify `parent-child` relation ship in `@precondition`, specify it in xpath.
|
|
309
311
|
|
|
312
|
+
for example:
|
|
313
|
+
|
|
314
|
+
```python
|
|
315
|
+
# Do not use:
|
|
316
|
+
# @precondition(lambda self:
|
|
317
|
+
# self.d(className="android.widget.ListView").child(text="Bluetooth")
|
|
318
|
+
# ):
|
|
319
|
+
# ...
|
|
320
|
+
|
|
321
|
+
# Use
|
|
322
|
+
@precondition(lambda self:
|
|
323
|
+
self.d.xpath('//android.widget.ListView/*[@text="Bluetooth"]')
|
|
324
|
+
):
|
|
325
|
+
...
|
|
326
|
+
```
|
|
327
|
+
|
|
310
328
|
|
|
311
329
|
## Launching Kea2
|
|
312
330
|
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Kea2-python
|
|
3
|
+
Version: 0.0.1b0
|
|
4
|
+
Summary: A python library for supporting and customizing automated UI testing for mobile apps
|
|
5
|
+
Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
|
|
6
|
+
Requires-Python: >=3.8
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: rtree>=1.3.0
|
|
10
|
+
Requires-Dist: uiautomator2>=3.2.9
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
1
13
|
# Introduction
|
|
2
14
|
|
|
15
|
+
[](https://pypi.python.org/pypi/kea2-python)
|
|
16
|
+
[](https://pepy.tech/projects/kea2-python)
|
|
17
|
+

|
|
18
|
+
|
|
3
19
|
Kea2 is an easy-to-use Python library for supporting, customizing and improving automated UI testing for mobile apps. The library is currently built on top of [Fastbot](https://github.com/bytedance/Fastbot_Android) and [uiautomator2](https://github.com/openatx/uiautomator2), and targeting [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
|
|
4
20
|
|
|
5
21
|
### Kea2 has three important features:
|
|
@@ -285,16 +301,30 @@ class MyFirstTest(unittest.TestCase):
|
|
|
285
301
|
You can read [Kea - Write your fisrt property](https://kea-docs.readthedocs.io/en/latest/part-keaUserManuel/first_property.html) for more details.
|
|
286
302
|
|
|
287
303
|
### Notes
|
|
288
|
-
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship)
|
|
289
|
-
|
|
304
|
+
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship) in uiautomator2. The Script body in the function fully support uiautomator2.
|
|
290
305
|
|
|
291
306
|
| | **Support** | **Not support** |
|
|
292
307
|
| -- | -- | -- |
|
|
293
308
|
| **Selctor** | `d(text="1").exist` | `d(text="1").child(text="2").exist` |
|
|
294
|
-
| **XPath** | `d.xpath(".//[@text='1']")` | `d.xpath(".//[@text='1']").xpath(".//[@text]='2'")` |
|
|
295
309
|
|
|
296
310
|
If you need to specify `parent-child` relation ship in `@precondition`, specify it in xpath.
|
|
297
311
|
|
|
312
|
+
for example:
|
|
313
|
+
|
|
314
|
+
```python
|
|
315
|
+
# Do not use:
|
|
316
|
+
# @precondition(lambda self:
|
|
317
|
+
# self.d(className="android.widget.ListView").child(text="Bluetooth")
|
|
318
|
+
# ):
|
|
319
|
+
# ...
|
|
320
|
+
|
|
321
|
+
# Use
|
|
322
|
+
@precondition(lambda self:
|
|
323
|
+
self.d.xpath('//android.widget.ListView/*[@text="Bluetooth"]')
|
|
324
|
+
):
|
|
325
|
+
...
|
|
326
|
+
```
|
|
327
|
+
|
|
298
328
|
|
|
299
329
|
## Launching Kea2
|
|
300
330
|
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: Kea2-python
|
|
3
|
-
Version: 0.0.1a6
|
|
4
|
-
Summary: A python library for supporting and customizing automated UI testing for mobile apps
|
|
5
|
-
Author-email: Xixian Liang <xixian@stu.ecnu.edu.cn>
|
|
6
|
-
Requires-Python: >=3.8
|
|
7
|
-
Description-Content-Type: text/markdown
|
|
8
|
-
License-File: LICENSE
|
|
9
|
-
Requires-Dist: rtree>=1.3.0
|
|
10
|
-
Requires-Dist: uiautomator2>=3.2.9
|
|
11
|
-
Dynamic: license-file
|
|
12
|
-
|
|
13
1
|
# Introduction
|
|
14
2
|
|
|
3
|
+
[](https://pypi.python.org/pypi/kea2-python)
|
|
4
|
+
[](https://pepy.tech/projects/kea2-python)
|
|
5
|
+

|
|
6
|
+
|
|
15
7
|
Kea2 is an easy-to-use Python library for supporting, customizing and improving automated UI testing for mobile apps. The library is currently built on top of [Fastbot](https://github.com/bytedance/Fastbot_Android) and [uiautomator2](https://github.com/openatx/uiautomator2), and targeting [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
|
|
16
8
|
|
|
17
9
|
### Kea2 has three important features:
|
|
@@ -297,16 +289,30 @@ class MyFirstTest(unittest.TestCase):
|
|
|
297
289
|
You can read [Kea - Write your fisrt property](https://kea-docs.readthedocs.io/en/latest/part-keaUserManuel/first_property.html) for more details.
|
|
298
290
|
|
|
299
291
|
### Notes
|
|
300
|
-
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship)
|
|
301
|
-
|
|
292
|
+
Currently, in `@precondition` decorator and `widgets.block.py`. We only support basic selector (No parent-child relationship) in uiautomator2. The Script body in the function fully support uiautomator2.
|
|
302
293
|
|
|
303
294
|
| | **Support** | **Not support** |
|
|
304
295
|
| -- | -- | -- |
|
|
305
296
|
| **Selctor** | `d(text="1").exist` | `d(text="1").child(text="2").exist` |
|
|
306
|
-
| **XPath** | `d.xpath(".//[@text='1']")` | `d.xpath(".//[@text='1']").xpath(".//[@text]='2'")` |
|
|
307
297
|
|
|
308
298
|
If you need to specify `parent-child` relation ship in `@precondition`, specify it in xpath.
|
|
309
299
|
|
|
300
|
+
for example:
|
|
301
|
+
|
|
302
|
+
```python
|
|
303
|
+
# Do not use:
|
|
304
|
+
# @precondition(lambda self:
|
|
305
|
+
# self.d(className="android.widget.ListView").child(text="Bluetooth")
|
|
306
|
+
# ):
|
|
307
|
+
# ...
|
|
308
|
+
|
|
309
|
+
# Use
|
|
310
|
+
@precondition(lambda self:
|
|
311
|
+
self.d.xpath('//android.widget.ListView/*[@text="Bluetooth"]')
|
|
312
|
+
):
|
|
313
|
+
...
|
|
314
|
+
```
|
|
315
|
+
|
|
310
316
|
|
|
311
317
|
## Launching Kea2
|
|
312
318
|
|
|
@@ -97,6 +97,10 @@ class Options:
|
|
|
97
97
|
# the output_dir for saving logs and results
|
|
98
98
|
output_dir: str = "output"
|
|
99
99
|
|
|
100
|
+
def __post_init__(self):
|
|
101
|
+
if self.serial and self.Driver:
|
|
102
|
+
self.Driver.setDeviceSerial(self.serial)
|
|
103
|
+
|
|
100
104
|
|
|
101
105
|
@dataclass
|
|
102
106
|
class PropStatistic:
|
|
@@ -88,7 +88,9 @@ class StaticU2UiObject(u2.UiObject):
|
|
|
88
88
|
def _transferU2Keys(self, originKey):
|
|
89
89
|
filterDict = {
|
|
90
90
|
"resourceId": "resource-id",
|
|
91
|
-
"description": "content-desc"
|
|
91
|
+
"description": "content-desc",
|
|
92
|
+
"className": "class",
|
|
93
|
+
"longClickable": "long-clickable",
|
|
92
94
|
}
|
|
93
95
|
if filterDict.get(originKey, None):
|
|
94
96
|
return filterDict[originKey]
|
|
@@ -237,6 +239,7 @@ class _XPathEntry(u2.xpath.XPathEntry):
|
|
|
237
239
|
super().__init__(d)
|
|
238
240
|
|
|
239
241
|
def __call__(self, xpath, source = None):
|
|
242
|
+
# TODO fully support xpath in widget.block.py
|
|
240
243
|
self.xpath = xpath
|
|
241
244
|
return super().__call__(xpath, source)
|
|
242
245
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so
RENAMED
|
File without changes
|
|
File without changes
|
{kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/x86/libfastbot_native.so
RENAMED
|
File without changes
|
{kea2_python-0.0.1a6 → kea2_python-0.0.1b0}/kea2/assets/fastbot_libs/x86_64/libfastbot_native.so
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|