Skip to main content

RunnerOptions class

Platform: Selenium
Language: Python


An object of this class is used to define options for VisualGridRunner or ClassicRunner.

Import statement

from applitools.selenium import RunnerOptions

Example

The example below demonstrates the creation of a VisualGridRunner instance. It is initialized with a call to the constructor RunnerOptions. A call to test_concurrency is then appended with a parameter of 10. This runner instance is passed to the Eyes instance when it is created. The end effect is that the runner manages the workflow and concurrency of all Eyes instances that are initialized with that runner. Passing a parameter of 10 means that the runner limits the concurrency to a maximum of 10 active test executions.

Python

runner = VisualGridRunner(RunnerOptions().test_concurrency(concurrent_sessions))   
eyes = Eyes(runner)

RunnerOptions method

Syntax

runner = VisualGridRunner(RunnerOptions().test_concurrency(concurrent_sessions))   

Parameters

This method does not take any parameters.

Return value

Type: RunnerOptions

test_concurrency method

Syntax

runner = VisualGridRunner(RunnerOptions().test_concurrency(concurrent_sessions))   

Parameters

value

Type: int

The maximum number of Eyes tests that can be executed concurrently by this runner.

Return value

Type: RunnerOptions