DocsIPC Testingipc_tests_run

ipc_tests_run

Ipc Tests Run

Start a new IPC test run to validate browser IPC communication. Supports multiple test modes: 'smoke' for quick validation (5 tests), 'full' for comprehensive testing (138+ methods), 'benchmark' for performance measurement, 'stress' for load testing, 'leak-check' for memory analysis, 'parallel' for concurrent context testing. Returns a run_id to track progress.

Usage Example

1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.ipc_tests_run(
)

Parameters

Optional

modeenum
smokefullbenchmarkstress+2 more

Test mode to run. Options: 'smoke' (quick validation, 5 tests), 'full' (comprehensive, 138+ tests), 'benchmark' (performance testing), 'stress' (load testing), 'leak-check' (memory leak detection), 'parallel' (concurrent context testing). Default: 'full'

verboseboolean

Enable verbose output during test execution. Default: false

iterationsstring

Number of iterations for benchmark mode. Default: 1

contextsstring

Number of browser contexts for stress mode. Default: 10

durationstring

Duration in seconds for stress and leak-check modes. Default: 60

concurrencystring

Number of concurrent threads for parallel mode. Default: 1

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}