airgun.entities.role

Module Contents

Classes

RoleEntity

ShowAllRoles

Navigate to All Roles page

AddNewRole

Navigate to Create New Role page

EditRole

Navigate to Edit Role page

CloneRole

Navigate to Clone Role page

class airgun.entities.role.RoleEntity(browser)
endpoint_path = /roles
create(values)

Create new role

search(value)
read(entity_name, widget_names=None)

Read role values

update(entity_name, values)

Update role with provided values

delete(entity_name)

Delete role from the system

clone(entity_name, values)

Clone role with entity_name with new properties values

class airgun.entities.role.ShowAllRoles(obj, navigate_obj, logger=None)

Navigate to All Roles page

VIEW
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.role.AddNewRole(obj, navigate_obj, logger=None)

Navigate to Create New Role page

VIEW
prerequisite
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.role.EditRole(obj, navigate_obj, logger=None)

Navigate to Edit Role page

Parameters

entity_name – name of role

VIEW
prerequisite(*args, **kwargs)

Describes a step that must be carried our prior to this one.

This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.

This is a default and is generally overridden.

step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.role.CloneRole(obj, navigate_obj, logger=None)

Navigate to Clone Role page

VIEW
prerequisite(*args, **kwargs)

Describes a step that must be carried our prior to this one.

This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.

This is a default and is generally overridden.

step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.