Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str handlers ExceptHandler body Pass ImportFrom alias ImportFrom alias Assign NameStore Str Import alias Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body If NameLoad body Print AttributeLoad NameLoad attr Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If NameLoad body Print AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Str If NameLoad body Print AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad If NameLoad body Print AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Print AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A PIL Image N/A random N/A sys N/A os N/A time N/A cStringIO N/A N/A N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os path join N/A N/A os environ N/A ANDROID_VIEW_CLIENT_HOME src N/A N/A N/A N/A com.dtmilano.android.viewclient ViewClient com.dtmilano.android.uiautomator.uiautomatorhelper UiAutomatorHelper N/A __author__ diego N/A unittest N/A DEBUG False UiAutomatorHelperTests N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A DEBUG N/A N/A N/A sys stderr @@@ UiAutomatorHelperTests.setUp N/A N/A N/A self device N/A self serialno N/A N/A ViewClient connectToDeviceOrExit serialno .* N/A N/A N/A self assertIsNotNone N/A self device N/A N/A self uiAutomatorHelper N/A UiAutomatorHelper N/A self device N/A tearDown N/A N/A self N/A N/A N/A DEBUG N/A N/A N/A sys stderr @@@ UiAutomatorHelperTests.tearDown N/A N/A N/A N/A self uiAutomatorHelper quit N/A testDumpWindowHierarchy N/A N/A self N/A N/A N/A dump N/A N/A N/A self uiAutomatorHelper dumpWindowHierarchy N/A N/A N/A self assertIsNotNone dump N/A testDumpWindowHierarchy_repeat N/A N/A self N/A N/A N/A _ N/A range 10 N/A N/A dump N/A N/A N/A self uiAutomatorHelper dumpWindowHierarchy N/A N/A N/A self assertIsNotNone dump N/A testPressKeyCode N/A N/A self N/A N/A N/A response N/A N/A N/A self uiAutomatorHelper pressKeyCode 4 N/A 4 is KEYCODE_BACK N/A DEBUG N/A N/A N/A sys stderr response= response N/A testTakeScreenshot N/A N/A self N/A N/A N/A buf N/A N/A N/A self uiAutomatorHelper takeScreenshot N/A N/A N/A self assertIsNotNone buf N/A N/A N/A self assertTrue N/A N/A len buf 0 N/A image N/A N/A Image open N/A N/A cStringIO StringIO buf N/A N/A N/A self assertIsNotNone image N/A N/A N/A self assertEqual N/A image format PNG N/A testClick_random N/A N/A self N/A N/A N/A x N/A N/A random randint 0 1000 N/A y N/A N/A random randint 0 1000 N/A response N/A N/A N/A self uiAutomatorHelper click x x y y N/A DEBUG N/A N/A N/A sys stderr response= response N/A testSwipe_random N/A N/A self N/A N/A N/A x0 N/A N/A random randint 0 1000 N/A y0 N/A N/A random randint 0 1000 N/A x1 N/A N/A random randint 0 1000 N/A y1 N/A N/A random randint 0 1000 N/A steps N/A N/A random randint 10 100 N/A response N/A N/A N/A self uiAutomatorHelper swipe startX x0 startY y0 endX x1 endY y1 steps steps N/A DEBUG N/A N/A N/A sys stderr response= response N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main