设备管理¶
Mozbase 提供了一个名为 mozdevice 的模块,用于在连接到工作站的 Android 手机、平板电脑或模拟器上运行自动化测试或脚本。
mozdevice
— 与 Android 设备交互ADBAndroid
ADBAndroid.BUILTINS
ADBAndroid.SOCKET_DIRECTION_FORWARD
ADBAndroid.SOCKET_DIRECTION_REVERSE
ADBAndroid.add_change_device_settings()
ADBAndroid.add_mock_location()
ADBAndroid.batch_execute()
ADBAndroid.chmod()
ADBAndroid.chown()
ADBAndroid.clear_logcat()
ADBAndroid.command()
ADBAndroid.command_output()
ADBAndroid.cp()
ADBAndroid.create_socket_connection()
ADBAndroid.enable_run_as_for_path()
ADBAndroid.enforcing
ADBAndroid.exists()
ADBAndroid.forward()
ADBAndroid.get_battery_percentage()
ADBAndroid.get_file()
ADBAndroid.get_info()
ADBAndroid.get_ip_address()
ADBAndroid.get_logcat()
ADBAndroid.get_process_list()
ADBAndroid.get_prop()
ADBAndroid.get_state()
ADBAndroid.get_sysinfo()
ADBAndroid.get_top_activity()
ADBAndroid.grant_runtime_permissions()
ADBAndroid.install_app()
ADBAndroid.install_app_bundle()
ADBAndroid.is_app_installed()
ADBAndroid.is_device_ready()
ADBAndroid.is_dir()
ADBAndroid.is_file()
ADBAndroid.is_package_debuggable()
ADBAndroid.is_path_internal_storage()
ADBAndroid.is_rooted
ADBAndroid.kill()
ADBAndroid.launch_activity()
ADBAndroid.launch_application()
ADBAndroid.launch_fennec()
ADBAndroid.launch_service()
ADBAndroid.list_files()
ADBAndroid.list_forwards()
ADBAndroid.list_reverses()
ADBAndroid.list_socket_connections()
ADBAndroid.ls()
ADBAndroid.mkdir()
ADBAndroid.mv()
ADBAndroid.package_dir
ADBAndroid.pidof()
ADBAndroid.pkill()
ADBAndroid.power_on()
ADBAndroid.process_exist()
ADBAndroid.pull()
ADBAndroid.push()
ADBAndroid.reboot()
ADBAndroid.remount()
ADBAndroid.remove_forwards()
ADBAndroid.remove_reverses()
ADBAndroid.remove_socket_connections()
ADBAndroid.reverse()
ADBAndroid.rm()
ADBAndroid.rmdir()
ADBAndroid.run_as_package
ADBAndroid.selinux
ADBAndroid.shell()
ADBAndroid.shell_bool()
ADBAndroid.shell_output()
ADBAndroid.stop_application()
ADBAndroid.test_root
ADBAndroid.uninstall_app()
ADBAndroid.update_app()
ADBCommand
ADBDevice
ADBDevice.BUILTINS
ADBDevice.SOCKET_DIRECTION_FORWARD
ADBDevice.SOCKET_DIRECTION_REVERSE
ADBDevice.add_change_device_settings()
ADBDevice.add_mock_location()
ADBDevice.batch_execute()
ADBDevice.chmod()
ADBDevice.chown()
ADBDevice.clear_logcat()
ADBDevice.command()
ADBDevice.command_output()
ADBDevice.cp()
ADBDevice.create_socket_connection()
ADBDevice.enable_run_as_for_path()
ADBDevice.enforcing
ADBDevice.exists()
ADBDevice.forward()
ADBDevice.get_battery_percentage()
ADBDevice.get_file()
ADBDevice.get_info()
ADBDevice.get_ip_address()
ADBDevice.get_logcat()
ADBDevice.get_process_list()
ADBDevice.get_prop()
ADBDevice.get_state()
ADBDevice.get_sysinfo()
ADBDevice.get_top_activity()
ADBDevice.grant_runtime_permissions()
ADBDevice.install_app()
ADBDevice.install_app_bundle()
ADBDevice.is_app_installed()
ADBDevice.is_device_ready()
ADBDevice.is_dir()
ADBDevice.is_file()
ADBDevice.is_package_debuggable()
ADBDevice.is_path_internal_storage()
ADBDevice.is_rooted
ADBDevice.kill()
ADBDevice.launch_activity()
ADBDevice.launch_application()
ADBDevice.launch_fennec()
ADBDevice.launch_service()
ADBDevice.list_files()
ADBDevice.list_forwards()
ADBDevice.list_reverses()
ADBDevice.list_socket_connections()
ADBDevice.ls()
ADBDevice.mkdir()
ADBDevice.mv()
ADBDevice.package_dir
ADBDevice.pidof()
ADBDevice.pkill()
ADBDevice.power_on()
ADBDevice.process_exist()
ADBDevice.pull()
ADBDevice.push()
ADBDevice.reboot()
ADBDevice.remount()
ADBDevice.remove_forwards()
ADBDevice.remove_reverses()
ADBDevice.remove_socket_connections()
ADBDevice.reverse()
ADBDevice.rm()
ADBDevice.rmdir()
ADBDevice.run_as_package
ADBDevice.selinux
ADBDevice.shell()
ADBDevice.shell_bool()
ADBDevice.shell_output()
ADBDevice.stop_application()
ADBDevice.test_root
ADBDevice.uninstall_app()
ADBDevice.update_app()
ADBDeviceFactory()
ADBError
ADBHost
ADBProcess
ADBProcessError
ADBTimeoutError
RemoteProcessMonitor