wix/Detox

Simulate NFC scan event in Android with Detox

开放

#2,699 创建于 2021年3月22日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (1,942 个派生)batch import
hacktoberfestplatform: androidstatus: triagetype: enhancement ⚡️user: looking for contributors

仓库指标

星标
 (10,558 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Hi,

Thanks for providing this open source software, your effort is really appreciated.

The android app I want to test responds to scans of NFC tags;

  • A tag is scanned and depending on the status of that tag navigation and data loading occurs in the app.

In order to test the app I need to simulate the scan event of different types of tags in order to trigger all my navigation routes.

From a test I need to either;

  • Call RN js application code where I can create functions that just trigger my scan capturing code directly

or

  • Call Native Android code that can simulate an NFC scan that will be picked up by the RN side

or

  • Send a fake scan event intent to the app running in emulator that will be interpreted as the NFC scan event

I've done a lot of googling but cannot find any examples of anyone doing something like this.

Any info would be really useful as it looks like Detox would meet all our e2e testing needs apart from this one!

Thanks!

贡献者指南