相关疑难解决方法(0)

如何将参数传递给使用adb shell am Instrumentation命令启动的测试功能

我正在开发Android,我正在使用仪器测试手机应用程序.Instrumentation是Android环境来测试应用程序.

为此,我使用带有测试用例名称的am命令.我运行adb,然后输入adb shell,然后在shell中写入am命令.

我希望与这个命令一起提供一个参数.我的意思是我希望将参数传递给am命令启动的测试.

可能吗 ???请帮忙 ?

instrumentation android

25
推荐指数
2
解决办法
3万
查看次数

如何通过 adb shell 在 vlc 上循环播放视频

我正在尝试连续几次通过 vlc 上的 adb shell 在 android 上播放视频。一旦以下命令就足够了,播放视频时:

adb shell am start -a android.intent.action.VIEW  -d  file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4
Run Code Online (Sandbox Code Playgroud)

但现在我想多次/无限地播放视频。基于:我如何可以提供参数测试功能,利用亚行壳上午仪表命令启动从额外的命令行启动Android活动https://wiki.videolan.org/VLC_command-line_help/我尝试:

adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e input-repeat 3 -a android.intent.action.VIEW -d file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4 
Run Code Online (Sandbox Code Playgroud)

各种组合,包括通过--input-repeat 3"input-repeat" 3不成功。例如:视频只会播放一次

也没有帮助:

adb shell am start -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e PlaybackMode 1 -d  file:////storage/emulated/0/Download/bbb_sunflower_native_60fps_normal.mp4
Run Code Online (Sandbox Code Playgroud)

有谁知道怎么做?

android vlc adb

6
推荐指数
1
解决办法
2758
查看次数

标签 统计

android ×2

adb ×1

instrumentation ×1

vlc ×1