UNPKG

@gatling.io/postman

Version:

Gatling Postman adds support for loading Postman collections in the [Gatling load testing tool](https://gatling.io/).

29 lines (28 loc) 998 B
export type IndexPath = number[]; export interface JsonCollection extends ItemGroupLike { info: { _postman_id: string; name: string; }; event: unknown[]; variable?: Array<{ key: string; value: string; type: string; disabled?: boolean; }>; } export interface ItemGroup extends ItemGroupLike { name: string; } export interface Item { name: string; } export interface ItemGroupLike { item: (Item | ItemGroup)[]; } export declare const readEnvironmentFromResource: (filePath: string) => Record<string, string>; export declare const parseCollection: (json: string) => JsonCollection; export declare const findItemGroup: (parent: ItemGroupLike, name: string) => [ItemGroup, number] | undefined; export declare const findItem: (parent: ItemGroupLike, name: string) => [Item, number] | undefined; export declare const listItems: (parent: ItemGroupLike, currentPath: IndexPath, recursive: boolean) => Array<[Item, IndexPath]>;