【问题标题】:Is it possible to set a location automatically for xcode UI testing?是否可以为 xcode UI 测试自动设置位置?
【发布时间】:2016-09-08 16:15:44
【问题描述】:

我目前正在 xcode 上为我的应用程序编写测试,我想知道是否有一行代码可以使用预先确定的位置服务来运行我的测试?我知道可以通过在测试运行时单击箭头来手动执行此操作,但我希望它自动执行?我在网上找不到任何文档或类似问题。

有人知道吗?

【问题讨论】:

标签: ios xcode ios-simulator xctest xcode-ui-testing


【解决方案1】:

对此的快速解决方案是在模拟器 > 调试 > 位置 > 自定义位置 > 然后添加纬度和经度。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-21
    • 2023-03-19
    • 1970-01-01
    • 2015-10-22
    • 2012-01-22
    • 1970-01-01
    相关资源
    最近更新 更多