/yandex-ammo

Node util create ammo for yandex tank

Primary LanguageTypeScript

Usage

Create token.txt and fill API key

[loadtest/example_token.txt]

d*.......d

Write your ammo

  [src/ammos/example.ts]

     const rawAmmo = {
        name: 'example',
        host: 'host',
        data: [
            {
                method: 'POST',
                path: '/api/',
                tag: 'ammo-test-execute',
                body: { ... },
            },
        ],
    }

Call for generate json ammo

[src/index.ts]

import { generateExampleAmmo } from './ammos/example'

generateExampleAmmo()

Create "sample GET requests"

  yarn ammo

Run

docker compose -f "docker-compose.yml" up -d --build