Junit UiAutomator使用命令行运行测试

Junit UiAutomator使用命令行运行测试,junit,android-uiautomator,Junit,Android Uiautomator,我是一名初学者,正在尝试使用命令行运行uiautomator测试clas: C:\Users\User\AndroidStudioProjects\MyApplication\app\src\androidTest\java>adb shell am instrument-w com.example.User.MyApplication/allogation.java 但它返回了以下错误: INSTRUMENTATION_STATUS: id=ActivityManagerService INS

我是一名初学者,正在尝试使用命令行运行uiautomator测试clas:

C:\Users\User\AndroidStudioProjects\MyApplication\app\src\androidTest\java>adb shell am instrument-w com.example.User.MyApplication/allogation.java

但它返回了以下错误:

INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for:                 ComponentInfo{com.example.user.myapplication/Homologation.java}
INSTRUMENTATION_STATUS_CODE: -1
android.util.AndroidException: INSTRUMENTATION_FAILED:         com.example.user.myapplication/Homologation.java
     at com.android.commands.am.Am.runInstrument(Am.java:1055)
     at com.android.commands.am.Am.onRun(Am.java:297)
     at com.android.commands.am.Am.main(Am.java:91)
     at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
     at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:258)
     at dalvik.system.NativeStart.main(Native Method)

有人知道这意味着什么

此错误似乎与在应用程序或所需功能中输入的包名不正确类似。请检查。

此错误似乎与在应用程序或所需功能中输入的包名不正确类似。请查收。