• 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.

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

  • 相关阅读:
    IOS AutoLayout 代码实现约束—VFL
    理解iOS Event Handling
    一些优秀的iOS第三方库
    iOS中NSNotification、delegate、KVO三者之间的区别与联系?
    laravel 框架加载自定义函数/类文件
    Nodejs 使用 socket.io 简单实现实时通信
    Redis 与 Memcache 的异同之处
    Redis 服务安装
    PHP 依赖管理神器 Composer 基本使用
    Ajax无刷新图片插件使用
  • 原文地址:https://www.cnblogs.com/Ann-L/p/4763530.html
Copyright © 2020-2023  润新知