Skip to content

Commit

Permalink
Merge pull request #19 from serhatbolsu/master
Browse files Browse the repository at this point in the history
Added desired Capability = newCommandTimeout
  • Loading branch information
jollychang committed Dec 5, 2014
2 parents 95dbcab + 4ececcf commit f38b1b4
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/AppiumLibrary/keywords/_applicationmanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,25 @@ def open_application(
self, remote_url, platform_name,
platform_version, device_name, app,
automation_name=None, app_package=None, app_activity=None,
app_wait_package=None, app_wait_activity=None, alias=None,
bundleid=None, udid=None):
app_wait_package=None, app_wait_activity=None, new_command_timeout=60,
alias=None, bundleid=None, udid=None):
"""Opens a new application to given Appium server.
| *Option* | *Man.* | *Description* |
| remote_url | Yes | Appium server url |
| platform_name | Yes | platform name, either "iOS" or "Android" |
| platform_version | Yes | platform version, the mobile OS version you want |
| device_name | Yes | Device name, the kind of device you want, like "iPhone Simulator" |
| app | Yes | Android/iOS application path |
| automation_name | no | "Selendroid" if you want to use Selendroid, otherwise, this can be omitted |
| app_package | no | Android application package name |
| app_activity | no | Android application activity name |
| app_wait_package | no | Java package of the Android app you want to wait for |
| app_wait_activity | no | Activity name for the Android activity you want to wait for |
| alias | no | alias |
| bundleid | no | iOS bundle ID (e.g. com.yourCompany.yourApp). |
| udid | no | UDID for iOS and android mobile device |
| *Option* | *Man.* | *Description* |
| remote_url | Yes | Appium server url |
| platform_name | Yes | platform name, either "iOS" or "Android" |
| platform_version | Yes | platform version, the mobile OS version you want |
| device_name | Yes | Device name, the kind of device you want, like "iPhone Simulator" |
| app | Yes | Android/iOS application path |
| automation_name | no | "Selendroid" if you want to use Selendroid, otherwise, this can be omitted |
| app_package | no | Android application package name |
| app_activity | no | Android application activity name |
| app_wait_package | no | Java package of the Android app you want to wait for |
| app_wait_activity | no | Activity name for the Android activity you want to wait for |
| new_command_timeout | no | How long (in seconds) Appium will wait for a new command from the client before assuming the client quit and ending the session |
| alias | no | alias |
| bundleid | no | iOS bundle ID (e.g. com.yourCompany.yourApp). |
| udid | no | UDID for iOS and android mobile device |
Examples:
| Open Application | http://localhost:4723/wd/hub | iOS | 7.0 | iPhone Simulator | your.app |
Expand All @@ -73,6 +74,7 @@ def open_application(
desired_caps['appWaitPackage'] = app_wait_package
desired_caps['androidActivity'] = app_activity
desired_caps['appWaitActivity'] = app_wait_activity
desired_caps['newCommandTimeout'] = new_command_timeout
desired_caps['bundleid'] = bundleid
if udid:
desired_caps['udid'] = udid
Expand Down

0 comments on commit f38b1b4

Please sign in to comment.