[](https://pypi.python.org/pypi/kea2-python)
[](https://pepy.tech/projects/kea2-python)

[](https://deepwiki.com/ecnusse/Kea2)
[

](https://github.com/ecnusse/Kea2)
[

](https://gitee.com/XixianLiang/Kea2)
**English | [简体中文](/README_cn.md)**
Kea2's logo: A large parrot skilled in finding "bugs"
### [:blue_book: User Manual](/docs/manual_en.md) | [:blue_book: 用户手册](/docs/manual_cn.md)
## About
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*.
Kea2 is currently built on top of [Fastbot 3.0](https://github.com/ecnusse/Fastbot_Android) (a modified/enhanced version of the original [FastBot 2.0](https://github.com/bytedance/Fastbot_Android)), *an industrial-strength automated UI testing tool from ByteDance*, and [uiautomator2](https://github.com/openatx/uiautomator2), *an easy-to-use and stable Android automation library*.
Kea2 currently targets [Android](https://en.wikipedia.org/wiki/Android_(operating_system)) apps.
https://github.com/user-attachments/assets/6120d8f5-5a9d-4ead-b27e-840c8757e28e
## Novelty & Important features
The expected behavior (the upper figure) and the buggy behavior (the lower figure).
For the preceding always-holding property, we can write the following script to validate the functional correctness: when there is an `input_box` widget on the message sending page, we can type any non-empty string text into the input box and assert `send_button` should always exists.
```python
@precondition(
lambda self: self.d(description="input_box").exists
)
def test_input_box(self):
# genenerate a random non-empty string (this is also property-based testing
# by feeding random text inputs!)
from hypothesis.strategies import text, ascii_letters
random_str = text(alphabet=ascii_letters).example()
# input this non-empty string into the input box
self.d(description="input_box").set_text(random_str)
# check whether the send button exists
assert self.d(description="send_button").exist
# we can even do more assertions, e.g.,
# the input string should successfully appear on the message sending page
assert self.d(text=random_str).exist
```
> We use [hypothesis](https://github.com/HypothesisWorks/hypothesis) to generate random texts.
You can run this example by using the similar command line in Feature 2.
## Test Reports
Kea2 automatically generates a HTML test report after each testing session. You can find the report in `output/` under your working directory.