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

Dstrings · 2020年01月06日 · 最后由 lcw 回复于 2020年01月11日 · 1759 次阅读

报错尝试:
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 不知道能不能。。

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