Table Of Contents
Table Of Contents

inet.test.task.MultipleUpdateTaskResults

class inet.test.task.MultipleUpdateTaskResults(multiple_tasks=None, results=[], expected_result='KEEP', possible_results=['KEEP', 'SKIP', 'CANCEL', 'INSERT', 'UPDATE', 'ERROR'], possible_result_colors=[COLOR_GREEN, COLOR_CYAN, COLOR_CYAN, COLOR_YELLOW, COLOR_YELLOW, COLOR_RED], **kwargs)

Bases: inet.common.MultipleTaskResults

Represents multiple task results that are created when MultipleTasks are run.

Initializes a new multiple task results object.

Parameters:
  • multiple_tasks (MultipleTasks) – The original multiple tasks object that was run when this multiple task result was produced.

  • results (List of TaskResult) – The list of individual task results corresponding to the individual tasks.

  • expected_result="DONE" (string) – The expected result of the multiple task execution. The value must be one of the values in the possible_results attribute.

  • elapsed_wall_time (number) – The elapsed time while the task was running.

  • possible_results (List of string) – The list of possible results with which the execution of the original multiple task can end.

  • possible_result_colors (List of string) – The list of colors for the corresponding possible results.

rerun(**kwargs)

Runs the original multiple tasks again that created this multiple task results.

Returns (MultipleTaskResults):

The multiple task results.