You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Squish测试Qt应用时AUT启动失败:dllpreload.exe缺失

问题

使用Squish 9.1.0测试自研Qt应用,初始安装后测试正常,现在启动被测应用(AUT)时失败。日志显示Squish尝试调用C:\Program Files\Squish for Windows 9.1.0\bin\dllpreload.exe启动viewer_client_desktop,但该文件不存在,卸载重装Squish后问题依旧。

日志详情

S Squish tools: [2025-11-02T08:18:20.359+0330] 08:18:20:359 Info: Connection from 127.0.0.1:2429.
S Squish tools: [2025-11-02T08:18:20.447+0330] 08:18:20:447 Info: Connection to 127.0.0.1:2429 closed.
R: [2025-11-02T08:18:20.695+0330] 2025-11-02T08:18:20   START       Start 'appstarter'              Test 'appstarter' started
S Squish tools: [2025-11-02T08:18:22.730+0330] 08:18:22:730 Info: Connection from 127.0.0.1:2431.
S Squish tools: [2025-11-02T08:18:22.744+0330] 08:18:22:743 Info: Starting AUT 'viewer_client_desktop' with wrappers Qt: C:\Program Files\Squish for Windows 9.1.0\bin\dllpreload.exe C:\Users\a.ghezelbash\Desktop\vms_client_desktop\viewer_client_desktop.exe
S Squish tools: [2025-11-02T08:18:22.745+0330] 08:18:22:745 Warning: Could not start AUT 'viewer_client_desktop': The system cannot find the file specified.

R: [2025-11-02T08:18:22.747+0330] 2025-11-02T08:18:22   FATAL       Starting application            Application 'viewer_client_desktop' could not be started. An error occurred while starting the AUT.
R: [2025-11-02T08:18:22.748+0330] 2025-11-02T08:18:22   END         End of test                     Giving up after error
R: [2025-11-02T08:18:22.749+0330] *******************************************************
R: [2025-11-02T08:18:22.749+0330] Summary:
R: [2025-11-02T08:18:22.749+0330] Number of Test Cases:    0
R: [2025-11-02T08:18:22.749+0330] Number of Tests:     0
R: [2025-11-02T08:18:22.750+0330] Number of Errors:    0
R: [2025-11-02T08:18:22.750+0330] Number of Fatals:    1
R: [2025-11-02T08:18:22.750+0330] Number of Fails:     0
R: [2025-11-02T08:18:22.751+0330] Number of Passes:    0
R: [2025-11-02T08:18:22.751+0330] Number of Expected Fails:    0
S Squish tools: [2025-11-02T08:18:22.752+0330] 08:18:22:751 Info: Connection to 127.0.0.1:2431 closed.
R: [2025-11-02T08:18:22.752+0330] Number of Unexpected Passes:     0
R: [2025-11-02T08:18:22.752+0330] Number of Warnings:      0
R: [2025-11-02T08:18:22.753+0330] *******************************************************
R: [2025-11-02T08:18:22.765+0330] squishrunner exited with value -1, started with arguments: [C:\Program Files\Squish for Windows 9.1.0\bin\squishrunner.exe, --host, localhost, --port, 1305, --debugLog, palw, --startapp, --suitedir, C:\Users\a.ghezelbash\Desktop\vms_client_desktop\suite_test, --cwd, @app, --aut, viewer_client_desktop]
解决办法
  • 修复Squish安装:
    1. 找到对应版本的Squish安装包,运行安装程序选择修复选项,让安装程序自动补全缺失的dllpreload.exe文件。
    2. 若修复无效,彻底删除Squish安装目录及用户目录下的.squish配置文件夹,再重新执行全新安装。
  • 确认AUT路径正确性:
    检查测试套件中AUT的配置项,确保viewer_client_desktop.exe的路径无误,避免因目标应用路径错误引发的关联问题。
  • 临时绕过预加载器:
    若紧急需要测试,可修改AUT启动命令,直接指向viewer_client_desktop.exe的完整路径,跳过dllpreload.exe。注意:此方法可能导致Squish的部分钩子功能失效,仅作为临时方案。
  • 检查权限设置:
    确保运行Squish的账号对Squish安装目录和AUT目录拥有读写权限,防止因权限不足导致文件无法访问。

内容的提问来源于stack exchange,提问作者Ali

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 02:44:52