yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 278 forks source link

Yandex tank random value #841

Open DotSpy opened 4 years ago

DotSpy commented 4 years ago

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()}"
}
Sirozha1337 commented 4 years ago

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.