UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

71 lines 2.14 kB
import { Test } from '../../schemas/test.schema.js'; export declare class TestRunner { private readonly test; constructor(test: Test); run(): Promise<import("../../models/interface.js").RunFilteredSummary | { success: boolean; message: any; code: any; status: any; statusText: any; headers: any; cookies: { key: string; value: string; }[]; config: { method: any; url: any; timeout: any; }; data: any; responseTime?: undefined; } | { success: boolean; status: any; statusText: any; headers: any; cookies: { key: string; value: string; }[]; config: { method: any; url: any; timeout: any; }; data: any; responseTime: any; message?: undefined; code?: undefined; }>; private constructUrl; /** * Creates cancelled assertion results for assertions that weren't executed * @param assertionsParam - The assertions that need to be marked as cancelled * @returns Array of cancelled assertion results */ private createCancelledAssertions; /** * Creates a single cancelled assertion result * @param assertion - The assertion to convert to a cancelled result * @returns A RunExecutionAssertion with cancelled status */ private createCancelledAssertion; /** * Creates a cancelled execution result for a request that wasn't executed * @param request - The request that wasn't executed * @returns TestExecutionResult with cancelled status */ private createCancelledExecution; /** * Resolves a condition expression, handling variable references properly * Similar to the approach used in assertion.engine.ts */ private resolveConditionExpression; /** * Resolves an expression value, handling path resolution properly */ private resolveExpressionValue; } //# sourceMappingURL=test-runner.d.ts.map