Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifillstorage - fill and clean device storage #197

Open
IGPenguin opened this issue Jun 4, 2020 · 0 comments
Open

ifillstorage - fill and clean device storage #197

IGPenguin opened this issue Jun 4, 2020 · 0 comments
Labels
new feature idea for new feature

Comments

@IGPenguin
Copy link
Owner

IGPenguin commented Jun 4, 2020

🌈 Desired state

Create big file and push it into the device (preferably using terminal only) to fill system storage for edge case testing, when the app under test has offline mode etc.

📏 Challenges

It might not be possible to push files using USB connection to iOS.

📂 Sources

Create big dummy file
https://stackoverflow.com/questions/13518016/how-to-simulate-an-out-of-disk-space-condition-on-ios-devices/13518195

Fill up your device via iTunes, you can create a large dummy file in your Mac's terminal using this command.
This will create a file that is 1 gigabyte large. You can then transfer this file via iTunes to fill up the space as quick as possible.

mkfile -n 1g ~/Desktop/LargeDummyFile.

Push it into the device storage
ifuse -h
https://github.com/posixninja/libirecovery-2.0
http://appium.io/docs/en/commands/device/files/push-file/

@IGPenguin IGPenguin added the new feature idea for new feature label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature idea for new feature
Projects
None yet
Development

No branches or pull requests

1 participant