MCPcopy Index your code
hub / github.com/appium/python-client / make_options

Function make_options

test/functional/android/options.py:22–37  ·  view source on GitHub ↗

Get UiAutomator2 options configured for Android testing with parallel execution support.

(app: Optional[str] = None)

Source from the content-addressed store, hash-verified

20
21
22def make_options(app: Optional[str] = None) -> UiAutomator2Options:
23 """Get UiAutomator2 options configured for Android testing with parallel execution support."""
24 options = UiAutomator2Options()
25
26 # Set basic Android capabilities
27 options.device_name = android_device_name()
28 options.platform_name = 'Android'
29 options.automation_name = 'UIAutomator2'
30 options.new_command_timeout = 240
31 options.uiautomator2_server_install_timeout = 120000
32 options.adb_exec_timeout = 120000
33
34 if app is not None:
35 options.app = app
36
37 return options
38
39
40def android_device_name() -> str:

Callers 2

driverFunction · 0.70
driverFunction · 0.70

Calls 2

UiAutomator2OptionsClass · 0.90
android_device_nameFunction · 0.85

Tested by 2

driverFunction · 0.56
driverFunction · 0.56