Stb-tester supports all Roku models, including the Streaming Sticks.
Roku HTTP remote control#
All Roku models except for the Streaming Sticks support infrared remote control. To control the Roku Streaming Sticks, you can use the Roku’s HTTP API instead.
The Roku device and the Stb-tester Node must be on the same network.
On the Roku, go to Settings > Network > About. Note the Roku’s IP address.
On the Roku, go to Settings > System > Advanced system settings > Control by mobile apps > Network access. Make sure that it is set to “Default” or “Permissive”.
In your test-pack, create a configuration file for each Stb-tester Node under
config/test-farm/, for example
config/test-farm/stb-tester-xxxxxxxxxxxx.conf(for more details see Configuration Reference: Node-specific configuration files).
In the configuration file for the relevant Stb-tester Node, specify
device_under_test.ip_address=192.168.1.7(change the actual IP address to the one you noted in step 2 above). For example:
In your test scripts you can use the following key names:
You can also use the raw key names of Roku’s HTTP protocol directly (for
"Lit_a" to enter the letter “a” when an on-screen keyboard is
We have tested 60,000 keypresses over 3 days without a single missed keypress (we validate that each and every keypress had the expected effect in the Roku’s UI).
Roku devices never really go to sleep, so you won’t have any issues in waking the device using the HTTP control mechanism.