Lettuce steps definition to perform android UI testing.
pip install -r requirements
lettuce
See lettuce and uiautomator.
Should see the text "(\.+)"
Should not see the text "(\.+)"
Should see "(\.+)"
Shoule not see "(\.+)"
Should see view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\)
Should not see view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\)
Press ([\w ,]+) key
Press keycode (\w+)
Touch view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\)
Long touch view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\)
Touch the text "(\.+)"
Touch text "(\.+)"
Swipe view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\) to (left|right|up|down)
Scroll view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\) (horizentically|vertically) (forward|backward)
Scroll view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\) (horizentically|vertically) to (beginning|end)
Scroll view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\) (horizentically|vertically) until view\(([\w]+=[\S+][,[\s]*[\w]+=[\S+]]+)\)
It's hard to define an android uiautomator DSL, so a lot of TODOs and all may change. If you have any good idea, please email xiaocong@gmail.com