Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android中正常记录和验证屏幕截图测试_Android - Fatal编程技术网

如何在android中正常记录和验证屏幕截图测试

如何在android中正常记录和验证屏幕截图测试,android,Android,我试着输入facebook写的android 我按照wiki中的描述设置了所有内容,然后编写了我的测试,当我手动运行它时,它会很好地显示在模拟器上。但是我想从命令行运行它 ./gradlew :instrumentationtestmodule:recordDevDebugAndroidTestScreenshotTest --tests=com.path.to.test.explicit.TestClass --stacktrace 所以我在命令行中写了这一行 ./gradlew :in

我试着输入facebook写的android

我按照wiki中的描述设置了所有内容,然后编写了我的测试,当我手动运行它时,它会很好地显示在模拟器上。但是我想从命令行运行它

 ./gradlew :instrumentationtestmodule:recordDevDebugAndroidTestScreenshotTest --tests=com.path.to.test.explicit.TestClass --stacktrace
所以我在命令行中写了这一行

 ./gradlew :instrumentationtestmodule:recordDevDebugAndroidTestScreenshotTest --tests=com.path.to.test.explicit.TestClass --stacktrace
然后它开始运行

  • 连接性安德罗体试验
  • 其他类中所有可能的测试
  • 未运行记录屏幕截图测试
  • 以上这些都不是我想要实现的。 如何使用android屏幕截图测试记录1个特定测试