Robotium in Action

Be patient from 00:10 to 00:24 as I run the program.

Here I wrote a small Robotium project to test Skype apk I got from Google Play after properly processing it. No source code is needed. I clear previous user name and enter new username/ password, go to contact, call Echo / Sound Service, turn on speaker to make it louder, take a screenshot at exact 5 seconds (or any time you want), then end call, go back and log out.

The screen shot is in Robotium-Screenshot folder on sdcard. You can add time stamp to the file name in Robotium so you can take a lot of screenshots.

The only drawback is that the password will show up on device, whether you use enterText() or typeText(). I think I might have a solution but I haven’t try it out.

Advertisement

2 thoughts on “Robotium in Action

  1. Hi Ahbi,
    You can try this link from the same website:
    http://www.troido.de/re-sign.jar
    Or use jarsigner
    follow the steps (reference: Robotium website):
    Un-zip the apk file
    * Delete the META-¬INF folder
    * Re-zip the apk file
    It will zip file as “applicationName.apk.zip” , rename it and make it as “applicationName.apk”
    * In Dos prompt/Terminal write following commands
    > jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android applicationName.apk
    androiddebugkey
    > zipalign 4 applicationName.apk TempApplicationName.apk

Leave a Reply to fangmobile Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s