iOS 测试 iOS 自动化测试怎么实现 APP 间切换?

Dstrings · January 06, 2020 · Last by lcw replied at January 11, 2020 · 1772 hits

报错尝试:
1、如果将 app 置于后台:[Xcode] t = 1682.74s Pressing Home button
[Xcode]
[Xcode] t = 1684.16s Find the Application 'com.apple.springboard'

2、使用 driver.activate_app('目标包名'):A session is either terminated or not started

共收到 3 条回复 时间 点赞

XCUIApplication.init(bundleIdentifier: "xxxxxxxx")

lcw 回复

感谢回复。不过没太理解,能再详细点吗?

Dstrings 回复

xctest 可以直接切换 app,appium 不知道能不能。。

需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up