File upload to iOS/mobile device for use in testing?

1,133 views
Skip to first unread message

David Luu

unread,
Mar 9, 2013, 2:00:22 AM3/9/13
to appium-...@googlegroups.com
It just occurred to me while thinking about file upload to remote nodes via RemoteWebDriver or Grid for third party bindings via JSONWireProtocol that

while there may not be an exact need to upload files from an iOS device via the app being tested to some server in the cloud/internet, there could be useful case of storing/sending test data to the device for use in testing an app.

I haven't automated actual iOS apps so not sure if there's any facility built in by Apple already to transfer files to iOS device/simulator for testing. So if not, has there been thought of being able to do so with Appium? Or is that already available?

I was just thinking that if Appium doesn't have it yet, we could piggyback on the undocumented JSONWireProtocol command to send a (base64 encoded zip of a) file to the Selenium server. The Appium server can then base64 decode and unzip the file to temp storage on the iOS "device", if that was possible. And perhaps Appium would delete such temp files on server shutdown.

Once uploaded, how the file is used is simply up to the tester & the app being tested. The command would return the path (on the iOS device) to the transfered file.

Jonathan Lipps

unread,
Mar 9, 2013, 1:26:18 PM3/9/13
to David Luu, appium-...@googlegroups.com
Good idea! I don't believe there is the ability to do this in UIAutomation so it'd have to be an approach of the kind you suggest.

--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages