[英]Can Cypress be used to automate native and/or hybrid iOS/Android mobile apps?
I have used tools like Robot Framework in the past that use Appium (under the hood) to automate mobile apps.我过去使用过像 Robot Framework 这样的工具,它们使用 Appium(在后台)来自动化移动应用程序。 I was wondering if Cypress has a similar feature or functionality that allows the user to automate mobile apps with it?
我想知道赛普拉斯是否有类似的特性或功能允许用户使用它来自动化移动应用程序?
Cypress can't automate native mobile apps.赛普拉斯无法自动化原生移动应用程序。 It can be used to test mobile apps built with web app frameworks.
它可用于测试使用 web 应用程序框架构建的移动应用程序。 My own personal experience is that this is fairly complex, and would probably suggest using a different framework built specifically for mobile apps (or the mobile framework your app is built in.) From Cypress:
我自己的个人经验是,这相当复杂,可能会建议使用专门为移动应用程序构建的不同框架(或您的应用程序内置的移动框架。) 来自赛普拉斯:
Do you support native mobile apps?
你支持原生移动应用吗?
Cypress will never be able to run on a native mobile app, but we can test some functionality of mobile web browsers and test mobile applications that are developed in a browser, such as with the Ionic framework .
赛普拉斯永远无法在原生移动应用程序上运行,但我们可以测试移动 web 浏览器的一些功能,并测试在浏览器中开发的移动应用程序,例如使用Ionic 框架。
Currently you can control the viewport with the cy.viewport() command to test responsive, mobile views in a website or web application.
目前,您可以使用 cy.viewport() 命令控制视口,以测试网站或 web 应用程序中的响应式移动视图。 You can also mimic certain behaviors like swiping using custom commands .
您还可以模仿某些行为,例如使用自定义命令滑动。
You can read about testing mobile applications with Ionic and Cypress here and see how we manage testing the mobile viewport in the Cypress Real World App .
您可以在此处阅读有关使用 Ionic 和 Cypress 测试移动应用程序的信息,并了解我们如何管理在Cypress Real World App中测试移动视口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.