Support UI driven test for Android
There is a open source project http://
example of test script - testing the calculator application.
import pexpect
import sys
def proc_ask(cmd, result="result: True"):
proc.
proc.
cmd = "python tema.android-
try:
proc = pexpect.spawn(cmd, timeout=10, logfile=sys.stdout)
proc.
proc_
proc_
proc_
try:
except:
proc_
proc_
proc_
proc_
proc_
print "\nCalculate/1: checking 123+456=579... pass"
except:
print "\nCalculate/1: checking 123+456=579... fail"
proc_ask("PressKey KEYCODE_HOME")
Blueprint information
- Status:
- Complete
- Approver:
- Andy Doan
- Priority:
- Undefined
- Drafter:
- Le Chi Thu
- Direction:
- Needs approval
- Assignee:
- Le Chi Thu
- Definition:
- Obsolete
- Series goal:
- Accepted for trunk
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Michael Hudson-Doyle
Related branches
Related bugs
Sprints
Whiteboard
[le-chi-thu, 2012-03-22] I picked part of Android support from the tema project and updated to work with ICS.
[doanac, 2012-04-11] We are going to put this on hold for a bit, until the Android team has more interest.
Meta:
Headline: TBD
Acceptance: TBD
Work Items
Work items:
Define work items: TODO