gpt4 book ai didi

ios - 如何使用 XCUItest 设置 UserDefaults

转载 作者:行者123 更新时间:2023-11-28 20:51:11 29 4
gpt4 key购买 nike

我正在使用 XCUITest 进行 iOS UI 测试。由于我们无权访问应用程序,我们如何为应用程序设置默认值?

最佳答案

您可以使用启动参数传递所有必需的数据。

请阅读文档

https://developer.apple.com/documentation/xctest/xcuiapplication/1500477-launcharguments

另一种(速度稍慢)的选择是使用深层链接。

关于ios - 如何使用 XCUItest 设置 UserDefaults,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58223467/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com