Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.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
User interface 随机测试_User Interface_Android Testing_Android Espresso_Random Sample - Fatal编程技术网

User interface 随机测试

User interface 随机测试,user-interface,android-testing,android-espresso,random-sample,User Interface,Android Testing,Android Espresso,Random Sample,我有一个带有微调器(3)、编辑文本(1)和按钮(2)的活动。我想测试用户与这些元素的交互顺序是否与结果无关(=在TextView中显示某些字符串)。例如,无论我是先在EditText中键入内容,然后选择微调器,还是先选择微调器,然后在EditText中键入内容,等等,这都不重要 由于元素的数量,用户交互的方式可能会有很多变化。有没有办法: 自动生成所有可能的用户交互/测试代码组合 或 测试单个但随机的用户交互 ? 我知道猴子,但那似乎只是压力测试 根据这一点: generate automati

我有一个带有微调器(3)、编辑文本(1)和按钮(2)的活动。我想测试用户与这些元素的交互顺序是否与结果无关(=在TextView中显示某些字符串)。例如,无论我是先在EditText中键入内容,然后选择微调器,还是先选择微调器,然后在EditText中键入内容,等等,这都不重要

由于元素的数量,用户交互的方式可能会有很多变化。有没有办法:

  • 自动生成所有可能的用户交互/测试代码组合
  • 测试单个但随机的用户交互 ?
  • 我知道猴子,但那似乎只是压力测试

    根据这一点:

    generate automatically all possible combinations of user interactions/testing code
    
    对不起,除了在
    monkey
    中,我看不到任何合理的方法来测试它

    请在此处阅读有关此工具的更多信息: 相信我,没有理由害怕这个伟大的工具

    最后,
    monkey
    还提供了详细的日志,正如您在本视频中看到的: