简体   繁体   English

iOS 界面自动化测试

[英]iOS UI automation testing

I'm a beginner in mobile iOS testing and I'm trying to write some tests, for example:我是移动 iOS 测试的初学者,我正在尝试编写一些测试,例如:

Click "Install" on intallation popup --> Check if app is installed on the device在安装弹出窗口中单击“安装” -->检查设备上是否安装了应用程序

But I can't find any tools that make possible to execute such test.但是我找不到任何可以执行此类测试的工具。 So far I've been using Appium, but it requires app or bundleId to run tests.到目前为止,我一直在使用 Appium,但它需要 app 或 bundleId 才能运行测试。 Is there any way to automate popups/browsing the device?有什么方法可以自动弹出窗口/浏览设备吗?

You can work with popups as simple IOS elements.您可以将弹出窗口作为简单的 IOS 元素来使用。 Or you can force appium to auto enable (or disable) any popup by adding appropriate capability (“autoAcceptAlerts”,true);或者您可以通过添加适当的功能(“autoAcceptAlerts”,true);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM