QUESTPIE Probe

Exit Codes

QUESTPIE Probe exit codes and their meanings.

Exit Codes

Every qprobe command exits with a numeric code indicating the result.

CodeMeaningExample
0SuccessCommand completed without errors
1Assertion or command errorqprobe assert text "Login" fails, invalid arguments
2Process timeoutqprobe start ready pattern not matched within --timeout
3Health check failedqprobe health URL did not return expected status
4Config errorInvalid or missing qprobe.config.ts
5Browser driver not foundagent-browser or playwright CLI not installed
6Replay test failureqprobe replay Playwright tests failed

Usage in Scripts

qprobe health http://localhost:3000/api/health --timeout 30s
if [ $? -eq 3 ]; then
  echo "Server not healthy, aborting"
  exit 1
fi
qprobe replay "login-flow"
if [ $? -eq 6 ]; then
  echo "Regression detected in login flow"
fi

On this page