Kea2-python 0.1.0b0__tar.gz → 0.1.2__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.

Files changed (44) hide show
  1. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/PKG-INFO +14 -17
  2. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/SOURCES.txt +5 -1
  3. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/requires.txt +1 -0
  4. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/PKG-INFO +14 -17
  5. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/README.md +12 -16
  6. kea2_python-0.1.2/kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so +0 -0
  7. kea2_python-0.1.2/kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so +0 -0
  8. kea2_python-0.1.2/kea2/assets/kea2-thirdpart.jar +0 -0
  9. kea2_python-0.1.2/kea2/assets/monkeyq.jar +0 -0
  10. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/quicktest.py +3 -1
  11. kea2_python-0.1.2/kea2/bug_report_generator.py +479 -0
  12. kea2_python-0.1.2/kea2/fastbotManager.py +155 -0
  13. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/keaUtils.py +56 -133
  14. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/kea_launcher.py +10 -0
  15. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/logWatcher.py +11 -4
  16. kea2_python-0.1.2/kea2/templates/bug_report_template.html +937 -0
  17. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/utils.py +1 -5
  18. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/pyproject.toml +3 -2
  19. kea2_python-0.1.0b0/kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so +0 -0
  20. kea2_python-0.1.0b0/kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so +0 -0
  21. kea2_python-0.1.0b0/kea2/assets/monkeyq.jar +0 -0
  22. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/dependency_links.txt +0 -0
  23. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/entry_points.txt +0 -0
  24. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/Kea2_python.egg-info/top_level.txt +0 -0
  25. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/LICENSE +0 -0
  26. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/__init__.py +0 -0
  27. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/absDriver.py +0 -0
  28. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/adbUtils.py +0 -0
  29. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot-thirdpart.jar +0 -0
  30. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/abl.strings +0 -0
  31. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/awl.strings +0 -0
  32. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/max.config +0 -0
  33. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/max.fuzzing.strings +0 -0
  34. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/max.schema.strings +0 -0
  35. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/max.strings +0 -0
  36. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/max.tree.pruning +0 -0
  37. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_configs/widget.block.py +0 -0
  38. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_libs/x86/libfastbot_native.so +0 -0
  39. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/fastbot_libs/x86_64/libfastbot_native.so +0 -0
  40. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/assets/framework.jar +0 -0
  41. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/cli.py +0 -0
  42. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/resultSyncer.py +0 -0
  43. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/kea2/u2Driver.py +0 -0
  44. {kea2_python-0.1.0b0 → kea2_python-0.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Kea2-python
3
- Version: 0.1.0b0
3
+ Version: 0.1.2
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
@@ -8,6 +8,7 @@ Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
9
9
  Requires-Dist: rtree>=1.3.0
10
10
  Requires-Dist: uiautomator2>=3.2.9
11
+ Requires-Dist: jinja2>=3.0.0
11
12
  Dynamic: license-file
12
13
 
13
14
 
@@ -17,7 +18,7 @@ Dynamic: license-file
17
18
  ![Python](https://img.shields.io/badge/python-3.8%2B-blue)
18
19
 
19
20
  <div>
20
- <img src="https://github.com/user-attachments/assets/dad0dbf5-b5d3-414b-a627-281a0fa40cf1" style="border-radius: 14px; width: 20%; height: 20%;"/>
21
+ <img src="https://github.com/user-attachments/assets/1a64635b-a8f2-40f1-8f16-55e47b1d74e7" style="border-radius: 14px; width: 20%; height: 20%;"/>
21
22
  </div>
22
23
 
23
24
  ## About
@@ -66,7 +67,7 @@ In the future, Kea2 will be extended to support
66
67
 
67
68
  Running environment:
68
69
  - support Windows, MacOS and Linux
69
- - python 3.8+, Android 4.4+ (Android SDK installed)
70
+ - python 3.8+, Android 5.0+ (Android SDK installed)
70
71
  - **VPN closed** (Features 2 and 3 required)
71
72
 
72
73
  Install Kea2 by `pip`:
@@ -203,28 +204,24 @@ For the preceding always-holding property, we can write the following script to
203
204
  ```
204
205
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
205
206
 
206
- You can run this example by using the similar command line in Feature 2. `--take-screenshots` is recommanded to replay the functional bug.
207
-
208
- > Notes: `--take-screenshots` will need more disk space on PC.
209
-
210
- ```bash
211
- # Launch Kea2 and load one single script quicktest.py.
212
- kea2 run -s "emulator-5554" -p it.feio.android.omninotes.alpha --agent u2 --running-minutes 10 --throttle 200 --driver-name d --take-screenshots unittest discover -p quicktest.py
213
- ```
207
+ You can run this example by using the similar command line in Feature 2.
214
208
 
215
209
  ## Documentations(更多文档)
216
210
 
217
- [更多文档](docs/manual_en.md):如何定义Kea2脚本、如何启动Kea2、如何查看/理解Kea2的运行结果
218
-
219
- [如何黑白控件/区域](docs/blacklisting.md)
211
+ [更多文档](docs/manual_en.md),包括了:
212
+ - Kea2的案例教程(基于微信介绍)、
213
+ - Kea2脚本的定义方法,支持的脚本装饰器(如`@precondition`、`@prob`、`@max_tries`)
214
+ - Kea2的启动方式、命令行选项
215
+ - 查看/理解Kea2的运行结果(如界面截图、测试覆盖率、脚本执行成功与否)。
216
+ - [如何黑白控件/区域](docs/blacklisting.md)
220
217
 
221
- ### Open-source projects used by Kea2
218
+ ## Open-source projects used by Kea2
222
219
 
223
220
  - [Fastbot](https://github.com/bytedance/Fastbot_Android)
224
221
  - [uiautomator2](https://github.com/openatx/uiautomator2)
225
222
  - [hypothesis](https://github.com/HypothesisWorks/hypothesis)
226
223
 
227
- ### Relevant papers of Kea2
224
+ ## Relevant papers of Kea2
228
225
 
229
226
  > General and Practical Property-based Testing for Android Apps. ASE 2024. [pdf](https://dl.acm.org/doi/10.1145/3691620.3694986)
230
227
 
@@ -254,4 +251,4 @@ Kea2 has also received many valuable insights, advices, feedbacks and lessons sh
254
251
 
255
252
  [^1]: 不少UI自动化测试工具提供了“自定义事件序列”能力(如[Fastbot](https://github.com/bytedance/Fastbot_Android/blob/main/handbook-cn.md#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E5%BA%8F%E5%88%97) 和[AppCrawler](https://github.com/seveniruby/AppCrawler)),但在实际使用中存在不少问题,如自定义能力有限、使用不灵活等。此前不少Fastbot用户抱怨过其“自定义事件序列”在使用中的问题,如[#209](https://github.com/bytedance/Fastbot_Android/issues/209), [#225](https://github.com/bytedance/Fastbot_Android/issues/225), [#286](https://github.com/bytedance/Fastbot_Android/issues/286)等。
256
253
 
257
- [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
254
+ [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
@@ -10,7 +10,9 @@ Kea2_python.egg-info/top_level.txt
10
10
  kea2/__init__.py
11
11
  kea2/absDriver.py
12
12
  kea2/adbUtils.py
13
+ kea2/bug_report_generator.py
13
14
  kea2/cli.py
15
+ kea2/fastbotManager.py
14
16
  kea2/keaUtils.py
15
17
  kea2/kea_launcher.py
16
18
  kea2/logWatcher.py
@@ -19,6 +21,7 @@ kea2/u2Driver.py
19
21
  kea2/utils.py
20
22
  kea2/assets/fastbot-thirdpart.jar
21
23
  kea2/assets/framework.jar
24
+ kea2/assets/kea2-thirdpart.jar
22
25
  kea2/assets/monkeyq.jar
23
26
  kea2/assets/quicktest.py
24
27
  kea2/assets/fastbot_configs/abl.strings
@@ -32,4 +35,5 @@ kea2/assets/fastbot_configs/widget.block.py
32
35
  kea2/assets/fastbot_libs/arm64-v8a/libfastbot_native.so
33
36
  kea2/assets/fastbot_libs/armeabi-v7a/libfastbot_native.so
34
37
  kea2/assets/fastbot_libs/x86/libfastbot_native.so
35
- kea2/assets/fastbot_libs/x86_64/libfastbot_native.so
38
+ kea2/assets/fastbot_libs/x86_64/libfastbot_native.so
39
+ kea2/templates/bug_report_template.html
@@ -1,2 +1,3 @@
1
1
  rtree>=1.3.0
2
2
  uiautomator2>=3.2.9
3
+ jinja2>=3.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Kea2-python
3
- Version: 0.1.0b0
3
+ Version: 0.1.2
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
@@ -8,6 +8,7 @@ Description-Content-Type: text/markdown
8
8
  License-File: LICENSE
9
9
  Requires-Dist: rtree>=1.3.0
10
10
  Requires-Dist: uiautomator2>=3.2.9
11
+ Requires-Dist: jinja2>=3.0.0
11
12
  Dynamic: license-file
12
13
 
13
14
 
@@ -17,7 +18,7 @@ Dynamic: license-file
17
18
  ![Python](https://img.shields.io/badge/python-3.8%2B-blue)
18
19
 
19
20
  <div>
20
- <img src="https://github.com/user-attachments/assets/dad0dbf5-b5d3-414b-a627-281a0fa40cf1" style="border-radius: 14px; width: 20%; height: 20%;"/>
21
+ <img src="https://github.com/user-attachments/assets/1a64635b-a8f2-40f1-8f16-55e47b1d74e7" style="border-radius: 14px; width: 20%; height: 20%;"/>
21
22
  </div>
22
23
 
23
24
  ## About
@@ -66,7 +67,7 @@ In the future, Kea2 will be extended to support
66
67
 
67
68
  Running environment:
68
69
  - support Windows, MacOS and Linux
69
- - python 3.8+, Android 4.4+ (Android SDK installed)
70
+ - python 3.8+, Android 5.0+ (Android SDK installed)
70
71
  - **VPN closed** (Features 2 and 3 required)
71
72
 
72
73
  Install Kea2 by `pip`:
@@ -203,28 +204,24 @@ For the preceding always-holding property, we can write the following script to
203
204
  ```
204
205
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
205
206
 
206
- You can run this example by using the similar command line in Feature 2. `--take-screenshots` is recommanded to replay the functional bug.
207
-
208
- > Notes: `--take-screenshots` will need more disk space on PC.
209
-
210
- ```bash
211
- # Launch Kea2 and load one single script quicktest.py.
212
- kea2 run -s "emulator-5554" -p it.feio.android.omninotes.alpha --agent u2 --running-minutes 10 --throttle 200 --driver-name d --take-screenshots unittest discover -p quicktest.py
213
- ```
207
+ You can run this example by using the similar command line in Feature 2.
214
208
 
215
209
  ## Documentations(更多文档)
216
210
 
217
- [更多文档](docs/manual_en.md):如何定义Kea2脚本、如何启动Kea2、如何查看/理解Kea2的运行结果
218
-
219
- [如何黑白控件/区域](docs/blacklisting.md)
211
+ [更多文档](docs/manual_en.md),包括了:
212
+ - Kea2的案例教程(基于微信介绍)、
213
+ - Kea2脚本的定义方法,支持的脚本装饰器(如`@precondition`、`@prob`、`@max_tries`)
214
+ - Kea2的启动方式、命令行选项
215
+ - 查看/理解Kea2的运行结果(如界面截图、测试覆盖率、脚本执行成功与否)。
216
+ - [如何黑白控件/区域](docs/blacklisting.md)
220
217
 
221
- ### Open-source projects used by Kea2
218
+ ## Open-source projects used by Kea2
222
219
 
223
220
  - [Fastbot](https://github.com/bytedance/Fastbot_Android)
224
221
  - [uiautomator2](https://github.com/openatx/uiautomator2)
225
222
  - [hypothesis](https://github.com/HypothesisWorks/hypothesis)
226
223
 
227
- ### Relevant papers of Kea2
224
+ ## Relevant papers of Kea2
228
225
 
229
226
  > General and Practical Property-based Testing for Android Apps. ASE 2024. [pdf](https://dl.acm.org/doi/10.1145/3691620.3694986)
230
227
 
@@ -254,4 +251,4 @@ Kea2 has also received many valuable insights, advices, feedbacks and lessons sh
254
251
 
255
252
  [^1]: 不少UI自动化测试工具提供了“自定义事件序列”能力(如[Fastbot](https://github.com/bytedance/Fastbot_Android/blob/main/handbook-cn.md#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E5%BA%8F%E5%88%97) 和[AppCrawler](https://github.com/seveniruby/AppCrawler)),但在实际使用中存在不少问题,如自定义能力有限、使用不灵活等。此前不少Fastbot用户抱怨过其“自定义事件序列”在使用中的问题,如[#209](https://github.com/bytedance/Fastbot_Android/issues/209), [#225](https://github.com/bytedance/Fastbot_Android/issues/225), [#286](https://github.com/bytedance/Fastbot_Android/issues/286)等。
256
253
 
257
- [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
254
+ [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
@@ -5,7 +5,7 @@
5
5
  ![Python](https://img.shields.io/badge/python-3.8%2B-blue)
6
6
 
7
7
  <div>
8
- <img src="https://github.com/user-attachments/assets/dad0dbf5-b5d3-414b-a627-281a0fa40cf1" style="border-radius: 14px; width: 20%; height: 20%;"/>
8
+ <img src="https://github.com/user-attachments/assets/1a64635b-a8f2-40f1-8f16-55e47b1d74e7" style="border-radius: 14px; width: 20%; height: 20%;"/>
9
9
  </div>
10
10
 
11
11
  ## About
@@ -54,7 +54,7 @@ In the future, Kea2 will be extended to support
54
54
 
55
55
  Running environment:
56
56
  - support Windows, MacOS and Linux
57
- - python 3.8+, Android 4.4+ (Android SDK installed)
57
+ - python 3.8+, Android 5.0+ (Android SDK installed)
58
58
  - **VPN closed** (Features 2 and 3 required)
59
59
 
60
60
  Install Kea2 by `pip`:
@@ -191,28 +191,24 @@ For the preceding always-holding property, we can write the following script to
191
191
  ```
192
192
  > We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
193
193
 
194
- You can run this example by using the similar command line in Feature 2. `--take-screenshots` is recommanded to replay the functional bug.
195
-
196
- > Notes: `--take-screenshots` will need more disk space on PC.
197
-
198
- ```bash
199
- # Launch Kea2 and load one single script quicktest.py.
200
- kea2 run -s "emulator-5554" -p it.feio.android.omninotes.alpha --agent u2 --running-minutes 10 --throttle 200 --driver-name d --take-screenshots unittest discover -p quicktest.py
201
- ```
194
+ You can run this example by using the similar command line in Feature 2.
202
195
 
203
196
  ## Documentations(更多文档)
204
197
 
205
- [更多文档](docs/manual_en.md):如何定义Kea2脚本、如何启动Kea2、如何查看/理解Kea2的运行结果
206
-
207
- [如何黑白控件/区域](docs/blacklisting.md)
198
+ [更多文档](docs/manual_en.md),包括了:
199
+ - Kea2的案例教程(基于微信介绍)、
200
+ - Kea2脚本的定义方法,支持的脚本装饰器(如`@precondition`、`@prob`、`@max_tries`)
201
+ - Kea2的启动方式、命令行选项
202
+ - 查看/理解Kea2的运行结果(如界面截图、测试覆盖率、脚本执行成功与否)。
203
+ - [如何黑白控件/区域](docs/blacklisting.md)
208
204
 
209
- ### Open-source projects used by Kea2
205
+ ## Open-source projects used by Kea2
210
206
 
211
207
  - [Fastbot](https://github.com/bytedance/Fastbot_Android)
212
208
  - [uiautomator2](https://github.com/openatx/uiautomator2)
213
209
  - [hypothesis](https://github.com/HypothesisWorks/hypothesis)
214
210
 
215
- ### Relevant papers of Kea2
211
+ ## Relevant papers of Kea2
216
212
 
217
213
  > General and Practical Property-based Testing for Android Apps. ASE 2024. [pdf](https://dl.acm.org/doi/10.1145/3691620.3694986)
218
214
 
@@ -242,4 +238,4 @@ Kea2 has also received many valuable insights, advices, feedbacks and lessons sh
242
238
 
243
239
  [^1]: 不少UI自动化测试工具提供了“自定义事件序列”能力(如[Fastbot](https://github.com/bytedance/Fastbot_Android/blob/main/handbook-cn.md#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%E5%BA%8F%E5%88%97) 和[AppCrawler](https://github.com/seveniruby/AppCrawler)),但在实际使用中存在不少问题,如自定义能力有限、使用不灵活等。此前不少Fastbot用户抱怨过其“自定义事件序列”在使用中的问题,如[#209](https://github.com/bytedance/Fastbot_Android/issues/209), [#225](https://github.com/bytedance/Fastbot_Android/issues/225), [#286](https://github.com/bytedance/Fastbot_Android/issues/286)等。
244
240
 
245
- [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
241
+ [^2]: 在UI自动化测试过程中支持自动断言是一个很重要的能力,但几乎没有测试工具提供这样的能力。我们注意到[AppCrawler](https://ceshiren.com/t/topic/15801/5)的开发者曾经希望提供一种断言机制,得到了用户的热切响应,不少用户从21年就开始催更,但始终未能实现。
@@ -81,7 +81,9 @@ if __name__ == "__main__":
81
81
  Driver=U2Driver,
82
82
  packageNames=[PACKAGE_NAME],
83
83
  # serial="emulator-5554", # specify the serial
84
- maxStep=5000,
84
+ maxStep=50,
85
+ profile_period=10,
86
+ take_screenshots=True, # whether to take screenshots, default is False
85
87
  # running_mins=10, # specify the maximal running time in minutes, default value is 10m
86
88
  # throttle=200, # specify the throttle in milliseconds, default value is 200ms
87
89
  agent="u2" # 'native' for running the vanilla Fastbot, 'u2' for running Kea2