airgun.entities.trend

Module Contents

class airgun.entities.trend.TrendEntity

Bases: airgun.entities.base.BaseEntity

endpoint_path = /trends
create(self, values)

Create new trend in the system

Please note that we have static amount of Trend types and trendables, so it is not possible to generate values for them. In case you want to interact with them through automation, it is must have condition to provide unique elements from corresponding lists. In most cases it will not be possible to re-run tests due condition of uniqueness described above.

Parameters:values – values for new trend entity
update(self, entity_name, row_name, value)

Update existing trend parameter to a new value

Parameters:
  • entity_name – name of the trend to be updated
  • row_name – name of trend parameter to be changed
  • value – New value of trend parameter
delete(self, entity_name)

Delete existing trend

Parameters:entity_name – name of the trend to be deleted
search(self, entity_name)

Validate that necessary trend is present in the table

Parameters:entity_name – name of the trend to be found
class airgun.entities.trend.ShowAllTrends

Bases: airgun.navigation.NavigateStep

Navigate to All Trends screen.

VIEW
step(self, *args, **kwargs)
class airgun.entities.trend.AddNewTrend

Bases: airgun.navigation.NavigateStep

Navigate to Create new Trend screen.

VIEW
prerequisite
step(self, *args, **kwargs)
class airgun.entities.trend.EditTrend

Bases: airgun.navigation.NavigateStep

Navigate to Edit Trend screen.

Args:
entity_name: name of the trend
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)