Ale*_*e G 8 xcode simulator ui-testing parallel-testing ios
它们共享相同的 UDID 吗?它们是如何在幕后实施的?
场景是我有 4 个并行运行 UI 测试的克隆。我需要一个干净的模拟器来进行一些测试(但想保持随机测试顺序)
擦除所有测试模拟器的命令(之后您需要重新启动 Xcode):
xcrun simctl --set testing delete all
Run Code Online (Sandbox Code Playgroud)
总的来说,最好只重置这些 sims(之后你不需要重新启动):
xcrun simctl --set testing shutdown all
xcrun simctl --set testing erase all
Run Code Online (Sandbox Code Playgroud)
要擦除特定的,您首先需要获取他的 ID,list devices然后关闭并擦除:
xcrun simctl --set testing list devices
xcrun simctl --set testing shutdown 2BC2B50E-C4BA-45B9-9C73-AF5097BA1F0B
xcrun simctl --set testing erase 2BC2B50E-C4BA-45B9-9C73-AF5097BA1F0B
Run Code Online (Sandbox Code Playgroud)
感谢 Scott McCoy 的回答。
| 归档时间: |
|
| 查看次数: |
1476 次 |
| 最近记录: |