zoukankan      html  css  js  c++  java
  • 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.

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

  • 相关阅读:
    svn自动部署
    【阿里云】Windows2008 FTP配置指南
    thinkphp 3.2多语言设置
    iphone、ipod Touch、ipad触屏时的js事件
    Nginx区分PC或手机访问不同网站
    Nginx Location配置总结及基础最佳实践
    阿里云官方教程 Linux 系统挂载数据盘
    利用php调用so库文件中的代码
    LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
    Android深入理解Context(三)Context完全解析
  • 原文地址:https://www.cnblogs.com/Ann-L/p/4763530.html
Copyright © 2011-2022 走看看