@gatling.io/postman
Version:
Gatling Postman adds support for loading Postman collections in the [Gatling load testing tool](https://gatling.io/).
33 lines (32 loc) • 1.35 kB
TypeScript
import "@gatling.io/jvm-types";
import JvmSession = io.gatling.javaapi.core.Session;
import { MutationTracker, Variable } from "postman-collection";
export interface PostmanRuntimeDataStatic {
createInSession(session: JvmSession, key: string, globalVariables: Record<string, any>, collectionVariables: Record<string, any>, environmentVariables: Record<string, any>, dataVariables: Record<string, any>, localVariables: Record<string, any>): JvmSession;
}
export interface PostmanVariableScope {
toObject(excludeDisabled: boolean, caseSensitive: boolean): any;
has(key: string): boolean;
get(key: string): any;
set(key: string, value: any, type?: Variable.types): void;
unset(key: string): void;
clear(): void;
replaceIn(template: string | any): string | any;
enableTracking(options?: MutationTracker.definition): void;
disableTracking(): void;
toJSON(): any;
}
export interface JvmPostmanInfo {
eventName: string;
iteration: number;
iterationCount: number;
requestName: string;
requestId: string;
}
export interface PostmanRuntimeData {
globalVariables: PostmanVariableScope;
collectionVariables: PostmanVariableScope;
environmentVariables: PostmanVariableScope;
localVariables: PostmanVariableScope;
}
export declare const PostmanRuntimeData: PostmanRuntimeDataStatic;