08 2021 档案
摘要:1.什么是monkey ~ monkey程序由android系统自带,使用Java语言写成,在Android文件系统中的存放路径是:/system/framework/monkey.jar ~Monkey.jar程序是由一个名为“monkey”的Shell脚本来启动执行,shell脚本在Androi
阅读全文
摘要:一,背景 需要在ios上进行monkey测试,通过对比发现以后几个monkey的工具后,采用sjk_swiftmonkey 1.swiftmonkey https://github.com/zalando/SwiftMonkey 直接使用了 苹果的私有 api 如 XCEventGenerator.
阅读全文
摘要:Start Screen Recording self.driver.start_recording_screen() Stop Screen Recording self.driver.stop_recording_screen() Find Element 在页面上搜索元素 el = self.
阅读全文
摘要:Shake 在设备上执行摇动动作 self.driver.shake(); Lock(锁定设备) # Python self.driver.lock(); Unlock(解锁设备) self.driver.unlock(); Is Locked(设备是否锁定) self.driver.is_lock
阅读全文
摘要:Push File 将文件上传到设备指定位置 dest_path = '/data/local/tmp/test_push_file.txt' data = bytes('This is the contents of the file to push to the device.', 'utf-8
阅读全文
摘要:Acitvity Start Activity 通过提供包名和Activity名来启动一个Android Activity # Python self.driver.start_activity("com.example", "ActivityName"); 获取当前的Activity名称 得到当前
阅读全文
摘要:创建新的会话(session) # Python desired_caps = { 'platformName': 'Android', 'platformVersion': '7.0', 'deviceName': 'Android Emulator', 'automationName': 'Ui
阅读全文
摘要:直接使用adb shell命令不会报错,但是无法继续调用appium的api 实现某些操作时我们可以通过执行adb命令实现,比如某些点击事件,打开指定的文件等。 但是若在appium服务器内穿插使用adb shell命令,adb命令可正常执行,但是后续的appium的api调用会出现问题 selen
阅读全文
摘要:对于Android来说,以下两个参数都是必不可少的 'appPackage' 'appActivity' 可以通过以下adb shell命令获得 adb shell dumpsys window |findstr \/|findstr name= adb shell dumpsys window |
阅读全文
摘要:Appium 服务器初始化参数(Capability) 初始化参数(Capability)是JSON数据类型编码的键和值,当一个新的自动化会话被请求时,Appium客户端发送此参数到服务端。 此参数传递到Appium drivers有关您想要的各种重要事项测试工作。 它告诉appium server
阅读全文
摘要:Appium 介绍 Appium 是一个自动化开源工具,支持 iOS 、 Android 和 Windows 桌面平台上的原生、移动 Web 和混合应用的自动化 。**「原生应用」指那些用 iOS、 Android 或者 Windows SDKs 编写的应用。「移动 Web 应用」是用移动端浏览器访
阅读全文

浙公网安备 33010602011771号