在Robotium脚本中验证具有预期结果的多个单词

时间:2014-01-30 07:52:09

标签: java android automation robotium

我需要有关robotium脚本的帮助。我的情况就像我的AUT中有3个相同的单词。我需要验证所有三个单词是否正确以及预期结果。

谢谢

1 个答案:

答案 0 :(得分:1)

您可以使用以下方法之一:

boolean searchText(String text, int minimumNumberOfMatches)
Searches for the specified text and returns true if the searched text is found a specified number of times.
boolean searchText(String text, int minimumNumberOfMatches, boolean scroll)
Searches for the specified text and returns true if the searched text is found a specified number of times.
boolean searchText(String text, int minimumNumberOfMatches, boolean scroll, boolean onlyVisible)
Searches for the specified text and returns true if the searched text is found a specified number of times.

如果问题不同,请附上您要测试的屏幕截图。