UNPKG

lightweight-browser-load-tester

Version:

A lightweight load testing tool using real browsers for streaming applications with DRM support

43 lines 1.31 kB
/** * Variable context for randomization */ export interface VariableContext { [key: string]: any; } /** * Randomization utility class for substituting variables and random values */ export declare class RandomizationUtil { private fileDataCache; private variableContext; constructor(variableContext?: VariableContext); /** * Update the variable context */ updateContext(context: VariableContext): void; /** * Substitute variables in template string with support for random functions */ substituteVariables(template: string): string; /** * Handle random function calls (e.g., {{random:uuid}}, {{random:number}}) */ private handleRandomFunction; /** * Handle randomFrom function calls (e.g., {{randomFrom:arrayName}}) */ private handleRandomFromFunction; /** * Handle randomFromFile function calls (e.g., {{randomFromFile:./data/values.txt}}) */ private handleRandomFromFileFunction; /** * Get cached file data or load from file system */ private getCachedFileData; /** * Process localStorage data by substituting variables in all values */ processLocalStorageData(data: Record<string, string>): Record<string, string>; } //# sourceMappingURL=randomization.d.ts.map