agentest_set_network
Simulate network conditions on the emulator for testing offline or slow connections. Configure speed presets, custom bandwidth, latency, wifi, or airplane mode.
Instructions
Simulate network conditions on the emulator for testing offline/slow connections.
Presets: "full" (unlimited), "lte" (58/173 Mbps), "3g" (384 kbps), "edge" (237/474 kbps), "gsm" (14 kbps), "gprs" (29/58 kbps), "offline" (wifi + data off). Latency presets: "none", "gprs" (150-550ms), "edge" (80-400ms), "umts" (35-200ms). Custom: "speed" as "up:down" kbps, "delay" as "min:max" ms. Also: toggle wifi and airplaneMode explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wifi | No | Enable/disable WiFi | |
| delay | No | Latency: preset (none/gprs/edge/umts) or custom "min:max" ms | |
| speed | No | Custom speed as "up:down" kbps (e.g. "100:1000") | |
| preset | No | Speed preset: gsm/gprs/edge/umts/3g/hsdpa/lte/full, or "offline" to disable all network | |
| airplaneMode | No | Enable/disable airplane mode |