Solving the IoT Mobile App Testing Conundrum with IoT Device Simulators

2023-03-01
关注

Solving the IoT Mobile App Testing Conundrum with IoT Device Simulators
Illustration: © IoT For All

Releasing a successful IoT product depends in part on ensuring that the device itself delivers the user experience that your customers expect. But it also depends in many cases on testing the IoT mobile apps that customers use to control IoT devices. Many consumer-grade IoT products – such as smart thermostats, internet-connected doorbells, and exercise equipment – rely on mobile apps running on users’ phones to provide management interfaces and deliver data to customers. If your IoT mobile app doesn’t work properly, your IoT device itself won’t work well for your users, either.

That’s why finding ways to test the unique interactions between IoT mobile apps and the devices they interact with is an imperative component of the software testing strategy of any business that provides IoT devices. Keep reading for tips on what to consider when addressing this challenge, along with an overview of what an effective IoT mobile app testing strategy typically looks like.

“…finding ways to test the unique interactions between IoT mobile apps and the devices they interact with is an imperative component of the software testing strategy of any business…”

-Frank Moyer

Testing Requirements for IoT Mobile Apps

In certain respects, mobile apps that interface with IoT devices present unique testing challenges. To test the apps reliably, you need to simulate the real-world conditions under which the app operates. That can be tricky to do because most IoT apps rely on Bluetooth networks to connect to devices, and most test automation tools are not designed with this type of configuration in mind.

Other challenges include the fact that IoT mobile apps may use a wide variety of protocols, which translates to more variables that test engineers need to factor in when planning tests. On top of that, the way mobile apps receive data from IoT devices can vary. Some IoT devices stream data to mobile apps continuously and in real-time, for instance, while others issue periodic push updates or are connected only intermittently.

How Not to Test Mobile Apps

Given the unique challenges described above, it may be tempting to settle for an IoT mobile app testing strategy that relies on manual tests to evaluate how well apps interface with the devices they manage. You could send out your engineers with phones in hand to perform the actual activity – like pedaling an IoT bike or ringing a smart doorbell – and evaluate how the mobile app responds.

But that approach is suboptimal. Beyond the obvious fact that it takes a lot of time to test devices manually (and that you’d have to repeat the laborious manual testing process every time you update the app), a manual approach to IoT mobile app testing makes it hard to test across a wide range of devices because you can’t take advantage of device farms. Instead, you’re limited to whichever handful of devices your engineers have at their disposal, which likely represent only a small subset of the devices that your customers may use. That leads to incomplete test coverage and increases the risk of app performance or reliability problems going undetected until they affect end users.

A Better Approach

Fortunately, there is a better way. You can connect your mobile device farm to physical IoT device simulators, then run automated tests that cover a wide range of scenarios and that reliably emulate real-world conditions.

An IoT device simulator is a special device that connects to mobile apps and sends them the same data that a real IoT device would send – except the simulator gives engineers control over exactly which data is sent. That means testing teams can configure simulators to represent the full range of user actions they want to test for, then push that data to IoT mobile apps using the same protocols and connection methods as customers would use.

In other words, if you want to test how a mobile app responds when a user pedals a smart bike uphill or brakes suddenly, you can configure your IoT simulator to send data to the device that simulates those actions. Or, you could test how an app that controls a smart thermostat responds to a sudden drop in ambient temperature, or how a mobile app handles an IoT doorbell that a user presses repeatedly for a prolonged period. In addition to making it possible to perform these tests automatically across a wide range of devices, this approach allows engineers to take advantage of cloud-based testing software. As long as your mobile devices integrate with your testing cloud, you can test interactions between mobile apps and IoT devices over local connections even if your testing software is not hosted locally.

The Future of IoT Mobile App Testing

The type of IoT mobile app testing strategy I’ve described here is critical to ensuring that IoT devices and the apps they depend on meet user expectations, even as IoT devices continue to grow in scale and complexity. Manual IoT testing may have worked when consumer IoT devices were newer and customers expected less, but to test effectively in today’s high-stakes IoT world, you need the type of automation, broad coverage, and cloud-friendly testing that only IoT device simulators can provide.

Tweet

Share

Share

Email

  • Automation
  • Cloud Software
  • Mobile

  • Automation
  • Cloud Software
  • Mobile

参考译文
用物联网设备模拟器解决物联网移动应用程序测试难题
发布一款成功的物联网产品在一定程度上取决于确保设备本身能够提供客户所期望的用户体验。但在许多情况下,这也取决于测试客户用来控制物联网设备的物联网移动应用程序。许多消费级物联网产品,如智能恒温器、联网门铃和运动设备,都依赖于在用户手机上运行的移动应用程序来提供管理界面并向客户传递数据。如果你的物联网移动应用程序不能正常工作,你的物联网设备本身也不能很好地为你的用户工作。这就是为什么寻找方法来测试物联网移动应用程序与其交互的设备之间的独特交互,是任何提供物联网设备的企业软件测试策略的重要组成部分。请继续阅读,了解在解决这一挑战时应该考虑什么,以及有效的物联网移动应用程序测试策略通常是什么样子的概述。“……找到方法来测试物联网移动应用程序与其交互设备之间的独特交互,是任何企业软件测试策略的重要组成部分……”在某些方面,与物联网设备交互的移动应用程序提出了独特的测试挑战。为了可靠地测试应用程序,您需要模拟应用程序运行的真实条件。这可能很棘手,因为大多数物联网应用程序依赖蓝牙网络连接到设备,大多数测试自动化工具在设计时并没有考虑到这种类型的配置。其他挑战包括物联网移动应用程序可能使用各种各样的协议,这意味着测试工程师在计划测试时需要考虑更多变量。最重要的是,移动应用程序从物联网设备接收数据的方式可能会有所不同。例如,一些物联网设备持续实时地向移动应用程序传输数据,而另一些设备则定期发布推送更新,或者只是断断续续地连接。考虑到上述独特的挑战,物联网移动应用程序测试策略可能很有吸引力,它依赖于人工测试来评估应用程序与它们所管理的设备的界面如何。你可以派你的工程师拿着手机去执行实际的活动——比如踩物联网自行车或按智能门铃——并评估移动应用程序的反应。但这种方法是次优的。显而易见的事实是,手动测试设备需要花费大量时间(而且每次更新应用程序时,你都必须重复费力的手动测试过程),人工测试物联网移动应用程序的方法很难在广泛的设备上进行测试,因为你无法利用设备农场。相反,您被限制在工程师可以使用的少数设备上,这些设备可能只代表您的客户可能使用的设备的一小部分。这会导致不完整的测试覆盖,并增加应用性能或可靠性问题未被发现的风险,直到它们影响到最终用户。幸运的是,还有更好的办法。您可以将移动设备场连接到物理物联网设备模拟器,然后运行自动测试,覆盖广泛的场景,并可靠地模拟真实世界的条件。物联网设备模拟器是一种特殊的设备,它连接到移动应用程序,并向它们发送与真正的物联网设备发送的相同的数据——除了模拟器让工程师控制确切的数据发送。这意味着测试团队可以配置模拟器来代表他们想要测试的全部用户操作,然后使用与客户使用的相同协议和连接方法将数据推送到物联网移动应用程序。
  • en
您觉得本篇内容如何
评分

相关产品

EN 650 & EN 650.3 观察窗

EN 650.3 version is for use with fluids containing alcohol.

Acromag 966EN 温度信号调节器

这些模块为多达6个输入通道提供了一个独立的以太网接口。多量程输入接收来自各种传感器和设备的信号。高分辨率,低噪音,A/D转换器提供高精度和可靠性。三路隔离进一步提高了系统性能。,两种以太网协议可用。选择Ethernet Modbus TCP\/IP或Ethernet\/IP。,i2o功能仅在6通道以太网Modbus TCP\/IP模块上可用。,功能

雷克兰 EN15F 其他

品牌;雷克兰 型号; EN15F 功能;防化学 名称;防化手套

Honeywell USA CSLA2EN 电流传感器

CSLA系列感应模拟电流传感器集成了SS490系列线性霍尔效应传感器集成电路。该传感元件组装在印刷电路板安装外壳中。这种住房有四种配置。正常安装是用0.375英寸4-40螺钉和方螺母(没有提供)插入外壳或6-20自攻螺钉。所述传感器、磁通收集器和壳体的组合包括所述支架组件。这些传感器是比例测量的。

SEWHACNM SI580EN 压力控制器

产品类型:控制仪表 品牌:韩国SEWHACNM(世和) 型号:SI580EN 1、特点 称重模式 : 限位模式, 封隔器模式,累积式模式 电源选择 : 订购规格DC & AC 支持MODBUS(RTU)

TMP Pro Distribution C012EN RF 音频麦克风

C012E射频从上到下由实心黄铜制成,非常适合于要求音质的极端环境,具有非常坚固的外壳。内置的幻像电源模块具有完全的射频保护,以防止在800 Mhz-1.2 Ghz频段工作的GSM设备的干扰。极性模式:心形频率响应:50赫兹-18千赫灵敏度:-47dB+\/-3dB@1千赫

ValueTronics DLRO200-EN 毫欧表

"The DLRO200-EN ducter ohmmeter is a dlro from Megger."

评论

您需要登录才可以回复|注册

提交评论

iotforall

这家伙很懒,什么描述也没留下

关注

点击进入下一篇

2023年数字化战略中不包括物联网的后果

提取码
复制提取码
点击跳转至百度网盘