Basic functions were only ever exercised by hand before a release, and a regression that killed the client when opening video management stayed in the field for a month. The new script starts an isolated Debug server (Bin\settings.ini, port 6543), brings a test client online (the built-in Run Test client by default, x64\Debug\ghost.exe with -ExternalClient), selects the host and fires the real toolbar command IDs one by one. Every command must open a new #32770 dialog within a per-feature timeout, and the server/client processes are checked for liveness after each step, so a crash like the webcam one fails loudly instead of waiting to be noticed. Results are PASS/FAIL/WARN/SKIP: WARN is a message box (its text is included), SKIP marks missing prerequisites (no microphone, no admin rights, no camera). MCP/Web ports held by the running Release instance are temporarily turned off in settings.ini and the file is restored unconditionally afterwards; the Release instance is never touched. Verified end to end in both client modes on the development machine. Co-Authored-By: deepseek-flash
11 lines
320 B
Batchfile
11 lines
320 B
Batchfile
@echo off
|
|
:: 发布前端到端冒烟测试入口(等价于 E2E-Smoke.ps1 全部功能)
|
|
:: 需要覆盖「服务管理」时,请以管理员身份运行本脚本。
|
|
setlocal
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0E2E-Smoke.ps1" %*
|
|
set RC=%errorlevel%
|
|
echo.
|
|
echo ExitCode=%RC%
|
|
pause
|
|
exit /b %RC%
|