简体   繁体   English

如何测试NFC应用程序?

[英]How can I test NFC apps?

I am starting with NFC Android apps and I am a little bit confused. 我从NFC Android应用开始,我有些困惑。 I am using Mono for Android (C#) and I have a reader ACR122U and different tags. 我正在为Android(C#)使用Mono,并且有一个阅读器ACR122U和其他标签。 I have used the emulator of Mono for Android to launch my basic android apps (without NFC) but how can I launch an android app with NFC? 我已经使用Mono的Android模拟器启动了基本的android应用(没有NFC),但是如何使用NFC来启动android应用呢?

For example how can I test if my app read or write a tag? 例如,如何测试我的应用是否读取或写入标签?

You can use junit to test the logic of what you're reading and writing. 您可以使用junit测试您正在阅读和编写的内容的逻辑。 Things like robotium and roboletric will allow you to mock or control your applications interactions with Android components like intents. robotium和roboletric之类的东西将允许您模拟或控制应用程序与Intent等Android组件的交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM