diff --git a/docs/smoke-tests/capture-logs.ps1 b/docs/smoke-tests/capture-logs.ps1 new file mode 100644 index 0000000..d320b53 --- /dev/null +++ b/docs/smoke-tests/capture-logs.ps1 @@ -0,0 +1,92 @@ +# capture-logs.ps1 - snapshot every ws-scrcpy-web diagnostic into one folder, for a smoke capture point. +# +# Run at any capture point during the Windows smoke - ESPECIALLY when a test FAILS, and right after +# an install / uninstall / update. Read-only: it never changes the install. The in-app uninstall +# cleaner runs with logging OFF by design, so for the uninstall tests (15.x) the EVIDENCE is +# filesystem + registry + temp state - which this captures. +# +# Usage: powershell -ExecutionPolicy Bypass -File capture-logs.ps1 [label] +# e.g. powershell -ExecutionPolicy Bypass -File capture-logs.ps1 15.2-wipe +# powershell -ExecutionPolicy Bypass -File capture-logs.ps1 5.7-after-uninstall +# Output: %USERPROFILE%\wssw-smoke-logs\-