Hi everybody, I'm writing an python script test for mobile App (for Android). One of them is to test memory device. I have one test to try to install an APK on device that doesn't have enough memory, so I want to catch this exception:
03:27:35 E/ddms: transfer error: No space left on device 03:27:35 E/Device: Error during Sync: No space left on device 151022 15:27:35.279:S [MainThread] [com.android.chimpchat.adb.AdbChimpDevice] Error installing package: /home/apks_to_test/App-name.apk 151022 15:27:35.279:S [MainThread] [com.android.chimpchat.adb.AdbChimpDevice] *com.android.ddmlib.InstallException: No space left on device* and save on a file(txt) to show the user in a cleaner way like *"Your device doesn't have enough memory"* *I want to cath "* *com.android.ddmlib.InstallException: No space left on device" Is it possible. This is my code:* print "Installing APK" for apk in glob.glob(self.apkfolder + '/*.apk'): try: self.device.installPackage(apk) except IOError, error: print "Error Message " print(error) But It’s not working. Some ideas? I'm using Ubuntu 14.04 Thanks! -- Att. *Isabel Karina*
-- https://mail.python.org/mailman/listinfo/python-list