Пример #1
0
class Imports(FastHttpUser):
    def on_start(self):
        self.api = Api(self.client, context)

    @task
    def call_api(self):
        self.api.import_products(10)
Пример #2
0
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)