必须能够模拟服务操作对不同输入数据进行的响应。
It must be possible to simulate the actions of services in response to different input data.
图 2 显示了选择模拟事件和测试人员为 checkPurchaseOrder 操作输入的返回值为 true 时集成测试客户端的运行情况。
Figure 2 shows an integration test client run where an emulation event is selected and where the tester entered a return value of true for the checkPurchaseOrder operation.
要确保一个自动化测试能真正模拟用户输入,您需要生成操作系统级的“原生”事件,就像用户在使用键盘和鼠标一样。
To ensure that an automated test truly simulates user input, you need to generate "native" events at the operating-system level, just as if a user were using the keyboard and mouse.
应用推荐