yandex / yandex-tank

Load and performance benchmark tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yandex tank random value

DotSpy opened this issue · comments

Hello, i have api that accepting ID of document and if there no such id generate a new one. I wanna load test this, but if i send all time the same id it not generating new files.
Is there any possibility to do smth like this in ammo file:

{
    "idValue": "${Random.Integer()}"
}

You can generate ammo for Yandex Tank before-hand. Here's an example of how to do that: https://yandextank.readthedocs.io/en/latest/ammo_generators.html#ammo-generators
If you really want to generate those numbers on the fly, then you should consider using YandexTank with JMeter, BFG or Pandora, though they won't be as fast as Yandex Tank's Phantom.