Context上下文

As described earlier, context refers to the state of the application during test playback. Because an automated test is executing at the same time the application is, it is critical that they remain synchronized. Synchronization takes two forms: one, assuring that the application is in fact located at the point where the test expects to be, and two, assuring the test does not run ahead of the application while it is waiting or processing. We will cover the second type in the next section, Synchronization.

如前面所述,上下文是指在测试回放过程中应用的状态。因为一个自动化测试是在同一时间执行的应用程序,它是关键的,他们保持同步。同步采用了2种形式:一种是,确保应用程序实际上位于测试期望的点,2,确保测试在等待或处理的应用程序的应用程序中没有运行。我们将在下一节中覆盖第二类型,同步。

Context controls results

上下文控制结果

Because tests are performing inputs and verifying outputs, it is imperative that the inputs be applied at the proper location in the application, and that the outputs appear where expected. Otherwise, the test will report an incorrect result. Also, when multiple tests run one after the other, the result from one test can affect the next. If one test begins at the main menu and ends at a sub-menu, the following test must either expect to begin at the sub-menu or risk failure. Similarly, if a test which expects to complete at the main menu instead fails and aborts within a window, the next test will most likely begin out of context.

因为测试执行输入和校验输出,该输入在应用程序的正确位置被应用,并且使输出出现在预期的位置是必要的。否则测试将会报告一个不正确结果此外多个测试运行一个一个一个测试结果可以影响下一步如果一个测试菜单中开始结束一个子菜单下面测试必须要么希望开始菜单风险失败同样如果公司预计菜单中完成测试相反失败中止一个窗口接下来测试可能开始脱离上下文

转载于:https://www.cnblogs.com/Ann-L/p/4763530.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值