airgun.entities.job_template

Module Contents

Classes

JobTemplateEntity

ShowAllTemplates

Navigate to All Job Templates screen.

AddNewTemplate

Navigate to Create new Job Template screen.

EditTemplate

Navigate to Edit Job Template screen.

ReadTemplate

Navigate to Read Job Template screen.

CloneTemplate

Navigate to Clone Job Template screen.

class airgun.entities.job_template.JobTemplateEntity(browser)
endpoint_path = /job_templates
create(values)

Create new job template

search(value)

Search for specific job template

read(entity_name, editor_view_option=None, widget_names=None)

Read Job template values from job template Edit view.

Parameters
  • entity_name – Job template name

  • editor_view_option – The edit view option to set.

  • widget_names – Read only the widgets in widget_names (Optional)

update(entity_name, values)

Update necessary values for existing job template

clone(entity_name, values)

Clone existing job template

delete(entity_name)

Delete job template

class airgun.entities.job_template.ShowAllTemplates(obj, navigate_obj, logger=None)

Navigate to All Job Templates screen.

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.job_template.AddNewTemplate(obj, navigate_obj, logger=None)

Navigate to Create new Job Template screen.

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.job_template.EditTemplate(obj, navigate_obj, logger=None)

Navigate to Edit Job Template screen.

Parameters

entity_name – name of job template

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.job_template.ReadTemplate(obj, navigate_obj, logger=None)

Navigate to Read Job Template screen.

Parameters
  • entity_name – name of job template

  • editor_view_option – The edit view option to set.

post_navigate(_tries, *args, **kwargs)

Describes steps that takes place before any prerequisite after navigation takes place.

This is a default and is generally overridden.

class airgun.entities.job_template.CloneTemplate(obj, navigate_obj, logger=None)

Navigate to Clone Job Template screen.

Parameters

entity_name – name of job template to be cloned

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.