UNPKG

azure-devops-test-helper

Version:

Import JSON result with attachments into Azure Test Plan

31 lines (30 loc) 832 B
import { Capabilities } from "@wdio/types"; import { TestCaseResult } from "azure-devops-node-api/interfaces/TestInterfaces"; export interface AzureResultImporterConfig { pat: string; organizationUrl: string; project: string; planId: number; suiteId: number; runName: string; automatedStatus?: string; buildId?: number; comment?: string; override?: boolean; } export interface AzureConfigurationCapability { azureConfigId: string; capabilities: Capabilities.DesiredCapabilities; } export interface Screenshot { testCaseId?: string; testCaseResultId?: number; iterationId: number; actionPath: string; base64encodedContent: string; } export interface TestReport { azureConfigurationId: string; testResults: TestCaseResult[]; screenshots: Screenshot[]; }