honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
812 stars 234 forks source link

Event types in input script #61

Closed michelleXue closed 6 years ago

michelleXue commented 6 years ago

Hi,

I am writing the input script right now and I want to know what event types does DroidBot support right now. Is there any reference I can look into?

Thank you so much!

yuanchun-li commented 6 years ago

Hi, I'm sorry there is no document for the script. However you may find the source code in droidbot/droidbot/input_event.py helpful.

For example, here is a list of supported event types:

KEY_KeyEvent = "key"
KEY_ManualEvent = "manual"
KEY_ExitEvent = "exit"
KEY_TouchEvent = "touch"
KEY_LongTouchEvent = "long_touch"
KEY_SwipeEvent = "swipe"
KEY_ScrollEvent = "scroll"
KEY_SetTextEvent = "set_text"
KEY_IntentEvent = "intent"