Appium Appium 1.7.0 Released _ iOS 11 and Android 8 support, parallel sessions, and more!

恒温 · 2017年09月19日 · 最后由 颜如玉 回复于 2018年11月08日 · 2335 次阅读

https://discuss.appium.io/t/appium-1-7-0-released/18760/2

Hi everyone, we’ve got a fantastic release ready for you, with tons of stuff! Want to try it out right now? Head to your terminal and get the latest from NPM:

npm uninstall -g appium
npm install -g appium

Full Changelog

(Taken from the official Release Notes8 on GitHub)

Note: This is a feature release, marking two major changes:

  • Support iOS 11 through Xcode 9 beta 6
  • Support multiple simultaneous sessions in Android and iOS (9+)

Known Issues:

  • Android
    • Webviews on Android O do not work because of a bug in Chromedriver. We are working on a workaround. Chrome sessions still work
  • iOS
    • Touch ID enrollment on simulators in Xcode 9 does not work because of an issue with AppleScript
    • Scaling simulators with Xcode 9 does not work
    • Simulators in Xcode 9 produce no meaningful device logs
    • Parallel Safari/Webview sessions are not working due to an Apple bug

General

  • Fix handling of sending keys to elements in recent versions of Selenium
  • Allow app capability that is a url to have query parameters
  • Begin to allow multiple device support in situations where it is possible (e.g., iOS under Xcode 9)
  • Add isHeadless capability to allow running simulator/emulator with no UI

iOS

  • Add command to upload media to simulator
  • Fix reliability of touch ID functionality
  • Fix detection of system apps
  • Update atoms used for MobileSafari automation to those of Selenium 3.5.3
  • Add realDeviceLogger capability to allow specification of what program to use to capture logs on real device
  • Fix handling of enablePerformanceLogging capability in Safari tests
  • Fix offset when Safari on an iPad has multiple tabs

iOS - XCUITest

  • Support for latest Beta of iOS 11 (Xcode 9 beta 6)
  • Multiple device support
  • Fix handling of bundle id on simulators
  • Make nativeWebTap a setting as well as a desired capability
  • Allow nativeWebTap to work on real devices
  • Do not try to uninstall app before installing on real device, which was causing many issues
  • Fix clearing of text fields
  • Change behavior of useNewWDA: if true, forces uninstall of any existing WebDriverAgent app on device. Set it to true if you want to apply different startup options for WebDriverAgent for each session. Real devices require WebDriverAgent client to run for as long as possible without reinstall/restart to avoid issues. The false value will try to detect currently running WDA listener executed by previous testing session(s) and reuse it if possible, which is highly recommended for real device testing and to speed up suites of multiple tests in general. A new WDA session will be triggered at the default URL (http://localhost:8100) if WDA is not listening and webDriverAgentUrl capability is not set.
  • Allow setting url in native context
  • Fix screenshot functionality

Android

  • Add remoteAdbHost capability to specify the host on which adb is running, if it is not localhost
  • Add methods to start and stop recording the screen
  • Fix screenshot commands
  • Skip setting of mock location for emulators
  • Add methods for emulator phone capacity: sendSMS, gsmCall, gsmSignal, gsmVoice, powerAC, powerCapacity, and networkSpeed
  • Fix cleanup of adb port forwarding during Chrome sessions
  • Fix error where package name would be appended to fully qualified activity name and package finding would then fail
  • Properly handle bootstrap failure on launch
  • Make sure correct logger is used for bootstrap

Android - UIAutomator 2

  • Fix handling of adbPort capability
  • Fix coverage handling
  • Handle pressing and long pressing key codes
  • Enable nativeWebScreenshot capability
  • Fix restoring of IME when unicodeKeyboard/resetKeyboard capabilities are used
  • Add disableWindowAnimation capability to launch instrumentation with no animation
  • Correctly start ChromeDriver session for Chrome session
  • Allow getting password attribute from elements
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 6 条回复 时间 点赞

“Allow getting password attribute from elements”
用了那么久总算做了一点贡献😈

bauul 回复

哈哈~大家都为 appium 添砖加瓦

改动点很多,很多都很实用,我喜欢 remotehost 和短信发送

iOS - XCUITest

第 8 个变更点没理清楚😆
WebDriverAgent Connection to WDA timed out这个频繁出现的问题有没有关联?

测试运行个 4 到 5 个小时之后,就会出现连接失败。目前我们就是通过过了几个小时之后,重新启动一下 app 来绕过的😅

sini 回复

您好,对于 WebDriverAgent Connection to WDA timed out 这个频繁出现,这个问题有没有解决呢

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册