Now I became a real Jedi knight ...(T^T)
Search This Blog
Sunday, February 24, 2013
Wednesday, February 13, 2013
Thursday, January 31, 2013
#MonkeyRunner : Delete Text on EditText
Now my job is about writing script for doing auto-testing using Monkey runner.
I found the way to delete text that has been entered inside Edittext. Here is the code ...
# Max text length
fieldLength = 100
# Select all the chars on the right
dev.press('KEYCODE_SHIFT_RIGHT', MonkeyDevice.DOWN)
for i in range(fieldLength):
dev.press('KEYCODE_DPAD_RIGHT', MonkeyDevice.DOWN_AND_UP)
#MonkeyRunner.sleep(1)
dev.press('KEYCODE_SHIFT_RIGHT', MonkeyDevice.UP)
# Delete them
dev.press('KEYCODE_DEL', MonkeyDevice.DOWN_AND_UP)
# Select all the chars on the left
dev.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.DOWN)
for i in range(fieldLength):
dev.press('KEYCODE_DPAD_LEFT', MonkeyDevice.DOWN_AND_UP)
#MonkeyRunner.sleep(1)
dev.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.UP)
# Delete them
dev.press('KEYCODE_DEL', MonkeyDevice.DOWN_AND_UP)
By running above script, it will select text and drag to the right then delete it. Afterthat it will select text and drag to the left and delete to make sure all text is clear.
Hope it helps...
I found the way to delete text that has been entered inside Edittext. Here is the code ...
# Max text length
fieldLength = 100
# Select all the chars on the right
dev.press('KEYCODE_SHIFT_RIGHT', MonkeyDevice.DOWN)
for i in range(fieldLength):
dev.press('KEYCODE_DPAD_RIGHT', MonkeyDevice.DOWN_AND_UP)
#MonkeyRunner.sleep(1)
dev.press('KEYCODE_SHIFT_RIGHT', MonkeyDevice.UP)
# Delete them
dev.press('KEYCODE_DEL', MonkeyDevice.DOWN_AND_UP)
# Select all the chars on the left
dev.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.DOWN)
for i in range(fieldLength):
dev.press('KEYCODE_DPAD_LEFT', MonkeyDevice.DOWN_AND_UP)
#MonkeyRunner.sleep(1)
dev.press('KEYCODE_SHIFT_LEFT', MonkeyDevice.UP)
# Delete them
dev.press('KEYCODE_DEL', MonkeyDevice.DOWN_AND_UP)
By running above script, it will select text and drag to the right then delete it. Afterthat it will select text and drag to the left and delete to make sure all text is clear.
Hope it helps...
Wednesday, January 16, 2013
How to Unlock Angry Birds:StarWars [Path of the Jedi] for FREE !!
Surely, I am a StarWars fanboy and I love playing Angry Birds. With all my Force I had spend, now I clear all free stages(with all 3 stars) and suddenly, I just realized that 'Path of the Jedi' was unlocked !! The Force is strong with me ...
*** all screenshots are Rovio Entertainment's property.
*** all screenshots are Rovio Entertainment's property.
Monday, December 24, 2012
Thursday, December 20, 2012
Slim Clock version 1.0 released
Just in time before X'mas (and World ends)
Slim Clock version 1.0 (for girls or whoever wanna looks slim and pretty)
It helping you to motivate diet activity. Try it now !!
What's new ?
1.Add record sound function for making your own sound effect.
2.Improve graphics.
3.Add more template.
4.Fix bugs.
Download here->
https://play.google.com/store/apps/details?id=ataya.p.gadget.slimclock
Slim Clock version 1.0 (for girls or whoever wanna looks slim and pretty)
It helping you to motivate diet activity. Try it now !!
What's new ?
1.Add record sound function for making your own sound effect.
2.Improve graphics.
3.Add more template.
4.Fix bugs.
Download here->
https://play.google.com/store/apps/details?id=ataya.p.gadget.slimclock
Monday, December 17, 2012
Muscle Clock version 3.5 released
Merry X'mas and Happy New Year !!
I just released Muscle Clock version 3.5
Enjoy !!
What's new ?
1.Add record sound function for making your own sound effect.
2.Improve graphics.
3.Add more template.
4.Fix bugs.
Download & Install here ->
https://play.google.com/store/apps/details?id=ataya.p.gadget.muscleclock
I just released Muscle Clock version 3.5
Enjoy !!
What's new ?
1.Add record sound function for making your own sound effect.
2.Improve graphics.
3.Add more template.
4.Fix bugs.
Download & Install here ->
https://play.google.com/store/apps/details?id=ataya.p.gadget.muscleclock
Subscribe to:
Posts (Atom)










