Commit Graph

2609 Commits

Author SHA1 Message Date
bootstraponline 5965ef39fd Android mobile :reset now uses adb uninstall/pm install
The old clean.apk approach to resetting state doesn't work well. Using
instrumentation means the app is running when the data is deleted. It's better
to use the standard adb install/uninstall commands.

To make this faster, the apk is pushed to the device once (/data/local/tmp/) and
then installed from that location on each reset. Using the regular adb install
command is slow due to the file transfer speed.

Before uninstalling the app, it's stopped to prevent crashes. Some apps don't
like to be uninstalled while running.
2013-10-09 15:21:21 -04:00
bootstraponline dbbef1578f Merge pull request #1284 from filmaj/unlock_apk-update
Updated unlock_apk submodule
2013-10-08 11:39:33 -07:00
filmaj bd57f112bc Updated unlock_apk submodule ref: now supports Samsung S3 and Samsung Galaxy Note2. Tested as well on Nexus 4 devices as well as 2.3.3, 4.0.3, 4.1.2, 4.2.2 and 4.3 emulators. 2013-10-08 11:03:08 -07:00
bootstraponline 128e114fad Merge pull request #1282 from jlipps/master
turn on debug transactions for instruments
2013-10-08 10:34:14 -07:00
Jonathan Lipps 2cf43b76aa make sure debug transactions is on (fix #1281) 2013-10-08 10:33:27 -07:00
Jonathan Lipps 259a6c8d69 remove npm deps on hardcore reset 2013-10-08 10:29:29 -07:00
bootstraponline 1f38724159 Merge pull request #1265 from paymand/android_pinch
Implemented pinch in/out on Android.
2013-10-08 07:23:27 -07:00
Payman Delshad 1d5f0868b6 Implemented pinch in/out on Android. 2013-10-08 16:14:20 +02:00
Jonathan Lipps 888bf2ec69 Merge pull request #1276 from bootstraponline/master
Remove checkMissingParams when defaults are set
2013-10-07 11:19:10 -07:00
bootstraponline 70817c098b Remove checkMissingParams when defaults are set 2013-10-07 13:30:01 -04:00
bootstraponline 06bb7ae94a iOs -> iOS 2013-10-07 13:00:49 -04:00
bootstraponline 1948364d11 Merge pull request #1274 from appium/ios7_accept_alert
Fix spacing
2013-10-07 08:13:03 -07:00
bootstraponline a6ffe3f268 Fix spacing 2013-10-07 11:11:48 -04:00
Dan Cuellar 1327b4d8bf Merge pull request #1273 from bootstraponline/ios7_accept_alert
Fix acceptAlert on iOS 7
2013-10-07 08:01:52 -07:00
bootstraponline a6b136ac2d Merge pull request #1270 from bootstraponline/screencap_bin
Use screencap bin
2013-10-07 07:56:41 -07:00
bootstraponline 77c2e222a7 Fix acceptAlert on iOS 7 2013-10-07 10:56:25 -04:00
bootstraponline 000831be84 Use screencap bin
Use Host GPU must not be checked or the screenshot will be grey.
2013-10-04 15:51:42 -04:00
Jonathan Lipps 5ddc2e5099 Merge pull request #1268 from bootstraponline/ios_reset
iOS mobile reset stops the emulator and removes all apps
2013-10-04 11:16:49 -07:00
bootstraponline c1572f2718 iOS mobile reset stops the emulator and removes all apps
Fix #1247
2013-10-04 14:10:50 -04:00
bootstraponline afc7a753ef Merge pull request #1266 from bootstraponline/screenshot
Fix screenshot
2013-10-04 10:23:20 -07:00
bootstraponline a5da221ef4 Fix screenshot
Use Host GPU must be checked.
http://stackoverflow.com/questions/13800437/why-android-uiautomators-uidevicetakescreenshot-always-return-false-on-emulato
2013-10-04 13:22:30 -04:00
Dan Cuellar a12b930099 Merge pull request #1263 from penguinho/master
Checking in graphics resource
2013-10-03 16:46:03 -07:00
Dan Cuellar 27dbdf9a2e Checking in graphics resource 2013-10-03 16:45:46 -07:00
Jonathan Lipps 1c425c0979 Merge pull request #1260 from paymand/orientation_refactor
Refactored setOrientation() for Android.
2013-10-03 06:53:31 -07:00
Payman Delshad bf14801493 Refactored setOrientation() for Android.
Appium throws "Set the orientation, but app refused to rotate." when
setting the orientation to landscape on Android, which was fixed by
calling the correct function. Also, made the code simpler by defining
portrait=(0 degree rotation) and landscape=(270 degree rotation)
regardless of current display rotation. Moreover, unfreeze device
rotation at the end.
2013-10-03 14:26:54 +02:00
Jonathan Lipps f6b14c0761 Merge pull request #1257 from ritika-mish/patch-1
Update gestures.md
2013-10-03 01:52:31 -07:00
ritika-mish 59ff829584 Update gestures.md 2013-10-03 11:04:41 +05:30
Jonathan Lipps 66aab04727 Merge pull request #1254 from bootstraponline/accept_alert
Don't accept the alert when we're trying to dismiss it
2013-10-02 09:39:19 -07:00
bootstraponline 1904d1fe9c Don't accept the alert when we're trying to dismiss it
If cancelButton().isNil() that doesn't mean there isn't a cancel button.
The cancel button is always button[0]. Press the dismiss button when requested
instead of calling acceptAlert().

Fix #1253
2013-10-02 12:07:35 -04:00
bootstraponline 4e85af6ca0 Merge pull request #1251 from bootstraponline/master
Update Clean.apk
2013-10-02 07:35:47 -07:00
bootstraponline 96e6a76de5 Update Clean.apk
The lib/ folder contains native libs so it must never be deleted.

https://github.com/appium/clean_apk/commit/af006af44b0c85006a8fa47c5fa3ab2cd6f40739

adb logcat -s "clean.apk" will display the debug log of clean.apk. This makes it
easy to find out if it's running successfully and what files are removed.

https://github.com/appium/clean_apk/commit/0445f7d0d1286c569c06e10d86bdcc1ad950688a
2013-10-01 12:11:34 -04:00
Dan Cuellar e7e63652aa Merge pull request #1241 from penguinho/gruntpaths
Cleaning up styles for paths in grunt-helpers and making all paths Windows-friendly
2013-10-01 04:38:51 -07:00
Jonathan Lipps 4db29bdf6f Merge pull request #1237 from mgmanikandan87/patch-6
Updated : Java code snippet for Slider
2013-09-30 01:26:49 -07:00
Dan Cuellar 32018ba6b0 making paths windows friendly 2013-09-29 09:17:06 -07:00
Dan Cuellar 39773cfc7a Merge pull request #1240 from penguinho/master
Update windows docs with cleanup and links to dependencies
2013-09-29 09:07:01 -07:00
Dan Cuellar e5a2285c54 Update windows docs 2013-09-29 09:06:29 -07:00
Dan Cuellar a93ee10cfc Merge pull request #1239 from penguinho/master
Adding Selendroid (Dev) and Gappium support to reset.bat
2013-09-29 08:47:33 -07:00
Dan Cuellar 7e8350f236 Adding Selendroid (Dev) and Gappium support 2013-09-29 08:46:52 -07:00
Dan Cuellar d960bab3bd Merge pull request #1238 from penguinho/master
Even Better reset.bat
2013-09-29 08:04:38 -07:00
Dan Cuellar 592f6c394a Even Better reset.bat 2013-09-29 07:59:37 -07:00
Manikandan M G 27d034e61c Updated : Java code snippet for Slider
Java code snippet for Slider
2013-09-29 05:53:02 +05:30
Dan Cuellar c4c5720782 Merge pull request #1236 from penguinho/master
Better reset.bat
2013-09-28 16:10:08 -07:00
Dan Cuellar 77933711b6 Better reset.bat 2013-09-28 16:09:08 -07:00
Jonathan Lipps a69f57e4eb Merge pull request #1234 from tylersnavely-wf/xcode_build_path_fix
Unable to find Xcode app path if the path contains a space
2013-09-28 02:53:04 -07:00
Tyler Snavely 0917e5344b JSON stringify the Xcode build path 2013-09-27 17:18:25 -05:00
Jonathan Lipps d0827d6b25 bump version and changelog for 0.10.1 v0.10.1 2013-09-27 17:33:27 +01:00
Jonathan Lipps 2a748a155b Merge pull request #1230 from jlipps/master
fix some selendroid and unlock_apk issues
2013-09-27 06:54:31 -07:00
Jonathan Lipps 913295e405 bump selendroid test app to 0.6.0-SNAPSHOT 2013-09-27 14:45:08 +01:00
Jonathan Lipps 37bb06f2f7 update selendroid url and update selendroid itself 2013-09-27 14:36:31 +01:00
Jonathan Lipps bd77c9ee36 put unlock_apk in build so it gets packaged up 2013-09-27 14:33:02 +01:00