automated tests - AndroidViewClient Down, Move, and Up Events -


i have managed install, , run culebra. used monkeyrunner move things around on device.

touch|{'x':106,'y':1647,'type':'down',} wait|{'seconds':2.0,} touch|{'x':210,'y':1647,'type':'move',} ... touch|{'x':210,'y':1647,'type':'up',} 

i have been looking move script androidviewclient, can not find equivalent. know touch, long touch, , drag. have seen adbclient supports down, up , down_and_up, no move.

have missed something? please show me can find documentation on this.

thanks, eugene

in developer options enable pointer location , can view x , y pointers. can use device.touch(x_position,y_position)

eg:-

~ device.touch(550,920)  0 --> "keycode_unknown 1 --> "keycode_menu 2 --> "keycode_soft_right 3 --> "keycode_home 4 --> "keycode_back 5 --> "keycode_call 6 --> "keycode_endcall 7 --> "keycode_0 8 --> "keycode_1 9 --> "keycode_2 10 --> "keycode_3 11 --> "keycode_4 12 --> "keycode_5 13 --> "keycode_6 14 --> "keycode_7 15 --> "keycode_8 16 --> "keycode_9 17 --> "keycode_star 18 --> "keycode_pound 19 --> "keycode_dpad_up 20 --> "keycode_dpad_down 21 --> "keycode_dpad_left 22 --> "keycode_dpad_right 23 --> "keycode_dpad_center 24 --> "keycode_volume_up 25 --> "keycode_volume_down 26 --> "keycode_power 27 --> "keycode_camera 28 --> "keycode_clear 29 --> "keycode_a 30 --> "keycode_b 31 --> "keycode_c 32 --> "keycode_d 33 --> "keycode_e 34 --> "keycode_f 35 --> "keycode_g 36 --> "keycode_h 37 --> "keycode_i 38 --> "keycode_j 39 --> "keycode_k 40 --> "keycode_l 41 --> "keycode_m 42 --> "keycode_n 43 --> "keycode_o 44 --> "keycode_p 45 --> "keycode_q 46 --> "keycode_r 47 --> "keycode_s 48 --> "keycode_t 49 --> "keycode_u 50 --> "keycode_v 51 --> "keycode_w 52 --> "keycode_x 53 --> "keycode_y 54 --> "keycode_z 55 --> "keycode_comma 56 --> "keycode_period 57 --> "keycode_alt_left 58 --> "keycode_alt_right 59 --> "keycode_shift_left 60 --> "keycode_shift_right 61 --> "keycode_tab 62 --> "keycode_space 63 --> "keycode_sym 64 --> "keycode_explorer 65 --> "keycode_envelope 66 --> "keycode_enter 67 --> "keycode_del 68 --> "keycode_grave 69 --> "keycode_minus 70 --> "keycode_equals 71 --> "keycode_left_bracket 72 --> "keycode_right_bracket 73 --> "keycode_backslash 74 --> "keycode_semicolon 75 --> "keycode_apostrophe 76 --> "keycode_slash 77 --> "keycode_at 78 --> "keycode_num 79 --> "keycode_headsethook 80 --> "keycode_focus 81 --> "keycode_plus 82 --> "keycode_menu 83 --> "keycode_notification 84 --> "keycode_search 85 --> "tag_last_keycode 

eg:-

~ device.shell('input keyevent 20')--->device.press('keycode_dpad_up')  ~ device.shell('input keyevent 26')--->device.press('keycode_dpad_down') 

Comments