Table Of Contents
Table Of Contents

MultipleTestTasks

from inet.test.task

class MultipleTestTasks(name='test', multiple_task_results_class=<class 'inet.test.task.MultipleTestTaskResults'>, **kwargs)[source]

Bases: inet.common.task.MultipleTasks

Represents multiple test tasks that can be run together.

Initializes a new multiple tasks object.

Parameters
  • tasks (List of Task) – The list of individual tasks that are run when this multiple tasks is run.

  • name (string) – A human readable short description of the multiple tasks, usually a noun.

  • concurrent (bool) – Specifies if the individual tasks are run sequentially or concurrently.

  • randomize (bool) – Specifies if the order of execution is random or follows the order of storage for the tasks.

  • chunksize (integer) – The number of tasks that are run together in a single batch if the tasks are running concurrently.

  • scheduler (string) – Specifies how the tasks are scheduled. Valid values are “process”, “thread”, and “cluster”.

  • multiple_task_results_class (string) – The Python class name of the produced multiple task results object.

Methods

rerun

Runs the tasks again.

run

Runs all tasks sequentially or concurrently.

Attributes

rerun(**kwargs)

Runs the tasks again.

Returns (MultipleTaskResults):

The task results.

run(**kwargs)

Runs all tasks sequentially or concurrently.

Parameters

kwargs (dict) – Additional parameters are inherited from Task.run().

Returns (MultipleTaskResults):

The task results.