选择 Squish AUT

要选择使用 Squish 测试的应用程序,请访问Tools >Squish >Server Settings

Squish 服务器设置对话框

运行测试套件或案例时,Squish 运行程序会指示 Squish 服务器启动被测应用程序(AUT)。服务器可以在多台计算机上运行,AUT 可以位于每台计算机的不同路径上。因此,必须将 AUT 映射到相应的路径,或者在服务器设置中指定 AUT 搜索路径。

要使用另一台计算机上运行的 Squish 服务器测试已运行的应用程序,请连接到应用程序。每次只能将一个服务器附加到应用程序。测试用例完成后,附加的应用程序不会关闭。

映射 AUT

要指定要运行的 AUT 的路径,请选择Mapped AUTs >Add 并找到 AUT。

Squish 服务器会检查要运行的 AUT 名称是否映射到路径,并使用映射路径启动 AUT。这样,服务器就无需搜索所有指定的 AUT 路径。

如果两个不同的可执行文件具有相同的名称,映射 AUT 可防止服务器意外执行错误的 AUT,因为服务器会执行它在AUT Paths 中找到的第一个匹配的 AUT。

要更改所选 AUT 的路径,请选择Edit

要删除到所选 AUT 的映射,请选择Remove

指定 AUT 路径

要指定搜索 AUT 的路径,请选择AUT Paths >Add

Squish 服务器会从指定的 AUT 路径中搜索要运行的可执行文件,并运行在任意路径中找到的第一个具有指定名称的可执行文件。

要更改选定的 AUT 路径,请选择Edit

要删除选定的 AUT 路径,请选择Remove

添加可附加的 AUT

要指定运行中 AUT 的路径,请选择Attachable AUTs >Add 。在Add Attachable AUT 对话框中,指定与运行中应用程序的连接,以注册可附加 AUT。

添加可附加 AUT 对话框

要更改与所选 AUT 的连接,请选择Edit

要删除与所选 AUT 的连接,请选择Remove

指定运行测试的设置

指定运行测试的设置:

  • Maximum startup time 中,设置 AUT 在出错前等待启动的最长时间。
  • Maximum response time 中,设置抛出错误前等待 AUT 响应的最长时间。
  • Maximum post-mortem wait time 中,设置主 AUT 退出后的最长等待时间。这对通过启动程序(如 shell 脚本或批处理文件)调用的 AUT 非常有用。
  • 选择Animate mouse cursor ,在回放测试时将鼠标光标动画化。

另请参阅 连接到 Squish 服务器创建 Squish 测试套件启用禁用插件管理 Squish 测试套件和案例以及Squish

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.