class Prices(FastHttpUser): def on_start(self): self.api = Api(self.client, context) @task def call_api(self): self.api.update_prices(15)
class Sync(FastHttpUser): fixed_count = 5 def on_start(self): self.api = Api(self.client, context) @task def product_import(self): self.api.import_products(10) @task def stock_updates(self): self.api.update_stock(25) @task def price_updates(self): self.api.update_prices(15)