... ActionEvent 按钮事件 actionPerformed 按钮单击方法 posted on 2007-10-13 08:45 段静迪 阅读(1122) 评论(7) 编辑 收藏 ...
基于1个网页-相关网页
单击搜索按钮将调用搜索方法。
The search method is invoked when the search button is clicked.
在图1所示的用例中,用户能看到单击按钮后所发生的方法调用的结果。
In the use case shown in Figure 1, the user is presented with the results of the method call that happens after he or she clicks a button.
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
应用推荐