yandex-tank icon indicating copy to clipboard operation
yandex-tank copied to clipboard

Yandex tank random value

Open DotSpy opened this issue 5 years ago • 1 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()}"
}

DotSpy avatar Feb 07 '20 10:02 DotSpy

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.

Sirozha1337 avatar Feb 10 '20 20:02 Sirozha1337