I am trying to use UIAutomation for testing an iOS 8 Today extension widget. I can change the target to the extension, launch it, but then unable to do anything after that.
Has anyone had any success in using UIAutomation with the extensions?
I am trying to use UIAutomation for testing an iOS 8 Today extension widget. I can change the target to the extension, launch it, but then unable to do anything after that.
Has anyone had any success in using UIAutomation with the extensions?
我希望我在这个上有正确的一端。
我认为您想创建一组 UI 测试,它们的运行方式与普通应用程序一样。
我发现我无法像往常一样创建特定的 UI 测试目标然后将目标应用程序设置为 WidgetExtension。
但是,我能够将 WidgetExtension 目标设置为在设备上构建和运行(>= iOS 14),然后在我的 UI 测试中,我能够记录一些步骤,这将允许我编写更清晰的 UI 测试(将光标放在里面一个使用记录的测试函数,你可能已经知道了)。
棘手的一点是将 WidgetExtension 目标保持在测试模拟器上以运行您的自动化测试。