airgun.entities.product

Module Contents

Classes

ProductEntity

ShowAllProducts

Navigate to the page that contains all Products

AddNewProduct

Navigate to Create New Product page

EditProduct

Navigate to Edit Product page.

ProductRepoDiscovery

Navigate to Repo Discovery page for Product entity.

ProductsSelectAction

Navigate to Action page by selecting checkboxes for necessary Products and

class airgun.entities.product.ProductEntity(browser)
endpoint_path = /products
create(values, sync_plan_values=None)

Creates new product from UI.

Parameters

sync_plan_values – dict with values for creating sync_plan from product create page

delete(entity_name)

Deletes product from UI

search(value)

Search for specific product

read(entity_name, widget_names=None)

Read all values for already created product

update(entity_name, values)

Updates product from UI

discover_repo(values)

Repo discovery procedure

synchronize(entity_name)

Synchronize product

manage_http_proxy(entities_list, values)

Manage HTTP Proxy for product/products

Parameters
  • entities_list – The product names to perform Manage HTTP Proxy action.

  • values – dict containing http_proxy_policy and http_proxy values. eg: {‘http_proxy_policy’: ‘No HTTP Proxy’}, {‘http_proxy_policy’: ‘Global Default’}, {‘http_proxy_policy’: ‘Use specific HTTP Proxy’, ‘http_proxy’: ‘proxy_name’}

advanced_sync(entities_list, sync_type)

Advanced Sync for product/products

Parameters
  • entities_list – The product names to perform Advanced Sync action.

  • sync_type – value containing sync type. eg: sync_type=”optimized”, sync_type=”complete”

verify_content_checksum(entities_list)

Verify Content Checksum for product/products

Parameters

entities_list – The product names to perform Verify Content Checksum action.

class airgun.entities.product.ShowAllProducts(obj, navigate_obj, logger=None)

Navigate to the page that contains all Products

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

Navigate to Create New Product 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.product.EditProduct(obj, navigate_obj, logger=None)

Navigate to Edit Product page.

Parameters

entity_name – name of the product to be updated

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

Navigate to Repo Discovery page for Product entity.

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.product.ProductsSelectAction(obj, navigate_obj, logger=None)
Navigate to Action page by selecting checkboxes for necessary Products and

then clicking on the action name button in ‘Select Action’ dropdown.

Parameters
  • action_name – the action name to select from dropdown button

  • entities_list – list of Products that need to be modified

ACTIONS_VIEWS
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.