Commit Graph

200 Commits

Author SHA1 Message Date
bootstraponline
82a6a5dbb4 Fix xunit_android sample code 2014-05-14 23:27:40 -04:00
jonahss
02464c1c68 updated caps in java sample code. fixes #2524 2014-05-13 14:03:25 -07:00
Dylan Lacey
6461d33920 Update TouchActions in u_i_catalog demo 2014-05-12 21:36:41 -07:00
Dylan Lacey
8ad70b7db2 Update alerts 2014-05-12 03:12:07 -07:00
jonahss
23c6d9e762 update java sample code to use latest java-client 2014-05-06 15:26:54 -07:00
bootstraponline
5a218d90dc Fix cucumber example so multiple features run without error 2014-05-06 12:07:58 -04:00
Isaac Murchie
ae0ccd6696 Fix Python Sauce samples 2014-05-03 19:29:47 -07:00
Dylan Lacey
32694a6d2b Update README to 1.0 for Ruby 2014-05-02 19:44:41 -07:00
Dylan Lacey
f0a00fab23 Merge pull request #2466 from DylanLacey/update_docs
Update sauce example
2014-05-02 18:51:29 -07:00
Dylan Lacey
03dbf956fc Update sauce example 2014-05-02 18:46:37 -07:00
Jonathan Lipps
905cf4b033 Merge pull request #2463 from DylanLacey/update_docs
Update docs
2014-05-02 18:05:44 -07:00
Jonathan Lipps
b8bdd32ebe Merge pull request #2464 from Jonahss/javaSamples
Java samples
2014-05-02 17:55:54 -07:00
jonahss
74bfc51e71 updating java-client sample code 2014-05-02 17:36:36 -07:00
sebv
0b89b7fa6e updating dotnet caps 2014-05-02 17:08:47 -07:00
sebv
bbe3856da7 Fixing node sample caps. 2014-05-02 17:04:02 -07:00
Dylan Lacey
6cd4ebdfcd Updating Cucumber example doc 2014-05-02 16:34:02 -07:00
Dylan Lacey
8a830f0ea4 Updated simple_test to use appium_lib 2014-05-02 11:14:52 -07:00
Isaac Murchie
a70a7ad4b7 Update python samples to 1.0 2014-04-28 20:44:50 -07:00
sebv
8a292b0c8f typo 2014-04-26 18:18:31 -07:00
sebv
1bdec31746 Fixing dotnet example 2014-04-26 18:14:34 -07:00
sebv
54547813f5 Fixing dotnet example caps 2014-04-19 01:41:34 +08:00
sebv
905bb5c2d9 Fixing the caps in node.js 1.0 examples 2014-04-19 00:41:49 +08:00
sebv
ddad985d0e New dotnet code sample 2014-04-18 18:35:05 +08:00
Dylan Lacey
633c2ed81e Update Ruby sample code.
Change from tag_name to class_name for u\_i\_catalog, simple\_test,
cucumber tests.

Changed to iOS 7.1 in u\_i\_catalog, simple\_test, cucumber tests.

Changed `capabilities` to `desired_caps` to avoid some weirdo
collisions.

Remove Debugging output from Cucumber.

Add example of send\_keys as an action chain for u\_i\_catalog.
2014-04-01 01:46:27 -07:00
Dan Doveralba
b07e1b633c Add Location & Contacts Alerts
* reqest access to location and contacts in our sample app
2014-03-14 18:26:31 -07:00
Jonathan Lipps
849f07e884 change way test app launches location status 2014-02-25 19:32:43 -08:00
Jonathan Lipps
6890632937 add locationServicesAuthorized cap to pre-auth loc services for a given app 2014-02-20 16:17:23 -08:00
Jonathan Lipps
fea82366d7 update TestApp to show location enabled status 2014-02-20 16:17:23 -08:00
Jonathan Lipps
1e60311926 make ruby sauce android example send a name 2014-02-13 15:47:13 -08:00
Jonathan Lipps
0de0452b75 ensure selendroid test app doesn't need to have its version updated when we update selendroid 2014-02-13 15:25:56 -08:00
bootstraponline
2346cf0ace Add mobile find example for Java 2014-02-02 00:09:48 -05:00
Romain Criton
1b488f74e0 Add mobile: methods on Android: toggleData, toggleFlightMode, toggleWiFi, toggleLocationServices
Original commit message: didLaunch flag is set at the end of launch sequence

"Ping" ADB to check whether we're still connected

On Android Emulator, ADB is disconnected when we toggle Airplane Mode
or mobile Data. However, the problem does not manifest itself when
querying the list of devices via adb devices: the emulator is still
listed. After attempting to ping the emulator via a shell command, the
emulator is no longer listed and a kill-server is necessary to get ADB
back up and running

Partial recovery from a loss of ADB connection caused by turning off the data connection in the emulator

Conditionnally restart UI Automator in case of unexpected exit, mainly to address the use case of disconnecting the netwok on Android Emulator, which triggers a loss of ADB connection, and subsequently UI Automator connection

New method mobile: toggleData on Android

toggleData method on iOS

toggleFlightMode method

Make toggleData and toggleFlightMode mobile methods available for Selendroid

Fix indentation

Make sure we recover from ADB connection loss on Selendroid when disabling data on emulator

On Android emulator the ADB connection is lost when we disable the data
connection. On Android the ADB connection loss is handled by the UI
Automator exit handler, on Selendroid it must be handled in the toggle
method

Fixed indentation

Fixed ping method

Do not look for exact match in stdout

Reset uiautomatorRestartOnExit flag after we've disabled data connection

Refactor UI Automator exit handler and add a flag to completely ignore UI Automator exit

When we disconnect the network (via either disabling 3G or enabling
Flight Mode), the official Android emulator loses the ADB connection.
However, sometimes the UI Automator exit handler is not called until
the next attempt to send an ADB command. So we introduce a flag to tell
the UI automator exit handler to do nothing, i.e. neither restart UI
Automator nor uninstall the app, we take care of ADB and UI automator
reconnection before sending the next ADB command

Refactor toggleSetting code and handle ADB reconnection

Refactored the toggleSetting code in order to separate the code common
to both Android subplatforms, and code specific to either platforms
(UIAutomator and Selendroid)
Made sure UI Automator restart is handled in the toggleSetting code and
not in the UI Automator exit handler

Selendroid method for handling ADB disconnection in Emulator when turning network connection off

Right keyevent combination to position the focus on Airplane Mode checkbox for API <= 15

On Android 4.1+ (API 16+) there's a "Parent" button in the
AIRPLANE_MODE_SETTINGS Activity's ActionBar, whereas on earlier
versions there's no "Parent" button, so we need to take this into
account when performing the key sequence to position the focus on the
Airplane Mode checkbox

Generic mechanism to let each "toggle" method provide the sequence of key to position the focus

Each "toggle" mobile method may require a different sequence of keys in
order to position the focus within the corresponding Settings Activity.
Now this sequence is dynamically provided by each "toggle" method

mobile: toggleWiFi implementation

Remove blank line

mobile: toggleLocationServices implementation

When toggling LocationServices ON there's a dialog asking for user
confirmation, so we introduce a mechanism that lokks for this dialog
and acknowledge it, but if the dialog doesn't show up we proceed to
exit the settings activity

Adapt key sequence for toggleLocationServices on Android API 16

Fix bug on Kitkat when re-enabling Location Services

On Kitkat when re-entering the Location Services Activity after
disabling it, no UI element has the focus and no key press can let the
target switch grab the focus. The workaround is to make sure an element
has the focus by issuing a key press prior to opening the Location
Services activity.

Fix lint error (mixed tabs and spaces)

Fix lint error (mixed tabs and spaces)

Add comments

Spaces after if

Move variable definition

Shorten variable names

Remove dead code

Move restartAdb method to ADB (and rename to restart)

Rename rr variable to err

Android Test app for "mobile: toggle…" methods

Test script for "mobile: toggle…" methods

Refactoring of toggle test script to avoid code duplication

Adding other toggle methods

Fix lint warning

Handle an unexpected exit of logcat (for instance if ADB itself exits unexpectedly)

Make sure we can restart logcat after stoping it

Stop and restart logcat when restarting ADB

Fix UiAutomator state variable to prevent blocking when restarting UiAutomator

Refactored toggle test to allow testing on both Android and Selendroid

Get rid of the arbitrary timeout to account for ADB disconnection on emulator

When disconnecting the network connection through the "mobile: toggle"
methods, we no longer wait for an arbitrary period of time for the ADB
connection to go down.
Instead, we forcibly shut down ADB and restart it
2014-01-21 22:42:40 +00:00
Benjamin Herzig
c60f436aae switch values at assertEquals statements, to reflect the correct meaning 2014-01-15 17:02:26 +01:00
seveniruby
63aa6e1509 add troubleshooting.cn.md
add real-devices.cn.md
update the cn doc to the latest
add saucelabs-repository in pom.xml in testng example
2014-01-05 22:00:41 +08:00
sebv
6129c29a46 fixing one liner if 2014-01-03 02:03:41 +08:00
sebv
b793ce3ce8 fixing spaces 2014-01-03 02:00:59 +08:00
sebv
bbe8698077 new node examples 2014-01-02 11:33:04 +08:00
Leo Gallucci
eaaea6e2aa Markdown-related improvements to README.md ruby examples 2013-12-19 01:09:10 -02:00
Leo Gallucci
2932f01095 Small typo 'sessoin' for 'session' 2013-12-19 00:38:20 -02:00
Dylan Lacey
d3fc47fa43 Make ruby sauce examples follow the same structure.
Make Android and Ruby examples have helper code at the bottom, similar
method names
2013-12-13 22:50:57 -08:00
Dylan Lacey
6e416550db Make Ruby Sauce example report success, and actually work 2013-12-13 22:34:34 -08:00
Dylan Lacey
64bf117a55 Add result reporting to Ruby Android Sauce example 2013-12-13 22:09:22 -08:00
Jonathan Lipps
18917698a4 update sauce android example to not be dependent on driverblock 2013-12-09 15:12:46 -08:00
Jonathan Lipps
3822519efb allow iwebview to access https sites with self-signed certs 2013-11-26 17:25:47 -08:00
Jonathan Lipps
5f1713d57b add pass/fail status reporting to sauce node examples 2013-11-19 12:15:32 -08:00
Ross Rowe
2fe7ea7b09 Updated Sauce Java samples to use Sauce Java helper libraries, which sets the pass/fail status after the test has been run 2013-11-19 07:15:34 +11:00
bootstraponline
c1611ace1e Merge pull request #1494 from testerhome/master
add chinese docs and a ruby xunit testcase sample for android
2013-11-18 10:28:11 -08:00
unknown
5472fa6ace add chinese docs and a ruby xunit testcase sample for android 2013-11-18 14:16:34 +08:00
Jonathan Lipps
c3e7c1d03b update webviewapp for ios7, all orientations, and loading notification 2013-11-15 10:56:16 -08:00
Sergio Neves Barros
68d9a5f314 Fix for 1047 as dependencies have moved for latest version of selenium into interactions package 2013-11-01 09:22:21 +00:00