如何使用Genymotion,Appium和Applitools直观地测试Android应用

如果要运行移动应用程序,则要在Android上运行。 Android设备主导了智能手机市场。 Genymotion允许您在一系列虚拟Android设备上并行运行Appium测试。 Applitools使您可以快速验证每个设备如何呈现每个Appium测试。 Genymotion和Applitools共同为您提供功能和视觉测试的快速覆盖。

作为质量检查自动化专家,您知道需要在Android上进行测试。 然后,您查看市场并意识到市场是多么分散。

How fragmented is Android?

Fragmented is an understatement. A study by OpenSignal measured over 24,000 unique models of Android devices in use, running nine different Android OS versions across over three dozen different screen sizes, manufactured by 1,294 distinct device vendors. That is fragmentation. These numbers are mind-boggling, so here’s a chart to explain. Each box represents the usage share of one phone model.

Alt Text

Plenty of other studies confirm this. There are 19 major vendors of Android devices. Leading manufacturers include Samsung, Huawei, OnePlus, Xiaome, and Google. The market share of the leading Android device is less than 2% of the market, and the market share of the top 10 devices is 11%. The most popular Android version accounts for only 31% of the market.

We would all like to think that Android devices behave exactly the same way. But, no one knows for sure without testing. If you check through the Google Issue Tracker, you’ll find a range of issues that end up as platform-specific.

Implications for Android Test Coverage

因此,如果每个Android设备的行为可能都不同,那么究竟应该如何测试您的Android应用程序呢? 一种方法是在每个平台上功能上运行测试并评估代码中的行为-这是昂贵的。 另一种方法是在一个平台上运行,并希望代码可以在其他平台上运行。 从功能上讲,这可以告诉您该应用程序正常运行-但您容易遭受设备特定的行为的影响,这些行为在未经测试的情况下可能并不明显。

为了可视化在24,000个独特平台上进行测试的挑战,假设您的应用程序只有10个屏幕。 如果将这十个不同的屏幕端到端地放置在24,000个独特的设备上,它们将延伸30英里。 那比马拉松的距离还长!

Could you imagine manually checking a marathon’s worth of screens with every release?
Alt Text

I can’t run a marathon, much less do while examining thousands of screens. Thankfully there’s a better way, which I’ll explain below: using Genymotion, Appium, and Applitools.

What is Genymotion?

Genymotion is a leading provider of cloud-based Android emulation and virtual mobile infrastructure solutions. Genymotion frees you from having to build your own Android device farm.

Once you integrate your Appium tests with Genymotion Cloud, you can run them in parallel across many Android devices at once, to detect bugs as soon as possible and spend less time on test runs. That’s powerful.

借助Genymotion Cloud,您可以选择仅针对最受欢迎的Android设备/操作系统组合进行测试。 或者,您可以详细测试特定平台供应商的组合。 Genymotion使您可以灵活地运行所需的任意Android组合。

Alt Text

Why use Genymotion Cloud & Applitools?

Genymotion Cloud可以跨多个平台运行您的Android功能测试。 但是,功能测试是应用程序可能遇到的设备和操作系统版本问题的一部分。 除了功能测试。 您可能会遇到视觉问题,这些问题会影响您的应用的外观以及运行方式。 您如何使用Genymotion Cloud运行视觉UI测试? 应用工具。

Applitools提供了AI驱动的应用程序视觉测试,并允许您轻松测试跨平台以识别视觉错误。 视觉回归似乎只是对客户的干扰。 但是,最糟糕的是,视觉错误会阻止您的客户完成交易。 视觉错误会带来实际的损失–未经视觉测试,通常不会出现,直到用户在现场遇到它们为止。

这是我正在谈论的一个例子。 这种混乱的布局阻止了Instagram在该广告上赚钱,并可能导致客户和工程副总裁不高兴。 所有元素都存在,因此此屏幕可能已通过功能测试。

Alt Text
You can find plenty of other examples of visual regressions by following #GUIGoneWrong on Twitter.

Applitools uses an AI-powered visual testing engine to highlight issues that customers would identify. More importantly, Applitools ignores differences that customers would not notice. If you ever used snapshot testing, you may have stopped because you tracked down too many false positives. Applitools finds the issues that matter and ignores the ones that don’t.

How to use Genymotion, Appium & Applitools?

Applitools已与Appium一起使用,可以为您的Android OS应用程序提供视觉测试。 现在,您可以使用Applitools和Genymotion在众多Android虚拟设备上运行视觉测试。 总结一下:

  • Write your tests in Appium using the Applitools SDK to capture visual images.
  • Launch the Genymotion cloud devices via command line.
  • Your Appium scripts will run visual tests across the Genymotion virtual devices.

That’s the overview. To dive into the details, check out this step-by-step tutorial on GitHub demonstrating the integration of Applitools & Genymotion Cloud using Java / TestNG.

虽然很完整,但是您需要以下一些其他信息:

Here is a series of step-by-step tutorial videos using Genymotion, Appium, and Applitools. Here’s the first one:

Genymotion, Appium, and Applitools: Better Together

当同时运行Appium,Applitools和Genymotion时,可以极大地提高测试效率。 您可以重用现有的Appium测试脚本。 Genymotion使您可以并行运行所有功能和视觉测试。 而且,借助由Applitools AI驱动的视觉测试的准确性,您可以仅跟踪重要的问题,而不会分散误报。

from: https://dev.to//michaelvisualai/how-to-use-genymotion-appium-applitools-to-visually-test-android-apps-1hkg

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值