UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

36 lines (35 loc) 1.34 kB
import * as flowbee from './flowbee'; import { Log } from './log'; import { RunOptions } from './options'; import { Request } from './request'; import { Runtime } from './runtime'; import { Suite } from './suite'; import { PlyTest, Test } from './test'; import { Result } from './result'; import { Values } from './values'; export interface Step extends Test { step: flowbee.Step; instance?: flowbee.StepInstance; subflow?: flowbee.Subflow; } export declare function getStepId(step: Step): string; export declare class PlyStep implements Step, PlyTest { readonly step: flowbee.Step; private readonly requestSuite; private readonly logger; private readonly flow; private readonly flowInstance; readonly subflow?: flowbee.Subflow | undefined; /** * This is the step id. */ readonly name: string; readonly type = "flow"; readonly stepName: string; readonly instance: flowbee.StepInstance; start?: number | undefined; end?: number | undefined; constructor(step: flowbee.Step, requestSuite: Suite<Request>, logger: Log, flow: flowbee.Flow, flowInstance: flowbee.FlowInstance, subflow?: flowbee.Subflow | undefined); run(runtime: Runtime, values: Values, runOptions?: RunOptions, runNum?: number, instNum?: number): Promise<Result>; private mapToInstanceStatus; }