Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yandex tank random value #841

Open
DotSpy opened this issue Feb 7, 2020 · 1 comment
Open

Yandex tank random value #841

DotSpy opened this issue Feb 7, 2020 · 1 comment

Comments

@DotSpy
Copy link

DotSpy commented Feb 7, 2020

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants