features.steps.r_001_stepsΒΆ

Python steps file for R_001.

FunctionsΒΆ

step_device_exists(context, name, serial_number)

Ensures that an device with the specified name and serial_number exists in the system.

step_fill_device_details(context, name, serial_number, ...)

Fills in the device creation form.

step_device_list(context)

Verifies that the new device appears in the device list.

step_device_list(context)

Verifies that the new device appears in the device list.

step_delete_device(context, name)

Deletes an device by name.

step_verify_device_deletion(context, name)

Verifies that the device no longer appears in the list.

step_attempt_view_nonexistent(context, ...)

Attempts to view details of a non-existent device.

step_device_list(context)

Verifies that the new device appears in the device list.

Module ContentsΒΆ

features.steps.r_001_steps.step_device_exists(context, name, serial_number)[source]ΒΆ

Ensures that an device with the specified name and serial_number exists in the system.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device.

  • serial_number (str) – The Serial number of the device.

Return type:

None

features.steps.r_001_steps.step_fill_device_details(context, name, serial_number, domain_name)[source]ΒΆ

Fills in the device creation form.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device.

  • serial_number (str) – The Serial number of the device.

  • domain_name (str)

Return type:

None

features.steps.r_001_steps.step_device_list(context)[source]ΒΆ

Verifies that the new device appears in the device list.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device.

  • serial_number (str) – The Serial number of the device.

Return type:

None

features.steps.r_001_steps.step_device_list(context, name, serial_number, domain_name)[source]ΒΆ

Verifies that the new device appears in the device list.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device.

  • serial_number (str) – The Serial number of the device.

Return type:

None

features.steps.r_001_steps.step_delete_device(context, name)[source]ΒΆ

Deletes an device by name.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device to be deleted.

Return type:

None

features.steps.r_001_steps.step_verify_device_deletion(context, name)[source]ΒΆ

Verifies that the device no longer appears in the list.

Parameters:
  • context (runner.Context) – Behave context.

  • name (str) – The name of the device.

Return type:

None

features.steps.r_001_steps.step_attempt_view_nonexistent(context, non_existent_device_id)[source]ΒΆ

Attempts to view details of a non-existent device.

Parameters:
  • context (runner.Context) – Behave context.

  • non_existent_device_id (str) – The id a non-existent device.

Return type:

None

features.steps.r_001_steps.step_device_list(context)[source]ΒΆ

Verifies that the new device appears in the device list.

Parameters:

context (runner.Context) – Behave context.

Return type:

None