简体   繁体   English

赛普拉斯能否用于自动化原生和/或混合 iOS/Android 移动应用程序?

[英]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.

相关问题 在本机应用程序容器(Android,IOS)中为混合应用程序加载外部内容 - Loading external Content for hybrid Apps in Native App Container (Android, IOS) 为iOS和Android构建具有原生性能的混合React应用程序 - Building hybrid React apps for iOS and Android with native performance 适用于原生移动应用的SAML(Android和IOS) - SAML for Native Mobile Apps(Android and IOS) 适用于iOS / Android / Windows 8的混合应用程序 - Hybrid apps for iOS/Android/Windows 8 从iOS混合移动应用程序构建Android混合移动应用程序 - Building Android hybrid mobile application from iOS hybrid mobile application 非标准不支持的图像格式可以在移动ios / android应用中使用吗 - Can non-standard unsupported image formats be used in mobile ios / android apps 如何使用appium自动化/测试Android混合应用程序? - how to Automate/test Android hybrid apps using appium? 具有OpenGL和嵌入式Webview的本机移动应用程序(iOS / Android)的测试框架 - Test Framework for native mobile apps (iOS/Android) with OpenGL and Embedded Webviews Google Analytics(分析)和本机移动应用-Android和iOS SDK - Google Analytics and native mobile Apps - Android and iOS SDK 移动混合应用程序-部署到android和ios - Mobile hybrid app - deployment to android & ios
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM