UNPKG

138 kBTypeScriptView Raw
1import SystemData = require("../interfaces/common/SystemDataInterfaces");
2import TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
3import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
4export interface AbortTestRunRequest {
5 options?: number;
6 projectName?: string;
7 revision?: number;
8 testRunId?: number;
9}
10export interface AfnStrip {
11 /**
12 * Auxiliary Url to be consumed by MTM
13 */
14 auxiliaryUrl?: string;
15 /**
16 * Creation date of the AfnStrip
17 */
18 creationDate?: Date;
19 /**
20 * File name of the attachment created
21 */
22 fileName?: string;
23 /**
24 * ID of AfnStrip. This is same as the attachment ID.
25 */
26 id?: number;
27 /**
28 * Project identifier which contains AfnStrip
29 */
30 project?: string;
31 /**
32 * Service in which this attachment is stored in
33 */
34 storedIn?: string;
35 /**
36 * Afn strip stream.
37 */
38 stream?: string;
39 /**
40 * ID of the testcase.
41 */
42 testCaseId?: number;
43 /**
44 * Backing test result id.
45 */
46 testResultId?: number;
47 /**
48 * Backing test run id.
49 */
50 testRunId?: number;
51 /**
52 * Byte stream (uncompressed) length of Afn strip.
53 */
54 unCompressedStreamLength?: number;
55 /**
56 * Url of the attachment created.
57 */
58 url?: string;
59}
60export interface AggregatedDataForResultTrend {
61 /**
62 * This is tests execution duration.
63 */
64 duration?: any;
65 resultsByOutcome?: {
66 [key: number]: AggregatedResultsByOutcome;
67 };
68 runSummaryByState?: {
69 [key: number]: AggregatedRunsByState;
70 };
71 testResultsContext: TestResultsContext;
72 totalTests?: number;
73}
74/**
75 * Result deatils for a particular test result outcome.
76 */
77export interface AggregatedResultDetailsByOutcome {
78 /**
79 * Number of results for current outcome.
80 */
81 count?: number;
82 /**
83 * Time taken by results.
84 */
85 duration?: any;
86 /**
87 * Test result outcome
88 */
89 outcome?: TestOutcome;
90 /**
91 * Number of results on rerun
92 */
93 rerunResultCount?: number;
94}
95export interface AggregatedResultsAnalysis {
96 duration?: any;
97 notReportedResultsByOutcome?: {
98 [key: number]: AggregatedResultsByOutcome;
99 };
100 previousContext?: TestResultsContext;
101 resultsByOutcome?: {
102 [key: number]: AggregatedResultsByOutcome;
103 };
104 resultsDifference?: AggregatedResultsDifference;
105 runSummaryByOutcome?: {
106 [key: number]: AggregatedRunsByOutcome;
107 };
108 runSummaryByState?: {
109 [key: number]: AggregatedRunsByState;
110 };
111 totalTests?: number;
112}
113export interface AggregatedResultsByOutcome {
114 count?: number;
115 duration?: any;
116 groupByField?: string;
117 groupByValue?: any;
118 outcome?: TestOutcome;
119 rerunResultCount?: number;
120}
121export interface AggregatedResultsDifference {
122 increaseInDuration?: any;
123 increaseInFailures?: number;
124 increaseInNonImpactedTests?: number;
125 increaseInOtherTests?: number;
126 increaseInPassedTests?: number;
127 increaseInTotalTests?: number;
128}
129export interface AggregatedRunsByOutcome {
130 outcome?: TestRunOutcome;
131 runsCount?: number;
132}
133export interface AggregatedRunsByState {
134 resultsByOutcome?: {
135 [key: number]: AggregatedResultsByOutcome;
136 };
137 runsCount?: number;
138 state?: TestRunState;
139}
140/**
141 * The types of test attachments.
142 */
143export declare enum AttachmentType {
144 /**
145 * Attachment type GeneralAttachment , use this as default type unless you have other type.
146 */
147 GeneralAttachment = 0,
148 AfnStrip = 1,
149 BugFilingData = 2,
150 /**
151 * Attachment type CodeCoverage.
152 */
153 CodeCoverage = 3,
154 IntermediateCollectorData = 4,
155 RunConfig = 5,
156 TestImpactDetails = 6,
157 TmiTestRunDeploymentFiles = 7,
158 TmiTestRunReverseDeploymentFiles = 8,
159 TmiTestResultDetail = 9,
160 TmiTestRunSummary = 10,
161 /**
162 * Attachment type ConsoleLog.
163 */
164 ConsoleLog = 11
165}
166export interface BatchResponse {
167 error: string;
168 responses?: Response[];
169 status: string;
170}
171/**
172 * BuildConfiguration Details.
173 */
174export interface BuildConfiguration {
175 /**
176 * Branch name for which build is generated.
177 */
178 branchName?: string;
179 /**
180 * BuildDefinitionId for build.
181 */
182 buildDefinitionId?: number;
183 /**
184 * Build system.
185 */
186 buildSystem?: string;
187 /**
188 * Build Creation Date.
189 */
190 creationDate?: Date;
191 /**
192 * Build flavor (eg Build/Release).
193 */
194 flavor?: string;
195 /**
196 * BuildConfiguration Id.
197 */
198 id?: number;
199 /**
200 * Build Number.
201 */
202 number?: string;
203 /**
204 * BuildConfiguration Platform.
205 */
206 platform?: string;
207 /**
208 * Project associated with this BuildConfiguration.
209 */
210 project?: ShallowReference;
211 /**
212 * Repository Guid for the Build.
213 */
214 repositoryGuid?: string;
215 /**
216 * Repository Id.
217 */
218 repositoryId?: number;
219 /**
220 * Repository Type (eg. TFSGit).
221 */
222 repositoryType?: string;
223 /**
224 * Source Version(/first commit) for the build was triggered.
225 */
226 sourceVersion?: string;
227 /**
228 * Target BranchName.
229 */
230 targetBranchName?: string;
231 /**
232 * Build Uri.
233 */
234 uri?: string;
235}
236/**
237 * Build Coverage Detail
238 */
239export interface BuildCoverage {
240 /**
241 * Code Coverage File Url
242 */
243 codeCoverageFileUrl?: string;
244 /**
245 * Build Configuration
246 */
247 configuration?: BuildConfiguration;
248 /**
249 * Last Error
250 */
251 lastError?: string;
252 /**
253 * List of Modules
254 */
255 modules?: ModuleCoverage[];
256 /**
257 * State
258 */
259 state?: string;
260}
261/**
262 * Reference to a build.
263 */
264export interface BuildReference {
265 /**
266 * Branch name.
267 */
268 branchName?: string;
269 /**
270 * Build system.
271 */
272 buildSystem?: string;
273 /**
274 * Build Definition ID.
275 */
276 definitionId?: number;
277 /**
278 * Build ID.
279 */
280 id?: number;
281 /**
282 * Build Number.
283 */
284 number?: string;
285 /**
286 * Repository ID.
287 */
288 repositoryId?: string;
289 /**
290 * Build URI.
291 */
292 uri?: string;
293}
294export interface BuildReference2 {
295 branchName?: string;
296 buildConfigurationId?: number;
297 buildDefinitionId?: number;
298 buildDeleted?: boolean;
299 buildFlavor?: string;
300 buildId?: number;
301 buildNumber?: string;
302 buildPlatform?: string;
303 buildSystem?: string;
304 buildUri?: string;
305 coverageId?: number;
306 createdDate?: Date;
307 projectId?: string;
308 repoId?: string;
309 repoType?: string;
310 sourceVersion?: string;
311}
312export interface BulkResultUpdateRequest {
313 projectName?: string;
314 requests?: ResultUpdateRequest[];
315}
316/**
317 * Detail About Clone Operation.
318 */
319export interface CloneOperationInformation {
320 /**
321 * Clone Statistics
322 */
323 cloneStatistics?: CloneStatistics;
324 /**
325 * If the operation is complete, the DateTime of completion. If operation is not complete, this is DateTime.MaxValue
326 */
327 completionDate?: Date;
328 /**
329 * DateTime when the operation was started
330 */
331 creationDate?: Date;
332 /**
333 * Shallow reference of the destination
334 */
335 destinationObject?: ShallowReference;
336 /**
337 * Shallow reference of the destination
338 */
339 destinationPlan?: ShallowReference;
340 /**
341 * Shallow reference of the destination
342 */
343 destinationProject?: ShallowReference;
344 /**
345 * If the operation has Failed, Message contains the reason for failure. Null otherwise.
346 */
347 message?: string;
348 /**
349 * The ID of the operation
350 */
351 opId?: number;
352 /**
353 * The type of the object generated as a result of the Clone operation
354 */
355 resultObjectType?: ResultObjectType;
356 /**
357 * Shallow reference of the source
358 */
359 sourceObject?: ShallowReference;
360 /**
361 * Shallow reference of the source
362 */
363 sourcePlan?: ShallowReference;
364 /**
365 * Shallow reference of the source
366 */
367 sourceProject?: ShallowReference;
368 /**
369 * Current state of the operation. When State reaches Succeeded or Failed, the operation is complete
370 */
371 state?: CloneOperationState;
372 /**
373 * Url for getting the clone information
374 */
375 url?: string;
376}
377/**
378 * Enum of type Clone Operation Type.
379 */
380export declare enum CloneOperationState {
381 /**
382 * value for Failed State
383 */
384 Failed = 2,
385 /**
386 * value for Inprogress state
387 */
388 InProgress = 1,
389 /**
390 * Value for Queued State
391 */
392 Queued = 0,
393 /**
394 * value for Success state
395 */
396 Succeeded = 3
397}
398/**
399 * Clone options for cloning the test suite.
400 */
401export interface CloneOptions {
402 /**
403 * If set to true requirements will be cloned
404 */
405 cloneRequirements?: boolean;
406 /**
407 * copy all suites from a source plan
408 */
409 copyAllSuites?: boolean;
410 /**
411 * copy ancestor hierarchy
412 */
413 copyAncestorHierarchy?: boolean;
414 /**
415 * Name of the workitem type of the clone
416 */
417 destinationWorkItemType?: string;
418 /**
419 * Key value pairs where the key value is overridden by the value.
420 */
421 overrideParameters?: {
422 [key: string]: string;
423 };
424 /**
425 * Comment on the link that will link the new clone test case to the original Set null for no comment
426 */
427 relatedLinkComment?: string;
428}
429/**
430 * Clone Statistics Details.
431 */
432export interface CloneStatistics {
433 /**
434 * Number of requirements cloned so far.
435 */
436 clonedRequirementsCount?: number;
437 /**
438 * Number of shared steps cloned so far.
439 */
440 clonedSharedStepsCount?: number;
441 /**
442 * Number of test cases cloned so far
443 */
444 clonedTestCasesCount?: number;
445 /**
446 * Total number of requirements to be cloned
447 */
448 totalRequirementsCount?: number;
449 /**
450 * Total number of test cases to be cloned
451 */
452 totalTestCasesCount?: number;
453}
454export interface CloneTestCaseOptions {
455 /**
456 * If set to true, include the attachments
457 */
458 includeAttachments?: boolean;
459 /**
460 * If set to true, include the links
461 */
462 includeLinks?: boolean;
463 /**
464 * Comment on the link that will link the new clone test case to the original Set null for no comment
465 */
466 relatedLinkComment?: string;
467}
468/**
469 * Represents the build configuration (platform, flavor) and coverage data for the build
470 */
471export interface CodeCoverageData {
472 /**
473 * Flavor of build for which data is retrieved/published
474 */
475 buildFlavor: string;
476 /**
477 * Platform of build for which data is retrieved/published
478 */
479 buildPlatform: string;
480 /**
481 * List of coverage data for the build
482 */
483 coverageStats: CodeCoverageStatistics[];
484}
485/**
486 * Represents the code coverage statistics for a particular coverage label (modules, statements, blocks, etc.)
487 */
488export interface CodeCoverageStatistics {
489 /**
490 * Covered units
491 */
492 covered: number;
493 /**
494 * Delta of coverage
495 */
496 delta?: number;
497 /**
498 * Is delta valid
499 */
500 isDeltaAvailable?: boolean;
501 /**
502 * Label of coverage data ("Blocks", "Statements", "Modules", etc.)
503 */
504 label: string;
505 /**
506 * Position of label
507 */
508 position: number;
509 /**
510 * Total units
511 */
512 total: number;
513}
514/**
515 * Represents the code coverage summary results Used to publish or retrieve code coverage summary against a build
516 */
517export interface CodeCoverageSummary {
518 /**
519 * Uri of build for which data is retrieved/published
520 */
521 build: ShallowReference;
522 /**
523 * List of coverage data and details for the build
524 */
525 coverageData?: CodeCoverageData[];
526 coverageDetailedSummaryStatus?: CoverageDetailedSummaryStatus;
527 /**
528 * Uri of build against which difference in coverage is computed
529 */
530 deltaBuild?: ShallowReference;
531 /**
532 * Uri of build against which difference in coverage is computed
533 */
534 status?: CoverageSummaryStatus;
535}
536export interface CodeCoverageSummary2 {
537 buildConfigurationId?: number;
538 covered?: number;
539 label?: string;
540 position?: number;
541 projectId?: string;
542 total?: number;
543}
544export interface Coverage2 {
545 coverageId?: number;
546 dateCreated?: Date;
547 dateModified?: Date;
548 lastError?: string;
549 state?: number;
550}
551/**
552 * Represents status of code coverage summary for a build
553 */
554export declare enum CoverageDetailedSummaryStatus {
555 /**
556 * No coverage status
557 */
558 None = 0,
559 /**
560 * The summary evaluation is in progress
561 */
562 InProgress = 1,
563 /**
564 * The summary evaluation is finalized and won't change
565 */
566 Finalized = 2,
567 /**
568 * The summary evaluation is pending
569 */
570 Pending = 3,
571 /**
572 * Summary evaluation may be ongoing but another merge has been requested.
573 */
574 UpdateRequestQueued = 4,
575 /**
576 * No coverage modules found
577 */
578 NoModulesFound = 5,
579 /**
580 * Number of Files exceeded
581 */
582 NumberOfFilesExceeded = 6,
583 /**
584 * TNo Input Files
585 */
586 NoInputFiles = 7,
587 /**
588 * Build got cancelled by user
589 */
590 BuildCancelled = 8,
591 /**
592 * Coverage Jobs failed
593 */
594 FailedJobs = 9,
595 /**
596 * Module merge Timeout
597 */
598 ModuleMergeJobTimeout = 10,
599 /**
600 * Coverage successfully completed
601 */
602 CodeCoverageSuccess = 11,
603 /**
604 * Invalid Build Configuration
605 */
606 InvalidBuildConfiguration = 12,
607 /**
608 * Coverage Analyzer Build not found
609 */
610 CoverageAnalyzerBuildNotFound = 13,
611 /**
612 * Failed to requeue the build
613 */
614 FailedToRequeue = 14,
615 /**
616 * Build got Bailed out
617 */
618 BuildBailedOut = 15,
619 /**
620 * No Code coverage configured
621 */
622 NoCodeCoverageTask = 16,
623 /**
624 * CoverageMerge Job failed
625 */
626 MergeJobFailed = 17,
627 /**
628 * CoverageMergeInvoker Job failed
629 */
630 MergeInvokerJobFailed = 18,
631 /**
632 * CoverageMonitor Job failed
633 */
634 MonitorJobFailed = 19,
635 /**
636 * CoverageMergeInvoker Job timeout
637 */
638 ModuleMergeInvokerJobTimeout = 20,
639 /**
640 * CoverageMonitor Job timeout
641 */
642 MonitorJobTimeout = 21,
643 /**
644 * Invalid Coverage Input file
645 */
646 InvalidCoverageInput = 22
647}
648/**
649 * Used to choose which coverage data is returned by a QueryXXXCoverage() call.
650 */
651export declare enum CoverageQueryFlags {
652 /**
653 * If set, the Coverage.Modules property will be populated.
654 */
655 Modules = 1,
656 /**
657 * If set, the ModuleCoverage.Functions properties will be populated.
658 */
659 Functions = 2,
660 /**
661 * If set, the ModuleCoverage.CoverageData field will be populated.
662 */
663 BlockData = 4
664}
665export interface CoverageStatistics {
666 blocksCovered?: number;
667 blocksNotCovered?: number;
668 linesCovered?: number;
669 linesNotCovered?: number;
670 linesPartiallyCovered?: number;
671}
672export declare enum CoverageStatus {
673 Covered = 0,
674 NotCovered = 1,
675 PartiallyCovered = 2
676}
677/**
678 * Represents status of code coverage summary for a build
679 */
680export declare enum CoverageSummaryStatus {
681 /**
682 * No coverage status
683 */
684 None = 0,
685 /**
686 * The summary evaluation is in progress
687 */
688 InProgress = 1,
689 /**
690 * The summary evaluation for the previous request is completed. Summary can change in future
691 */
692 Completed = 2,
693 /**
694 * The summary evaluation is finalized and won't change
695 */
696 Finalized = 3,
697 /**
698 * The summary evaluation is pending
699 */
700 Pending = 4,
701 /**
702 * Summary evaluation may be ongoing but another merge has been requested.
703 */
704 UpdateRequestQueued = 5
705}
706export interface CreateTestMessageLogEntryRequest {
707 projectName?: string;
708 testMessageLogEntry?: TestMessageLogEntry[];
709 testRunId?: number;
710}
711export interface CreateTestResultsRequest {
712 projectName?: string;
713 results?: LegacyTestCaseResult[];
714}
715export interface CreateTestRunRequest {
716 projectName?: string;
717 results?: LegacyTestCaseResult[];
718 testRun?: LegacyTestRun;
719 testSettings?: LegacyTestSettings;
720}
721/**
722 * A custom field information. Allowed Key : Value pairs - ( AttemptId: int value, IsTestResultFlaky: bool)
723 */
724export interface CustomTestField {
725 /**
726 * Field Name.
727 */
728 fieldName: string;
729 /**
730 * Field value.
731 */
732 value: any;
733}
734export interface CustomTestFieldDefinition {
735 fieldId?: number;
736 fieldName: string;
737 fieldType: CustomTestFieldType;
738 scope: CustomTestFieldScope;
739}
740export declare enum CustomTestFieldScope {
741 None = 0,
742 TestRun = 1,
743 TestResult = 2,
744 System = 4,
745 All = 7
746}
747export declare enum CustomTestFieldType {
748 Bit = 2,
749 DateTime = 4,
750 Int = 8,
751 Float = 6,
752 String = 12,
753 Guid = 14
754}
755export interface DatedTestFieldData {
756 date?: Date;
757 value?: TestFieldData;
758}
759export interface DefaultAfnStripBinding {
760 testCaseId?: number;
761 testResultId?: number;
762 testRunId?: number;
763}
764export interface DeleteTestRunRequest {
765 projectName?: string;
766 testRunIds?: number[];
767}
768export interface DownloadAttachmentsRequest {
769 ids?: number[];
770 lengths?: number[];
771}
772/**
773 * This is a temporary class to provide the details for the test run environment.
774 */
775export interface DtlEnvironmentDetails {
776 csmContent: string;
777 csmParameters?: string;
778 subscriptionName?: string;
779}
780/**
781 * Failing since information of a test result.
782 */
783export interface FailingSince {
784 /**
785 * Build reference since failing.
786 */
787 build?: BuildReference;
788 /**
789 * Time since failing(UTC).
790 */
791 date: Date;
792 /**
793 * Release reference since failing.
794 */
795 release?: ReleaseReference;
796}
797export interface FetchTestResultsRequest {
798 idAndRevs?: TestCaseResultIdAndRev[];
799 includeActionResults?: boolean;
800 projectName?: string;
801}
802export interface FetchTestResultsResponse {
803 actionResults?: TestActionResult[];
804 attachments?: TestResultAttachment[];
805 deletedIds?: LegacyTestCaseResultIdentifier[];
806 results?: LegacyTestCaseResult[];
807 testParameters?: TestResultParameter[];
808}
809export interface FieldDetailsForTestResults {
810 /**
811 * Group by field name
812 */
813 fieldName?: string;
814 /**
815 * Group by field values
816 */
817 groupsForField?: any[];
818}
819export interface FileCoverage {
820 /**
821 * List of line blocks along with their coverage status
822 */
823 lineBlocksCoverage?: LineBlockCoverage[];
824 /**
825 * File path for which coverage information is sought for
826 */
827 path: string;
828}
829export interface FileCoverageData {
830 coverageStatistics?: CoverageStatistics;
831 name?: string;
832}
833export interface FileCoverageRequest {
834 filePath: string;
835 pullRequestBaseIterationId: number;
836 pullRequestId: number;
837 pullRequestIterationId: number;
838 repoId: string;
839}
840export interface FilterPointQuery {
841 planId: number;
842 pointIds: number[];
843 pointOutcome: number[];
844 resultState: number[];
845}
846export interface FlakyDetection {
847 /**
848 * FlakyDetectionPipelines defines Pipelines for Detection.
849 */
850 flakyDetectionPipelines?: FlakyDetectionPipelines;
851 /**
852 * FlakyDetectionType defines Detection type i.e. 1. System or 2. Manual.
853 */
854 flakyDetectionType: FlakyDetectionType;
855}
856export interface FlakyDetectionPipelines {
857 /**
858 * AllowedPipelines - List All Pipelines allowed for detection.
859 */
860 allowedPipelines?: number[];
861 /**
862 * IsAllPipelinesAllowed if users configure all system's pipelines.
863 */
864 isAllPipelinesAllowed: boolean;
865}
866export declare enum FlakyDetectionType {
867 /**
868 * Custom defines manual detection type.
869 */
870 Custom = 1,
871 /**
872 * Defines System detection type.
873 */
874 System = 2
875}
876export interface FlakySettings {
877 /**
878 * FlakyDetection defines types of detection.
879 */
880 flakyDetection?: FlakyDetection;
881 /**
882 * FlakyInSummaryReport defines flaky data should show in summary report or not.
883 */
884 flakyInSummaryReport?: boolean;
885 /**
886 * IsFlakyBugCreated defines if there is any bug that has been created with flaky testresult.
887 */
888 isFlakyBugCreated?: boolean;
889 /**
890 * ManualMarkUnmarkFlaky defines manual marking unmarking of flaky testcase.
891 */
892 manualMarkUnmarkFlaky?: boolean;
893}
894export interface FolderCoverageData {
895 coverageStatistics?: CoverageStatistics;
896 files?: FileCoverageData[];
897 folders?: FolderCoverageData[];
898 name?: string;
899}
900export interface FunctionCoverage {
901 class?: string;
902 name?: string;
903 namespace?: string;
904 sourceFile?: string;
905 statistics?: CoverageStatistics;
906}
907export interface FunctionCoverage2 {
908 blocksCovered?: number;
909 blocksNotCovered?: number;
910 class?: string;
911 coverageId?: number;
912 functionId?: number;
913 linesCovered?: number;
914 linesNotCovered?: number;
915 linesPartiallyCovered?: number;
916 moduleId?: number;
917 name?: string;
918 namespace?: string;
919 sourceFile?: string;
920}
921export interface HttpPostedTcmAttachment {
922 attachmentContent?: string;
923 contentLength?: number;
924 contentType?: string;
925 fileName?: string;
926}
927/**
928 * Job in pipeline. This is related to matrixing in YAML.
929 */
930export interface JobReference {
931 /**
932 * Attempt number of the job
933 */
934 attempt?: number;
935 /**
936 * Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
937 */
938 jobName?: string;
939}
940/**
941 * Last result details of test point.
942 */
943export interface LastResultDetails {
944 /**
945 * Completed date of last result.
946 */
947 dateCompleted?: Date;
948 /**
949 * Duration of the last result in milliseconds.
950 */
951 duration?: number;
952 /**
953 * The user who executed the last result.
954 */
955 runBy?: VSSInterfaces.IdentityRef;
956}
957export interface LegacyBuildConfiguration {
958 branchName?: string;
959 buildConfigurationId?: number;
960 buildDefinitionId?: number;
961 buildDefinitionName?: string;
962 buildFlavor?: string;
963 buildId?: number;
964 buildNumber?: string;
965 buildPlatform?: string;
966 buildQuality?: string;
967 buildSystem?: string;
968 buildUri?: string;
969 completedDate?: Date;
970 createdDate?: Date;
971 oldBuildConfigurationId?: number;
972 repositoryId?: string;
973 repositoryType?: string;
974 sourceVersion?: string;
975 teamProjectName?: string;
976}
977export interface LegacyReleaseReference {
978 attempt?: number;
979 environmentCreationDate?: Date;
980 primaryArtifactBuildId?: number;
981 primaryArtifactProjectId?: string;
982 primaryArtifactType?: string;
983 releaseCreationDate?: Date;
984 releaseDefId?: number;
985 releaseEnvDefId?: number;
986 releaseEnvId?: number;
987 releaseEnvName?: string;
988 releaseEnvUri?: string;
989 releaseId?: number;
990 releaseName?: string;
991 releaseRefId?: number;
992 releaseUri?: string;
993}
994export interface LegacyTestCaseResult {
995 afnStripId?: number;
996 areaId?: number;
997 areaUri?: string;
998 automatedTestId?: string;
999 automatedTestName?: string;
1000 automatedTestStorage?: string;
1001 automatedTestType?: string;
1002 automatedTestTypeId?: string;
1003 buildNumber?: string;
1004 buildReference?: LegacyBuildConfiguration;
1005 comment?: string;
1006 computerName?: string;
1007 configurationId?: number;
1008 configurationName?: string;
1009 creationDate?: Date;
1010 customFields?: TestExtensionField[];
1011 dateCompleted?: Date;
1012 dateStarted?: Date;
1013 duration?: number;
1014 errorMessage?: string;
1015 failingSince?: FailingSince;
1016 failureType?: number;
1017 id?: LegacyTestCaseResultIdentifier;
1018 isRerun?: boolean;
1019 lastUpdated?: Date;
1020 lastUpdatedBy?: string;
1021 lastUpdatedByName?: string;
1022 outcome?: number;
1023 owner?: string;
1024 ownerName?: string;
1025 priority?: number;
1026 releaseReference?: LegacyReleaseReference;
1027 resetCount?: number;
1028 resolutionStateId?: number;
1029 resultGroupType?: ResultGroupType;
1030 revision?: number;
1031 runBy?: string;
1032 runByName?: string;
1033 sequenceId?: number;
1034 stackTrace?: TestExtensionField;
1035 state?: number;
1036 subResultCount?: number;
1037 suiteName?: string;
1038 testCaseArea?: string;
1039 testCaseAreaUri?: string;
1040 testCaseId?: number;
1041 testCaseReferenceId?: number;
1042 testCaseRevision?: number;
1043 testCaseTitle?: string;
1044 testPlanId?: number;
1045 testPointId?: number;
1046 testResultId?: number;
1047 testRunId?: number;
1048 testRunTitle?: string;
1049 testSuiteId?: number;
1050}
1051export interface LegacyTestCaseResultIdentifier {
1052 areaUri?: string;
1053 testResultId?: number;
1054 testRunId?: number;
1055}
1056export interface LegacyTestRun {
1057 bugsCount?: number;
1058 buildConfigurationId?: number;
1059 buildFlavor?: string;
1060 buildNumber?: string;
1061 buildPlatform?: string;
1062 buildReference?: LegacyBuildConfiguration;
1063 buildUri?: string;
1064 comment?: string;
1065 completeDate?: Date;
1066 configurationIds?: number[];
1067 controller?: string;
1068 creationDate?: Date;
1069 csmContent?: string;
1070 csmParameters?: string;
1071 customFields?: TestExtensionField[];
1072 dropLocation?: string;
1073 dtlAutEnvironment?: ShallowReference;
1074 dtlTestEnvironment?: ShallowReference;
1075 dueDate?: Date;
1076 errorMessage?: string;
1077 filter?: RunFilter;
1078 incompleteTests?: number;
1079 isAutomated?: boolean;
1080 isBvt?: boolean;
1081 iteration?: string;
1082 iterationId?: number;
1083 lastUpdated?: Date;
1084 lastUpdatedBy?: string;
1085 lastUpdatedByName?: string;
1086 legacySharePath?: string;
1087 notApplicableTests?: number;
1088 owner?: string;
1089 ownerName?: string;
1090 passedTests?: number;
1091 postProcessState?: number;
1092 publicTestSettingsId?: number;
1093 releaseEnvironmentUri?: string;
1094 releaseReference?: LegacyReleaseReference;
1095 releaseUri?: string;
1096 revision?: number;
1097 rowVersion?: number[];
1098 runHasDtlEnvironment?: boolean;
1099 runTimeout?: any;
1100 serviceVersion?: string;
1101 sourceWorkflow?: string;
1102 startDate?: Date;
1103 state?: number;
1104 subscriptionName?: string;
1105 substate?: number;
1106 teamProject?: string;
1107 teamProjectUri?: string;
1108 testConfigurationsMapping?: string;
1109 testEnvironmentId?: string;
1110 testMessageLogEntries?: TestMessageLogDetails[];
1111 testMessageLogId?: number;
1112 testPlanId?: number;
1113 testRunId?: number;
1114 testRunStatistics?: LegacyTestRunStatistic[];
1115 testSettingsId?: number;
1116 title?: string;
1117 totalTests?: number;
1118 type?: number;
1119 unanalyzedTests?: number;
1120 version?: number;
1121}
1122export interface LegacyTestRunStatistic {
1123 count?: number;
1124 outcome?: number;
1125 resolutionState?: TestResolutionState;
1126 state?: number;
1127 testRunId?: number;
1128}
1129export interface LegacyTestSettings {
1130 areaId?: number;
1131 areaPath?: string;
1132 createdBy?: string;
1133 createdByName?: string;
1134 createdDate?: Date;
1135 description?: string;
1136 id?: number;
1137 isAutomated?: boolean;
1138 isPublic?: boolean;
1139 lastUpdated?: Date;
1140 lastUpdatedBy?: string;
1141 lastUpdatedByName?: string;
1142 machineRoles?: TestSettingsMachineRole[];
1143 name?: string;
1144 revision?: number;
1145 settings?: string;
1146 teamProjectUri?: string;
1147}
1148export interface LineBlockCoverage {
1149 /**
1150 * End of line block
1151 */
1152 end: number;
1153 /**
1154 * Start of line block
1155 */
1156 start: number;
1157 /**
1158 * Coverage status. Covered: 0, NotCovered: 1, PartiallyCovered: 2
1159 */
1160 status: number;
1161}
1162/**
1163 * Links
1164 */
1165export interface Link {
1166 /**
1167 * Display Name
1168 */
1169 displayName?: string;
1170 /**
1171 * Link Operation Type Valid values = (Open, WebService)
1172 */
1173 operationType?: string;
1174 /**
1175 * Link type (maps to enum value; see parent object for acceptable values)
1176 */
1177 type: string;
1178 /**
1179 * Link url
1180 */
1181 url: string;
1182}
1183export interface LinkedWorkItemsQuery {
1184 automatedTestNames?: string[];
1185 planId?: number;
1186 pointIds?: number[];
1187 suiteIds?: number[];
1188 testCaseIds?: number[];
1189 workItemCategory?: string;
1190}
1191export interface LinkedWorkItemsQueryResult {
1192 automatedTestName?: string;
1193 planId?: number;
1194 pointId?: number;
1195 suiteId?: number;
1196 testCaseId?: number;
1197 workItems?: WorkItemReference[];
1198}
1199/**
1200 * Test summary metrics.
1201 */
1202export declare enum Metrics {
1203 /**
1204 * To get results of all matrix.
1205 */
1206 All = 1,
1207 /**
1208 * Get results summary by results outcome
1209 */
1210 ResultSummary = 2,
1211 /**
1212 * Get results analysis which include failure analysis, increase/decrease in results count analysis.
1213 */
1214 ResultsAnalysis = 3,
1215 /**
1216 * Get runs summary
1217 */
1218 RunSummary = 4
1219}
1220export interface ModuleCoverage {
1221 blockCount?: number;
1222 blockData?: number[];
1223 /**
1224 * Code Coverage File Url
1225 */
1226 fileUrl?: string;
1227 functions?: FunctionCoverage[];
1228 name?: string;
1229 signature?: string;
1230 signatureAge?: number;
1231 statistics?: CoverageStatistics;
1232}
1233export interface ModuleCoverage2 {
1234 blockCount?: number;
1235 blockData?: number[];
1236 blockDataLength?: number;
1237 blocksCovered?: number;
1238 blocksNotCovered?: number;
1239 coverageFileUrl?: string;
1240 coverageId?: number;
1241 linesCovered?: number;
1242 linesNotCovered?: number;
1243 linesPartiallyCovered?: number;
1244 moduleId?: number;
1245 name?: string;
1246 signature?: string;
1247 signatureAge?: number;
1248}
1249/**
1250 * Name value pair
1251 */
1252export interface NameValuePair {
1253 /**
1254 * Name
1255 */
1256 name?: string;
1257 /**
1258 * Value
1259 */
1260 value?: string;
1261}
1262export interface NewTestResultLoggingSettings {
1263 /**
1264 * LogNewTests defines whether or not we will record new test cases coming into the system
1265 */
1266 logNewTests?: boolean;
1267}
1268export declare enum OperationType {
1269 Add = 1,
1270 Delete = 2
1271}
1272/**
1273 * Phase in pipeline
1274 */
1275export interface PhaseReference {
1276 /**
1277 * Attempt number of the phase
1278 */
1279 attempt?: number;
1280 /**
1281 * Name of the phase. Maximum supported length for name is 256 character.
1282 */
1283 phaseName?: string;
1284}
1285/**
1286 * Pipeline reference
1287 */
1288export interface PipelineReference {
1289 /**
1290 * Reference of the job
1291 */
1292 jobReference?: JobReference;
1293 /**
1294 * Reference of the phase.
1295 */
1296 phaseReference?: PhaseReference;
1297 /**
1298 * Reference of the BuildDefinitionId.
1299 */
1300 pipelineDefinitionId?: number;
1301 /**
1302 * Reference of the pipeline with which this pipeline instance is related.
1303 */
1304 pipelineId: number;
1305 /**
1306 * Reference of the stage.
1307 */
1308 stageReference?: StageReference;
1309}
1310/**
1311 * Test summary of a pipeline instance.
1312 */
1313export interface PipelineTestMetrics {
1314 /**
1315 * Reference of Pipeline instance for which test summary is calculated.
1316 */
1317 currentContext?: PipelineReference;
1318 /**
1319 * This is the return value for metric ResultsAnalysis Results insights which include failure analysis, increase/decrease in results count analysis.
1320 */
1321 resultsAnalysis?: ResultsAnalysis;
1322 /**
1323 * This is the return value for metric ResultSummary Results summary based on results outcome.
1324 */
1325 resultSummary?: ResultSummary;
1326 /**
1327 * This is the return value for metric RunSummary Run summary.
1328 */
1329 runSummary?: RunSummary;
1330 /**
1331 * Summary at child node.
1332 */
1333 summaryAtChild?: PipelineTestMetrics[];
1334}
1335/**
1336 * A model class used for creating and updating test plans.
1337 */
1338export interface PlanUpdateModel {
1339 /**
1340 * Area path to which the test plan belongs. This should be set to area path of the team that works on this test plan.
1341 */
1342 area?: ShallowReference;
1343 automatedTestEnvironment?: TestEnvironment;
1344 automatedTestSettings?: TestSettings;
1345 /**
1346 * Build ID of the build whose quality is tested by the tests in this test plan. For automated testing, this build ID is used to find the test binaries that contain automated test methods.
1347 */
1348 build?: ShallowReference;
1349 /**
1350 * The Build Definition that generates a build associated with this test plan.
1351 */
1352 buildDefinition?: ShallowReference;
1353 /**
1354 * IDs of configurations to be applied when new test suites and test cases are added to the test plan.
1355 */
1356 configurationIds?: number[];
1357 /**
1358 * Description of the test plan.
1359 */
1360 description?: string;
1361 /**
1362 * End date for the test plan.
1363 */
1364 endDate?: string;
1365 /**
1366 * Iteration path assigned to the test plan. This indicates when the target iteration by which the testing in this plan is supposed to be complete and the product is ready to be released.
1367 */
1368 iteration?: string;
1369 manualTestEnvironment?: TestEnvironment;
1370 manualTestSettings?: TestSettings;
1371 /**
1372 * Name of the test plan.
1373 */
1374 name?: string;
1375 /**
1376 * Owner of the test plan.
1377 */
1378 owner?: VSSInterfaces.IdentityRef;
1379 /**
1380 * Release Environment to be used to deploy the build and run automated tests from this test plan.
1381 */
1382 releaseEnvironmentDefinition?: ReleaseEnvironmentDefinitionReference;
1383 /**
1384 * Start date for the test plan.
1385 */
1386 startDate?: string;
1387 /**
1388 * State of the test plan.
1389 */
1390 state?: string;
1391 status?: string;
1392 /**
1393 * Test Outcome settings
1394 */
1395 testOutcomeSettings?: TestOutcomeSettings;
1396}
1397/**
1398 * Adding test cases to a suite creates one of more test points based on the default configurations and testers assigned to the test suite. PointAssignment is the list of test points that were created for each of the test cases that were added to the test suite.
1399 */
1400export interface PointAssignment {
1401 /**
1402 * Configuration that was assigned to the test case.
1403 */
1404 configuration?: ShallowReference;
1405 /**
1406 * Tester that was assigned to the test case
1407 */
1408 tester?: VSSInterfaces.IdentityRef;
1409}
1410export interface PointLastResult {
1411 lastUpdatedDate?: Date;
1412 pointId?: number;
1413}
1414/**
1415 * Filter class for test point.
1416 */
1417export interface PointsFilter {
1418 /**
1419 * List of Configurations for filtering.
1420 */
1421 configurationNames?: string[];
1422 /**
1423 * List of test case id for filtering.
1424 */
1425 testcaseIds?: number[];
1426 /**
1427 * List of tester for filtering.
1428 */
1429 testers?: VSSInterfaces.IdentityRef[];
1430}
1431export interface PointsReference2 {
1432 planId?: number;
1433 pointId?: number;
1434}
1435export interface PointsResults2 {
1436 changeNumber?: number;
1437 lastFailureType?: number;
1438 lastResolutionStateId?: number;
1439 lastResultOutcome?: number;
1440 lastResultState?: number;
1441 lastTestResultId?: number;
1442 lastTestRunId?: number;
1443 lastUpdated?: Date;
1444 lastUpdatedBy?: string;
1445 planId?: number;
1446 pointId?: number;
1447}
1448/**
1449 * Model to update test point.
1450 */
1451export interface PointUpdateModel {
1452 /**
1453 * Outcome to update.
1454 */
1455 outcome?: string;
1456 /**
1457 * Reset test point to active.
1458 */
1459 resetToActive?: boolean;
1460 /**
1461 * Tester to update. Type IdentityRef.
1462 */
1463 tester?: VSSInterfaces.IdentityRef;
1464}
1465/**
1466 * Test point workitem property.
1467 */
1468export interface PointWorkItemProperty {
1469 /**
1470 * key value pair of test point work item property.
1471 */
1472 workItem: {
1473 key: string;
1474 value: any;
1475 };
1476}
1477/**
1478 * The class to represent a Generic store for test session data.
1479 */
1480export interface PropertyBag {
1481 /**
1482 * Generic store for test session data
1483 */
1484 bag?: {
1485 [key: string]: string;
1486 };
1487}
1488export interface QueryByPointRequest {
1489 projectName?: string;
1490 testPlanId?: number;
1491 testPointId?: number;
1492}
1493export interface QueryByRunRequest {
1494 includeActionResults?: boolean;
1495 outcome?: number;
1496 owner?: string;
1497 pageSize?: number;
1498 projectName?: string;
1499 state?: number;
1500 testRunId?: number;
1501}
1502export interface QueryModel {
1503 query: string;
1504}
1505export interface QueryTestActionResultRequest {
1506 identifier?: LegacyTestCaseResultIdentifier;
1507 projectName?: string;
1508}
1509export interface QueryTestActionResultResponse {
1510 testActionResults?: TestActionResult[];
1511 testAttachments?: TestResultAttachment[];
1512 testResultParameters?: TestResultParameter[];
1513}
1514export interface QueryTestMessageLogEntryRequest {
1515 projectName?: string;
1516 testMessageLogId?: number;
1517 testRunId?: number;
1518}
1519export interface QueryTestRuns2Request {
1520 includeStatistics?: boolean;
1521 query?: ResultsStoreQuery;
1522}
1523export interface QueryTestRunsRequest {
1524 buildUri?: string;
1525 owner?: string;
1526 planId?: number;
1527 skip?: number;
1528 teamProjectName?: string;
1529 testRunId?: number;
1530 top?: number;
1531}
1532export interface QueryTestRunStatsRequest {
1533 teamProjectName?: string;
1534 testRunId?: number;
1535}
1536/**
1537 * Reference to release environment resource.
1538 */
1539export interface ReleaseEnvironmentDefinitionReference {
1540 /**
1541 * ID of the release definition that contains the release environment definition.
1542 */
1543 definitionId?: number;
1544 /**
1545 * ID of the release environment definition.
1546 */
1547 environmentDefinitionId?: number;
1548}
1549/**
1550 * Reference to a release.
1551 */
1552export interface ReleaseReference {
1553 /**
1554 * Number of Release Attempt.
1555 */
1556 attempt?: number;
1557 /**
1558 * Release Creation Date(UTC).
1559 */
1560 creationDate?: Date;
1561 /**
1562 * Release definition ID.
1563 */
1564 definitionId?: number;
1565 /**
1566 * Environment creation Date(UTC).
1567 */
1568 environmentCreationDate?: Date;
1569 /**
1570 * Release environment definition ID.
1571 */
1572 environmentDefinitionId?: number;
1573 /**
1574 * Release environment definition name.
1575 */
1576 environmentDefinitionName?: string;
1577 /**
1578 * Release environment ID.
1579 */
1580 environmentId?: number;
1581 /**
1582 * Release environment name.
1583 */
1584 environmentName?: string;
1585 /**
1586 * Release ID.
1587 */
1588 id?: number;
1589 /**
1590 * Release name.
1591 */
1592 name?: string;
1593}
1594export interface ReleaseReference2 {
1595 attempt?: number;
1596 environmentCreationDate?: Date;
1597 projectId?: string;
1598 releaseCreationDate?: Date;
1599 releaseDefId?: number;
1600 releaseEnvDefId?: number;
1601 releaseEnvId?: number;
1602 releaseEnvName?: string;
1603 releaseEnvUri?: string;
1604 releaseId?: number;
1605 releaseName?: string;
1606 releaseRefId?: number;
1607 releaseUri?: string;
1608}
1609export interface RequirementsToTestsMapping2 {
1610 createdBy?: string;
1611 creationDate?: Date;
1612 deletedBy?: string;
1613 deletionDate?: Date;
1614 isMigratedToWIT?: boolean;
1615 projectId?: string;
1616 testMetadataId?: number;
1617 workItemId?: number;
1618}
1619export interface ResetTestResultsRequest {
1620 ids?: LegacyTestCaseResultIdentifier[];
1621 projectName?: string;
1622}
1623export interface Response {
1624 error?: string;
1625 id?: string;
1626 status?: string;
1627 url?: string;
1628}
1629/**
1630 * Additional details with test result
1631 */
1632export declare enum ResultDetails {
1633 /**
1634 * Core fields of test result. Core fields includes State, Outcome, Priority, AutomatedTestName, AutomatedTestStorage, Comments, ErrorMessage etc.
1635 */
1636 None = 0,
1637 /**
1638 * Test iteration details in a test result.
1639 */
1640 Iterations = 1,
1641 /**
1642 * Workitems associated with a test result.
1643 */
1644 WorkItems = 2,
1645 /**
1646 * Subresults in a test result.
1647 */
1648 SubResults = 4,
1649 /**
1650 * Point and plan detail in a test result.
1651 */
1652 Point = 8
1653}
1654/**
1655 * Hierarchy type of the result/subresults.
1656 */
1657export declare enum ResultGroupType {
1658 /**
1659 * Leaf node of test result.
1660 */
1661 None = 0,
1662 /**
1663 * Hierarchy type of test result.
1664 */
1665 Rerun = 1,
1666 /**
1667 * Hierarchy type of test result.
1668 */
1669 DataDriven = 2,
1670 /**
1671 * Hierarchy type of test result.
1672 */
1673 OrderedTest = 3,
1674 /**
1675 * Unknown hierarchy type.
1676 */
1677 Generic = 4
1678}
1679export declare enum ResultMetadata {
1680 /**
1681 * Rerun metadata
1682 */
1683 Rerun = 1,
1684 /**
1685 * Flaky metadata
1686 */
1687 Flaky = 2
1688}
1689/**
1690 * Additional details with test result metadata
1691 */
1692export declare enum ResultMetaDataDetails {
1693 /**
1694 * Core fields of test result metadata.
1695 */
1696 None = 0,
1697 /**
1698 * Test FlakyIdentifiers details in test result metadata.
1699 */
1700 FlakyIdentifiers = 1
1701}
1702/**
1703 * The top level entity that is being cloned as part of a Clone operation
1704 */
1705export declare enum ResultObjectType {
1706 /**
1707 * Suite Clone
1708 */
1709 TestSuite = 0,
1710 /**
1711 * Plan Clone
1712 */
1713 TestPlan = 1
1714}
1715/**
1716 * Test result retention settings
1717 */
1718export interface ResultRetentionSettings {
1719 /**
1720 * Automated test result retention duration in days
1721 */
1722 automatedResultsRetentionDuration: number;
1723 /**
1724 * Last Updated by identity
1725 */
1726 lastUpdatedBy?: VSSInterfaces.IdentityRef;
1727 /**
1728 * Last updated date
1729 */
1730 lastUpdatedDate?: Date;
1731 /**
1732 * Manual test result retention duration in days
1733 */
1734 manualResultsRetentionDuration: number;
1735}
1736/**
1737 * Results insights for runs with state completed and NeedInvestigation.
1738 */
1739export interface ResultsAnalysis {
1740 /**
1741 * Reference of pipeline instance from which to compare the results.
1742 */
1743 previousContext?: PipelineReference;
1744 /**
1745 * Increase/Decrease in counts of results for a different outcome with respect to PreviousContext.
1746 */
1747 resultsDifference?: AggregatedResultsDifference;
1748 /**
1749 * Failure analysis of results with respect to PreviousContext
1750 */
1751 testFailuresAnalysis?: TestResultFailuresAnalysis;
1752}
1753export interface ResultsByQueryRequest {
1754 pageSize?: number;
1755 query?: ResultsStoreQuery;
1756}
1757export interface ResultsByQueryResponse {
1758 excessIds?: LegacyTestCaseResultIdentifier[];
1759 testResults?: LegacyTestCaseResult[];
1760}
1761export interface ResultsFilter {
1762 automatedTestName: string;
1763 branch?: string;
1764 executedIn?: Service;
1765 groupBy?: string;
1766 maxCompleteDate?: Date;
1767 resultsCount?: number;
1768 testCaseId?: number;
1769 testCaseReferenceIds?: number[];
1770 testPlanId?: number;
1771 testPointIds?: number[];
1772 testResultsContext?: TestResultsContext;
1773 trendDays?: number;
1774}
1775export interface ResultsStoreQuery {
1776 dayPrecision?: boolean;
1777 queryText?: string;
1778 teamProjectName?: string;
1779 timeZone?: string;
1780}
1781/**
1782 * Result summary by the outcome of test results.
1783 */
1784export interface ResultsSummaryByOutcome {
1785 /**
1786 * Aggregated result details for each test result outcome.
1787 */
1788 aggregatedResultDetailsByOutcome?: {
1789 [key: number]: AggregatedResultDetailsByOutcome;
1790 };
1791 /**
1792 * Time taken by results.
1793 */
1794 duration?: any;
1795 /**
1796 * Total number of not reported test results.
1797 */
1798 notReportedTestCount?: number;
1799 /**
1800 * Total number of test results. (It includes NotImpacted test results as well which need to exclude while calculating pass/fail test result percentage).
1801 */
1802 totalTestCount?: number;
1803}
1804/**
1805 * Summary of results for a pipeline instance.
1806 */
1807export interface ResultSummary {
1808 /**
1809 * Result summary of pipeline, group by TestRun state.
1810 */
1811 resultSummaryByRunState?: {
1812 [key: number]: ResultsSummaryByOutcome;
1813 };
1814}
1815export interface ResultUpdateRequest {
1816 actionResultDeletes?: TestActionResult[];
1817 actionResults?: TestActionResult[];
1818 attachmentDeletes?: TestResultAttachmentIdentity[];
1819 attachments?: TestResultAttachment[];
1820 parameterDeletes?: TestResultParameter[];
1821 parameters?: TestResultParameter[];
1822 testCaseResult?: LegacyTestCaseResult;
1823 testResultId?: number;
1824 testRunId?: number;
1825}
1826export interface ResultUpdateRequestModel {
1827 actionResultDeletes: TestActionResultModel[];
1828 actionResults: TestActionResultModel[];
1829 parameterDeletes: TestResultParameterModel[];
1830 parameters: TestResultParameterModel[];
1831 testCaseResult: TestCaseResultUpdateModel;
1832}
1833export interface ResultUpdateResponse {
1834 attachmentIds?: number[];
1835 lastUpdated?: Date;
1836 lastUpdatedBy?: string;
1837 lastUpdatedByName?: string;
1838 maxReservedSubResultId?: number;
1839 revision?: number;
1840 testPlanId?: number;
1841 testResultId?: number;
1842}
1843export interface ResultUpdateResponseModel {
1844 revision: number;
1845}
1846/**
1847 * Test run create details.
1848 */
1849export interface RunCreateModel {
1850 /**
1851 * true if test run is automated, false otherwise. By default it will be false.
1852 */
1853 automated?: boolean;
1854 /**
1855 * An abstracted reference to the build that it belongs.
1856 */
1857 build?: ShallowReference;
1858 /**
1859 * Drop location of the build used for test run.
1860 */
1861 buildDropLocation?: string;
1862 /**
1863 * Flavor of the build used for test run. (E.g: Release, Debug)
1864 */
1865 buildFlavor?: string;
1866 /**
1867 * Platform of the build used for test run. (E.g.: x86, amd64)
1868 */
1869 buildPlatform?: string;
1870 /**
1871 * BuildReference of the test run.
1872 */
1873 buildReference?: BuildConfiguration;
1874 /**
1875 * Comments entered by those analyzing the run.
1876 */
1877 comment?: string;
1878 /**
1879 * Completed date time of the run.
1880 */
1881 completeDate?: string;
1882 /**
1883 * IDs of the test configurations associated with the run.
1884 */
1885 configurationIds: number[];
1886 /**
1887 * Name of the test controller used for automated run.
1888 */
1889 controller?: string;
1890 /**
1891 * Additional properties of test Run. Value of the CustomField cannot be more than 1KB.
1892 */
1893 customTestFields?: CustomTestField[];
1894 /**
1895 * An abstracted reference to DtlAutEnvironment.
1896 */
1897 dtlAutEnvironment?: ShallowReference;
1898 /**
1899 * An abstracted reference to DtlTestEnvironment.
1900 */
1901 dtlTestEnvironment?: ShallowReference;
1902 /**
1903 * Due date and time for test run.
1904 */
1905 dueDate?: string;
1906 environmentDetails?: DtlEnvironmentDetails;
1907 /**
1908 * Error message associated with the run.
1909 */
1910 errorMessage?: string;
1911 /**
1912 * Filter used for discovering the Run.
1913 */
1914 filter?: RunFilter;
1915 /**
1916 * The iteration in which to create the run. Root iteration of the team project will be default
1917 */
1918 iteration?: string;
1919 /**
1920 * Name of the test run.
1921 */
1922 name: string;
1923 /**
1924 * Display name of the owner of the run.
1925 */
1926 owner?: VSSInterfaces.IdentityRef;
1927 /**
1928 * Reference of the pipeline to which this test run belongs. PipelineReference.PipelineId should be equal to RunCreateModel.Build.Id
1929 */
1930 pipelineReference?: PipelineReference;
1931 /**
1932 * An abstracted reference to the plan that it belongs.
1933 */
1934 plan: ShallowReference;
1935 /**
1936 * IDs of the test points to use in the run.
1937 */
1938 pointIds?: number[];
1939 /**
1940 * URI of release environment associated with the run.
1941 */
1942 releaseEnvironmentUri?: string;
1943 /**
1944 * Reference to release associated with test run.
1945 */
1946 releaseReference?: ReleaseReference;
1947 /**
1948 * URI of release associated with the run.
1949 */
1950 releaseUri?: string;
1951 /**
1952 * Run summary for run Type = NoConfigRun.
1953 */
1954 runSummary?: RunSummaryModel[];
1955 /**
1956 * Timespan till the run times out.
1957 */
1958 runTimeout?: any;
1959 /**
1960 * SourceWorkFlow(CI/CD) of the test run.
1961 */
1962 sourceWorkflow?: string;
1963 /**
1964 * Start date time of the run.
1965 */
1966 startDate?: string;
1967 /**
1968 * The state of the run. Type TestRunState Valid states - NotStarted, InProgress, Waiting
1969 */
1970 state?: string;
1971 /**
1972 * Tags to attach with the test run, maximum of 5 tags can be added to run.
1973 */
1974 tags?: TestTag[];
1975 /**
1976 * TestConfigurationMapping of the test run.
1977 */
1978 testConfigurationsMapping?: string;
1979 /**
1980 * ID of the test environment associated with the run.
1981 */
1982 testEnvironmentId?: string;
1983 /**
1984 * An abstracted reference to the test settings resource.
1985 */
1986 testSettings?: ShallowReference;
1987 /**
1988 * Type of the run(RunType) Valid Values : (Unspecified, Normal, Blocking, Web, MtrRunInitiatedFromWeb, RunWithDtlEnv, NoConfigRun)
1989 */
1990 type?: string;
1991}
1992/**
1993 * This class is used to provide the filters used for discovery
1994 */
1995export interface RunFilter {
1996 /**
1997 * filter for the test case sources (test containers)
1998 */
1999 sourceFilter: string;
2000 /**
2001 * filter for the test cases
2002 */
2003 testCaseFilter?: string;
2004}
2005/**
2006 * Test run statistics per outcome.
2007 */
2008export interface RunStatistic {
2009 /**
2010 * Test result count fo the given outcome.
2011 */
2012 count: number;
2013 /**
2014 * Test result outcome
2015 */
2016 outcome: string;
2017 /**
2018 * Test run Resolution State.
2019 */
2020 resolutionState?: TestResolutionState;
2021 /**
2022 * ResultMetadata for the given outcome/count.
2023 */
2024 resultMetadata?: ResultMetadata;
2025 /**
2026 * State of the test run
2027 */
2028 state: string;
2029}
2030/**
2031 * Summary of runs for a pipeline instance.
2032 */
2033export interface RunSummary {
2034 /**
2035 * Total time taken by runs with state completed and NeedInvestigation.
2036 */
2037 duration?: any;
2038 /**
2039 * NoConfig runs count.
2040 */
2041 noConfigRunsCount?: number;
2042 /**
2043 * Runs count by outcome for runs with state completed and NeedInvestigation runs.
2044 */
2045 runSummaryByOutcome?: {
2046 [key: number]: number;
2047 };
2048 /**
2049 * Runs count by state.
2050 */
2051 runSummaryByState?: {
2052 [key: number]: number;
2053 };
2054 /**
2055 * Total runs count.
2056 */
2057 totalRunsCount?: number;
2058}
2059/**
2060 * Run summary for each output type of test.
2061 */
2062export interface RunSummaryModel {
2063 /**
2064 * Total time taken in milliseconds.
2065 */
2066 duration?: number;
2067 /**
2068 * Number of results for Outcome TestOutcome
2069 */
2070 resultCount: number;
2071 /**
2072 * Summary is based on outcome
2073 */
2074 testOutcome: TestOutcome;
2075}
2076export declare enum RunType {
2077 /**
2078 * Only used during an update to preserve the existing value.
2079 */
2080 Unspecified = 0,
2081 /**
2082 * Normal test run.
2083 */
2084 Normal = 1,
2085 /**
2086 * Test run created for the blocked result when a test point is blocked.
2087 */
2088 Blocking = 2,
2089 /**
2090 * Test run created from Web.
2091 */
2092 Web = 4,
2093 /**
2094 * Run initiated from web through MTR
2095 */
2096 MtrRunInitiatedFromWeb = 8,
2097 /**
2098 * These test run would require DTL environment. These could be either of automated or manual test run.
2099 */
2100 RunWithDtlEnv = 16,
2101 /**
2102 * These test run may or may not have published test results but it will have summary like total test, passed test, failed test etc. These are automated tests.
2103 */
2104 NoConfigRun = 32
2105}
2106export interface RunUpdateModel {
2107 /**
2108 * An abstracted reference to the build that it belongs.
2109 */
2110 build?: ShallowReference;
2111 /**
2112 * Drop location of the build used for test run.
2113 */
2114 buildDropLocation?: string;
2115 /**
2116 * Flavor of the build used for test run. (E.g: Release, Debug)
2117 */
2118 buildFlavor?: string;
2119 /**
2120 * Platform of the build used for test run. (E.g.: x86, amd64)
2121 */
2122 buildPlatform?: string;
2123 /**
2124 * Comments entered by those analyzing the run.
2125 */
2126 comment?: string;
2127 /**
2128 * Completed date time of the run.
2129 */
2130 completedDate?: string;
2131 /**
2132 * Name of the test controller used for automated run.
2133 */
2134 controller?: string;
2135 /**
2136 * Additional properties of test Run. Value of the CustomField cannot be more than 1KB.
2137 */
2138 customTestFields?: CustomTestField[];
2139 /**
2140 * true to delete inProgess Results , false otherwise.
2141 */
2142 deleteInProgressResults?: boolean;
2143 /**
2144 * An abstracted reference to DtlAutEnvironment.
2145 */
2146 dtlAutEnvironment?: ShallowReference;
2147 /**
2148 * An abstracted reference to DtlEnvironment.
2149 */
2150 dtlEnvironment?: ShallowReference;
2151 dtlEnvironmentDetails?: DtlEnvironmentDetails;
2152 /**
2153 * Due date and time for test run.
2154 */
2155 dueDate?: string;
2156 /**
2157 * Error message associated with the run.
2158 */
2159 errorMessage?: string;
2160 /**
2161 * The iteration in which to create the run.
2162 */
2163 iteration?: string;
2164 /**
2165 * Log entries associated with the run. Use a comma-separated list of multiple log entry objects. { logEntry }, { logEntry }, ...
2166 */
2167 logEntries?: TestMessageLogDetails[];
2168 /**
2169 * Name of the test run.
2170 */
2171 name?: string;
2172 /**
2173 * URI of release environment associated with the run.
2174 */
2175 releaseEnvironmentUri?: string;
2176 /**
2177 * URI of release associated with the run.
2178 */
2179 releaseUri?: string;
2180 /**
2181 * Run summary for run Type = NoConfigRun.
2182 */
2183 runSummary?: RunSummaryModel[];
2184 /**
2185 * SourceWorkFlow(CI/CD) of the test run.
2186 */
2187 sourceWorkflow?: string;
2188 /**
2189 * Start date time of the run.
2190 */
2191 startedDate?: string;
2192 /**
2193 * The state of the test run Below are the valid values - NotStarted, InProgress, Completed, Aborted, Waiting
2194 */
2195 state?: string;
2196 /**
2197 * The types of sub states for test run.
2198 */
2199 substate?: TestRunSubstate;
2200 /**
2201 * Tags to attach with the test run.
2202 */
2203 tags?: TestTag[];
2204 /**
2205 * ID of the test environment associated with the run.
2206 */
2207 testEnvironmentId?: string;
2208 /**
2209 * An abstracted reference to test setting resource.
2210 */
2211 testSettings?: ShallowReference;
2212}
2213export declare enum Service {
2214 Any = 0,
2215 Tcm = 1,
2216 Tfs = 2
2217}
2218export declare enum SessionResult {
2219 /**
2220 * Default
2221 */
2222 None = 0,
2223 /**
2224 * Session result with Passed
2225 */
2226 Passed = 1,
2227 /**
2228 * Session result with Failed
2229 */
2230 Failed = 2
2231}
2232/**
2233 * SessionSourcePipeline
2234 */
2235export interface SessionSourcePipeline {
2236 /**
2237 * Source pipeline id
2238 */
2239 buildId: number;
2240 /**
2241 * Source pipeline url
2242 */
2243 buildUrl: string;
2244}
2245export declare enum SessionTimelineType {
2246 /**
2247 * Default
2248 */
2249 None = 0,
2250 /**
2251 * Timeline type for Queued status
2252 */
2253 Queued = 1,
2254 /**
2255 * Timeline type for Completed status
2256 */
2257 Completed = 2,
2258 /**
2259 * Timeline type for Started status
2260 */
2261 Started = 3
2262}
2263/**
2264 * An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.
2265 */
2266export interface ShallowReference {
2267 /**
2268 * ID of the resource
2269 */
2270 id?: string;
2271 /**
2272 * Name of the linked resource (definition name, controller name, etc.)
2273 */
2274 name?: string;
2275 /**
2276 * Full http link to the resource
2277 */
2278 url?: string;
2279}
2280export interface ShallowTestCaseResult {
2281 automatedTestName?: string;
2282 automatedTestStorage?: string;
2283 durationInMs?: number;
2284 id?: number;
2285 isReRun?: boolean;
2286 outcome?: string;
2287 owner?: string;
2288 priority?: number;
2289 refId?: number;
2290 runId?: number;
2291 tags?: string[];
2292 testCaseTitle?: string;
2293}
2294/**
2295 * Reference to shared step workitem.
2296 */
2297export interface SharedStepModel {
2298 /**
2299 * WorkItem shared step ID.
2300 */
2301 id: number;
2302 /**
2303 * Shared step workitem revision.
2304 */
2305 revision: number;
2306}
2307/**
2308 * Session source
2309 */
2310export interface Source {
2311 /**
2312 * Source links Valid values for "type" property = (SessionInfo)
2313 */
2314 links?: Link[];
2315 /**
2316 * Source origin system
2317 */
2318 originSystem: string;
2319 /**
2320 * Source session id
2321 */
2322 sessionId: string;
2323 /**
2324 * Source tenant Id
2325 */
2326 tenantId: string;
2327 /**
2328 * Source tenant name
2329 */
2330 tenantName: string;
2331}
2332export interface SourceViewBuildCoverage {
2333 /**
2334 * Build Configuration
2335 */
2336 configuration?: BuildConfiguration;
2337 /**
2338 * Folder Level CoverageDetails
2339 */
2340 folderCoverageData?: FolderCoverageData;
2341}
2342/**
2343 * Stage in pipeline
2344 */
2345export interface StageReference {
2346 /**
2347 * Attempt number of stage
2348 */
2349 attempt?: number;
2350 /**
2351 * Name of the stage. Maximum supported length for name is 256 character.
2352 */
2353 stageName?: string;
2354}
2355/**
2356 * Suite create model
2357 */
2358export interface SuiteCreateModel {
2359 /**
2360 * Name of test suite.
2361 */
2362 name?: string;
2363 /**
2364 * For query based suites, query string that defines the suite.
2365 */
2366 queryString?: string;
2367 /**
2368 * For requirements test suites, the IDs of the requirements.
2369 */
2370 requirementIds?: number[];
2371 /**
2372 * Type of test suite to create. It can have value from DynamicTestSuite, StaticTestSuite and RequirementTestSuite.
2373 */
2374 suiteType?: string;
2375}
2376/**
2377 * A suite entry defines properties for a test suite.
2378 */
2379export interface SuiteEntry {
2380 /**
2381 * Id of child suite in the test suite.
2382 */
2383 childSuiteId?: number;
2384 /**
2385 * Sequence number for the test case or child test suite in the test suite.
2386 */
2387 sequenceNumber?: number;
2388 /**
2389 * Id for the test suite.
2390 */
2391 suiteId?: number;
2392 /**
2393 * Id of a test case in the test suite.
2394 */
2395 testCaseId?: number;
2396}
2397/**
2398 * A model to define sequence of test suite entries in a test suite.
2399 */
2400export interface SuiteEntryUpdateModel {
2401 /**
2402 * Id of the child suite in the test suite.
2403 */
2404 childSuiteId?: number;
2405 /**
2406 * Updated sequence number for the test case or child test suite in the test suite.
2407 */
2408 sequenceNumber?: number;
2409 /**
2410 * Id of the test case in the test suite.
2411 */
2412 testCaseId?: number;
2413}
2414/**
2415 * Option to get details in response
2416 */
2417export declare enum SuiteExpand {
2418 /**
2419 * Include children in response.
2420 */
2421 Children = 1,
2422 /**
2423 * Include default testers in response.
2424 */
2425 DefaultTesters = 2
2426}
2427/**
2428 * Test case for the suite.
2429 */
2430export interface SuiteTestCase {
2431 /**
2432 * Point Assignment for test suite's test case.
2433 */
2434 pointAssignments?: PointAssignment[];
2435 /**
2436 * Test case workItem reference.
2437 */
2438 testCase?: WorkItemReference;
2439}
2440/**
2441 * Test suite update model.
2442 */
2443export interface SuiteTestCaseUpdateModel {
2444 /**
2445 * Shallow reference of configurations for the test cases in the suite.
2446 */
2447 configurations?: ShallowReference[];
2448}
2449/**
2450 * Test suite update model.
2451 */
2452export interface SuiteUpdateModel {
2453 /**
2454 * Shallow reference of default configurations for the suite.
2455 */
2456 defaultConfigurations?: ShallowReference[];
2457 /**
2458 * Shallow reference of test suite.
2459 */
2460 defaultTesters?: ShallowReference[];
2461 /**
2462 * Specifies if the default configurations have to be inherited from the parent test suite in which the test suite is created.
2463 */
2464 inheritDefaultConfigurations?: boolean;
2465 /**
2466 * Test suite name
2467 */
2468 name?: string;
2469 /**
2470 * Shallow reference of the parent.
2471 */
2472 parent?: ShallowReference;
2473 /**
2474 * For query based suites, the new query string.
2475 */
2476 queryString?: string;
2477}
2478export interface TCMPropertyBag2 {
2479 artifactId?: number;
2480 artifactType?: number;
2481 name?: string;
2482 value?: string;
2483}
2484export declare enum TCMServiceDataMigrationStatus {
2485 /**
2486 * Migration Not Started
2487 */
2488 NotStarted = 0,
2489 /**
2490 * Migration InProgress
2491 */
2492 InProgress = 1,
2493 /**
2494 * Migration Completed
2495 */
2496 Completed = 2,
2497 /**
2498 * Migration Failed
2499 */
2500 Failed = 3
2501}
2502export interface TestActionResult {
2503 actionPath?: string;
2504 comment?: string;
2505 creationDate?: Date;
2506 dateCompleted?: Date;
2507 dateStarted?: Date;
2508 duration?: number;
2509 errorMessage?: string;
2510 id?: LegacyTestCaseResultIdentifier;
2511 iterationId?: number;
2512 lastUpdated?: Date;
2513 lastUpdatedBy?: string;
2514 outcome?: number;
2515 sharedStepId?: number;
2516 sharedStepRevision?: number;
2517}
2518export interface TestActionResult2 {
2519 actionPath?: string;
2520 comment?: string;
2521 creationDate?: Date;
2522 dateCompleted?: Date;
2523 dateStarted?: Date;
2524 duration?: number;
2525 errorMessage?: string;
2526 iterationId?: number;
2527 lastUpdated?: Date;
2528 outcome?: number;
2529 sharedStepId?: number;
2530 sharedStepRevision?: number;
2531 testResultId?: number;
2532 testRunId?: number;
2533}
2534/**
2535 * Represents a test step result.
2536 */
2537export interface TestActionResultModel extends TestResultModelBase {
2538 /**
2539 * Path identifier for test step in test case workitem. Note: 1) It is represented in Hexadecimal format with 8 digits for a step. 2) Internally, the step ID value for first step starts with 2 so actionPath = 00000002 step 9, will have an ID = 10 and actionPath = 0000000a step 15, will have an ID =16 and actionPath = 00000010 3) actionPath of shared step is concatenated with the parent step of test case. Example, it would be something of type - 0000000300000001 where 00000003 denotes action path of test step and 00000001 denotes action path for shared step
2540 */
2541 actionPath?: string;
2542 /**
2543 * Iteration ID of test action result.
2544 */
2545 iterationId?: number;
2546 /**
2547 * Reference to shared step workitem.
2548 */
2549 sharedStepModel?: SharedStepModel;
2550 /**
2551 * This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1"
2552 */
2553 stepIdentifier?: string;
2554 /**
2555 * Url of test action result. Deprecated in hosted environment.
2556 */
2557 url?: string;
2558}
2559export interface TestAttachment {
2560 /**
2561 * Attachment type.
2562 */
2563 attachmentType?: AttachmentType;
2564 /**
2565 * Comment associated with attachment.
2566 */
2567 comment?: string;
2568 /**
2569 * Attachment created date.
2570 */
2571 createdDate?: Date;
2572 /**
2573 * Attachment file name
2574 */
2575 fileName?: string;
2576 /**
2577 * ID of the attachment.
2578 */
2579 id: number;
2580 /**
2581 * Attachment size.
2582 */
2583 size?: number;
2584 /**
2585 * Attachment Url.
2586 */
2587 url?: string;
2588}
2589/**
2590 * Reference to test attachment.
2591 */
2592export interface TestAttachmentReference {
2593 /**
2594 * ID of the attachment.
2595 */
2596 id: number;
2597 /**
2598 * Url to download the attachment.
2599 */
2600 url: string;
2601}
2602/**
2603 * Test attachment request model
2604 */
2605export interface TestAttachmentRequestModel {
2606 /**
2607 * Attachment type By Default it will be GeneralAttachment. It can be one of the following type. { GeneralAttachment, AfnStrip, BugFilingData, CodeCoverage, IntermediateCollectorData, RunConfig, TestImpactDetails, TmiTestRunDeploymentFiles, TmiTestRunReverseDeploymentFiles, TmiTestResultDetail, TmiTestRunSummary }
2608 */
2609 attachmentType?: string;
2610 /**
2611 * Comment associated with attachment
2612 */
2613 comment?: string;
2614 /**
2615 * Attachment filename
2616 */
2617 fileName: string;
2618 /**
2619 * Base64 encoded file stream
2620 */
2621 stream: string;
2622}
2623export interface TestAuthoringDetails {
2624 configurationId?: number;
2625 isAutomated?: boolean;
2626 lastUpdated?: Date;
2627 pointId?: number;
2628 priority?: number;
2629 runBy?: string;
2630 state?: TestPointState;
2631 suiteId?: number;
2632 testerId?: string;
2633}
2634export interface TestCaseMetadata2 {
2635 container?: string;
2636 name?: string;
2637 projectId?: string;
2638 testMetadataId?: number;
2639}
2640export interface TestCaseReference2 {
2641 areaId?: number;
2642 automatedTestId?: string;
2643 automatedTestName?: string;
2644 automatedTestNameHash?: number[];
2645 automatedTestStorage?: string;
2646 automatedTestStorageHash?: number[];
2647 automatedTestType?: string;
2648 configurationId?: number;
2649 createdBy?: string;
2650 creationDate?: Date;
2651 lastRefTestRunDate?: Date;
2652 owner?: string;
2653 priority?: number;
2654 projectId?: string;
2655 testCaseId?: number;
2656 testCaseRefId?: number;
2657 testCaseRevision?: number;
2658 testCaseTitle?: string;
2659 testPointId?: number;
2660}
2661/**
2662 * Represents a test result.
2663 */
2664export interface TestCaseResult {
2665 /**
2666 * Test attachment ID of action recording.
2667 */
2668 afnStripId?: number;
2669 /**
2670 * Reference to area path of test.
2671 */
2672 area?: ShallowReference;
2673 /**
2674 * Reference to bugs linked to test result.
2675 */
2676 associatedBugs?: ShallowReference[];
2677 /**
2678 * Attempt
2679 */
2680 attempt?: number;
2681 /**
2682 * ID representing test method in a dll.
2683 */
2684 automatedTestId?: string;
2685 /**
2686 * Fully qualified name of test executed.
2687 */
2688 automatedTestName?: string;
2689 /**
2690 * Container to which test belongs.
2691 */
2692 automatedTestStorage?: string;
2693 /**
2694 * Type of automated test.
2695 */
2696 automatedTestType?: string;
2697 /**
2698 * TypeId of automated test.
2699 */
2700 automatedTestTypeId?: string;
2701 /**
2702 * Bucketing System
2703 */
2704 bucketingSystem?: string;
2705 /**
2706 * Bucket Uid
2707 */
2708 bucketUid?: string;
2709 /**
2710 * Shallow reference to build associated with test result.
2711 */
2712 build?: ShallowReference;
2713 /**
2714 * Reference to build associated with test result.
2715 */
2716 buildReference?: BuildReference;
2717 /**
2718 * Type of build
2719 */
2720 buildType?: string;
2721 /**
2722 * Comment in a test result with maxSize= 1000 chars.
2723 */
2724 comment?: string;
2725 /**
2726 * Time when test execution completed(UTC). Completed date should be greater than StartedDate.
2727 */
2728 completedDate?: Date;
2729 /**
2730 * Machine name where test executed.
2731 */
2732 computerName?: string;
2733 /**
2734 * Reference to test configuration. Type ShallowReference.
2735 */
2736 configuration?: ShallowReference;
2737 /**
2738 * Timestamp when test result created(UTC).
2739 */
2740 createdDate?: Date;
2741 /**
2742 * Additional properties of test result.
2743 */
2744 customFields?: CustomTestField[];
2745 /**
2746 * Dimensions
2747 */
2748 dimensions?: TestResultDimension[];
2749 /**
2750 * Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate
2751 */
2752 durationInMs?: number;
2753 /**
2754 * Error message in test execution.
2755 */
2756 errorMessage?: string;
2757 /**
2758 * Exception Type
2759 */
2760 exceptionType?: string;
2761 /**
2762 * Execution number
2763 */
2764 executionNumber?: number;
2765 /**
2766 * Information when test results started failing.
2767 */
2768 failingSince?: FailingSince;
2769 /**
2770 * Failure type of test result. Valid Value= (Known Issue, New Issue, Regression, Unknown, None)
2771 */
2772 failureType?: string;
2773 /**
2774 * ID of a test result.
2775 */
2776 id?: number;
2777 /**
2778 * boolean that holds whether it is a system issue or not
2779 */
2780 isSystemIssue?: boolean;
2781 /**
2782 * Test result details of test iterations used only for Manual Testing.
2783 */
2784 iterationDetails?: TestIterationDetailsModel[];
2785 /**
2786 * Reference to identity last updated test result.
2787 */
2788 lastUpdatedBy?: VSSInterfaces.IdentityRef;
2789 /**
2790 * Last updated datetime of test result(UTC).
2791 */
2792 lastUpdatedDate?: Date;
2793 /**
2794 * LayoutId
2795 */
2796 layoutUid?: string;
2797 /**
2798 * Links Valid values for "type" property = (MoreInfo, ResultInvestigation, TestInfo)
2799 */
2800 links?: Link[];
2801 /**
2802 * Locale
2803 */
2804 locale?: string;
2805 /**
2806 * Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)
2807 */
2808 outcome?: string;
2809 /**
2810 * Reference to test owner.
2811 */
2812 owner?: VSSInterfaces.IdentityRef;
2813 /**
2814 * Priority of test executed.
2815 */
2816 priority?: number;
2817 /**
2818 * Reference to team project.
2819 */
2820 project?: ShallowReference;
2821 /**
2822 * Shallow reference to release associated with test result.
2823 */
2824 release?: ShallowReference;
2825 /**
2826 * Reference to release associated with test result.
2827 */
2828 releaseReference?: ReleaseReference;
2829 /**
2830 * ResetCount.
2831 */
2832 resetCount?: number;
2833 /**
2834 * Resolution state of test result.
2835 */
2836 resolutionState?: string;
2837 /**
2838 * ID of resolution state.
2839 */
2840 resolutionStateId?: number;
2841 /**
2842 * Hierarchy type of the result, default value of None means its leaf node.
2843 */
2844 resultGroupType?: ResultGroupType;
2845 /**
2846 * Revision number of test result.
2847 */
2848 revision?: number;
2849 /**
2850 * Reference to identity executed the test.
2851 */
2852 runBy?: VSSInterfaces.IdentityRef;
2853 /**
2854 * Stacktrace with maxSize= 1000 chars.
2855 */
2856 stackTrace?: string;
2857 /**
2858 * Time when test execution started(UTC).
2859 */
2860 startedDate?: Date;
2861 /**
2862 * State of test result. Type TestRunState.
2863 */
2864 state?: string;
2865 /**
2866 * List of sub results inside a test result, if ResultGroupType is not None, it holds corresponding type sub results.
2867 */
2868 subResults?: TestSubResult[];
2869 /**
2870 * Reference to the test executed.
2871 */
2872 testCase?: ShallowReference;
2873 /**
2874 * Reference ID of test used by test result. Type TestResultMetaData
2875 */
2876 testCaseReferenceId?: number;
2877 /**
2878 * TestCaseRevision Number.
2879 */
2880 testCaseRevision?: number;
2881 /**
2882 * Name of test.
2883 */
2884 testCaseTitle?: string;
2885 /**
2886 * build phase Valid Value= (SystemSetup, UserSetup, Test, UserCleanup, SystemCleanup)
2887 */
2888 testPhase?: string;
2889 /**
2890 * Reference to test plan test case workitem is part of.
2891 */
2892 testPlan?: ShallowReference;
2893 /**
2894 * Reference to the test point executed.
2895 */
2896 testPoint?: ShallowReference;
2897 /**
2898 * Reference to test run.
2899 */
2900 testRun?: ShallowReference;
2901 /**
2902 * Reference to test suite test case workitem is part of.
2903 */
2904 testSuite?: ShallowReference;
2905 /**
2906 * Topology Id
2907 */
2908 topologyId?: number;
2909 /**
2910 * Url of test result.
2911 */
2912 url?: string;
2913}
2914/**
2915 * Test attachment information in a test iteration.
2916 */
2917export interface TestCaseResultAttachmentModel {
2918 /**
2919 * Path identifier test step in test case workitem.
2920 */
2921 actionPath?: string;
2922 /**
2923 * Attachment ID.
2924 */
2925 id: number;
2926 /**
2927 * Iteration ID.
2928 */
2929 iterationId: number;
2930 /**
2931 * Name of attachment.
2932 */
2933 name: string;
2934 /**
2935 * Attachment size.
2936 */
2937 size: number;
2938 /**
2939 * Url to attachment.
2940 */
2941 url: string;
2942}
2943export interface TestCaseResultIdAndRev {
2944 id?: LegacyTestCaseResultIdentifier;
2945 revision?: number;
2946}
2947/**
2948 * Reference to a test result.
2949 */
2950export interface TestCaseResultIdentifier {
2951 /**
2952 * Test result ID.
2953 */
2954 testResultId: number;
2955 /**
2956 * Test run ID.
2957 */
2958 testRunId: number;
2959}
2960export interface TestCaseResultUpdateModel {
2961 associatedWorkItems?: number[];
2962 automatedTestTypeId?: string;
2963 comment?: string;
2964 completedDate?: string;
2965 computerName?: string;
2966 customFields?: CustomTestField[];
2967 durationInMs?: string;
2968 errorMessage?: string;
2969 failureType?: string;
2970 outcome?: string;
2971 owner?: VSSInterfaces.IdentityRef;
2972 resolutionState?: string;
2973 runBy?: VSSInterfaces.IdentityRef;
2974 stackTrace?: string;
2975 startedDate?: string;
2976 state?: string;
2977 testCasePriority?: string;
2978 testResult?: ShallowReference;
2979}
2980/**
2981 * Test configuration
2982 */
2983export interface TestConfiguration {
2984 /**
2985 * Area of the configuration
2986 */
2987 area?: ShallowReference;
2988 /**
2989 * Description of the configuration
2990 */
2991 description?: string;
2992 /**
2993 * Id of the configuration
2994 */
2995 id: number;
2996 /**
2997 * Is the configuration a default for the test plans
2998 */
2999 isDefault?: boolean;
3000 /**
3001 * Last Updated By Reference
3002 */
3003 lastUpdatedBy?: VSSInterfaces.IdentityRef;
3004 /**
3005 * Last Updated Data
3006 */
3007 lastUpdatedDate?: Date;
3008 /**
3009 * Name of the configuration
3010 */
3011 name: string;
3012 /**
3013 * Project to which the configuration belongs
3014 */
3015 project?: ShallowReference;
3016 /**
3017 * Revision of the configuration
3018 */
3019 revision?: number;
3020 /**
3021 * State of the configuration
3022 */
3023 state?: TestConfigurationState;
3024 /**
3025 * Url of Configuration Resource
3026 */
3027 url?: string;
3028 /**
3029 * Dictionary of Test Variable, Selected Value
3030 */
3031 values?: NameValuePair[];
3032}
3033/**
3034 * Represents the state of an ITestConfiguration object.
3035 */
3036export declare enum TestConfigurationState {
3037 /**
3038 * The configuration can be used for new test runs.
3039 */
3040 Active = 1,
3041 /**
3042 * The configuration has been retired and should not be used for new test runs.
3043 */
3044 Inactive = 2
3045}
3046/**
3047 * Test environment Detail.
3048 */
3049export interface TestEnvironment {
3050 /**
3051 * Test Environment Id.
3052 */
3053 environmentId: string;
3054 /**
3055 * Test Environment Name.
3056 */
3057 environmentName: string;
3058}
3059export interface TestExecutionReportData {
3060 reportData?: DatedTestFieldData[];
3061}
3062export interface TestExtensionField {
3063 field?: TestExtensionFieldDetails;
3064 value?: any;
3065}
3066export interface TestExtensionFieldDetails {
3067 id?: number;
3068 isResultScoped?: boolean;
3069 isRunScoped?: boolean;
3070 isSystemField?: boolean;
3071 name?: string;
3072 type?: SystemData.SqlDbType;
3073}
3074export interface TestFailureDetails {
3075 count?: number;
3076 testResults?: TestCaseResultIdentifier[];
3077}
3078export interface TestFailuresAnalysis {
3079 existingFailures?: TestFailureDetails;
3080 fixedTests?: TestFailureDetails;
3081 newFailures?: TestFailureDetails;
3082 previousContext?: TestResultsContext;
3083}
3084export interface TestFailureType {
3085 id: number;
3086 name: string;
3087 project: ShallowReference;
3088}
3089export interface TestFieldData {
3090 dimensions?: {
3091 [key: string]: any;
3092 };
3093 measure?: number;
3094}
3095export interface TestFieldsEx2 {
3096 fieldId?: number;
3097 fieldName?: string;
3098 fieldType?: number;
3099 isResultScoped?: boolean;
3100 isRunScoped?: boolean;
3101 isSystemField?: boolean;
3102 projectId?: string;
3103}
3104/**
3105 * Test Flaky Identifier
3106 */
3107export interface TestFlakyIdentifier {
3108 /**
3109 * Branch Name where Flakiness has to be Marked/Unmarked
3110 */
3111 branchName: string;
3112 /**
3113 * State for Flakiness
3114 */
3115 isFlaky: boolean;
3116}
3117/**
3118 * Filter to get TestCase result history.
3119 */
3120export interface TestHistoryQuery {
3121 /**
3122 * Automated test name of the TestCase.
3123 */
3124 automatedTestName: string;
3125 /**
3126 * Results to be get for a particular branches.
3127 */
3128 branch?: string;
3129 /**
3130 * Get the results history only for this BuildDefinitionId. This to get used in query GroupBy should be Branch. If this is provided, Branch will have no use.
3131 */
3132 buildDefinitionId?: number;
3133 /**
3134 * It will be filled by server. If not null means there are some results still to be get, and we need to call this REST API with this ContinuousToken. It is not supposed to be created (or altered, if received from server in last batch) by user.
3135 */
3136 continuationToken?: string;
3137 /**
3138 * Group the result on the basis of TestResultGroupBy. This can be Branch, Environment or null(if results are fetched by BuildDefinitionId)
3139 */
3140 groupBy: TestResultGroupBy;
3141 /**
3142 * History to get between time interval MaxCompleteDate and (MaxCompleteDate - TrendDays). Default is current date time.
3143 */
3144 maxCompleteDate?: Date;
3145 /**
3146 * Get the results history only for this ReleaseEnvDefinitionId. This to get used in query GroupBy should be Environment.
3147 */
3148 releaseEnvDefinitionId?: number;
3149 /**
3150 * List of TestResultHistoryForGroup which are grouped by GroupBy
3151 */
3152 resultsForGroup?: TestResultHistoryForGroup[];
3153 /**
3154 * Get the results history only for this testCaseId. This to get used in query to filter the result along with automatedtestname
3155 */
3156 testCaseId?: number;
3157 /**
3158 * Number of days for which history to collect. Maximum supported value is 7 days. Default is 7 days.
3159 */
3160 trendDays?: number;
3161}
3162/**
3163 * Represents a test iteration result.
3164 */
3165export interface TestIterationDetailsModel {
3166 /**
3167 * Test step results in an iteration.
3168 */
3169 actionResults?: TestActionResultModel[];
3170 /**
3171 * Reference to attachments in test iteration result.
3172 */
3173 attachments?: TestCaseResultAttachmentModel[];
3174 /**
3175 * Comment in test iteration result.
3176 */
3177 comment?: string;
3178 /**
3179 * Time when execution completed(UTC).
3180 */
3181 completedDate?: Date;
3182 /**
3183 * Duration of execution.
3184 */
3185 durationInMs?: number;
3186 /**
3187 * Error message in test iteration result execution.
3188 */
3189 errorMessage?: string;
3190 /**
3191 * ID of test iteration result.
3192 */
3193 id?: number;
3194 /**
3195 * Test outcome if test iteration result.
3196 */
3197 outcome?: string;
3198 /**
3199 * Test parameters in an iteration.
3200 */
3201 parameters?: TestResultParameterModel[];
3202 /**
3203 * Time when execution started(UTC).
3204 */
3205 startedDate?: Date;
3206 /**
3207 * Url to test iteration result.
3208 */
3209 url?: string;
3210}
3211/**
3212 * Represents Test Log Result object.
3213 */
3214export interface TestLog {
3215 /**
3216 * Test Log Context run, build
3217 */
3218 logReference: TestLogReference;
3219 /**
3220 * Meta data for Log file
3221 */
3222 metaData?: {
3223 [key: string]: string;
3224 };
3225 /**
3226 * LastUpdatedDate for Log file
3227 */
3228 modifiedOn?: Date;
3229 /**
3230 * Size in Bytes for Log file
3231 */
3232 size?: number;
3233}
3234/**
3235 * Test Log Reference object
3236 */
3237export interface TestLogReference {
3238 /**
3239 * BuildId for test log, if context is build
3240 */
3241 buildId: number;
3242 /**
3243 * FileName for log file
3244 */
3245 filePath: string;
3246 /**
3247 * ReleaseEnvId for test log, if context is Release
3248 */
3249 releaseEnvId?: number;
3250 /**
3251 * ReleaseId for test log, if context is Release
3252 */
3253 releaseId?: number;
3254 /**
3255 * Resultid for test log, if context is run and log is related to result
3256 */
3257 resultId: number;
3258 /**
3259 * runid for test log, if context is run
3260 */
3261 runId: number;
3262 /**
3263 * Test Log Scope
3264 */
3265 scope: TestLogScope;
3266 /**
3267 * SubResultid for test log, if context is run and log is related to subresult
3268 */
3269 subResultId: number;
3270 /**
3271 * Log Type
3272 */
3273 type: TestLogType;
3274}
3275/**
3276 * Test Log Context
3277 */
3278export declare enum TestLogScope {
3279 /**
3280 * Log file is associated with Run, result, subresult
3281 */
3282 Run = 0,
3283 /**
3284 * Log File associated with Build
3285 */
3286 Build = 1,
3287 /**
3288 * Log File associated with Release
3289 */
3290 Release = 2
3291}
3292/**
3293 * Represents Test Log Status object.
3294 */
3295export interface TestLogStatus {
3296 /**
3297 * Exception message
3298 */
3299 exception: string;
3300 /**
3301 * Test Log Status code
3302 */
3303 status: TestLogStatusCode;
3304 /**
3305 * Blob Transfer Error code
3306 */
3307 transferFailureType: string;
3308}
3309/**
3310 * Test Log Status codes.
3311 */
3312export declare enum TestLogStatusCode {
3313 /**
3314 * Operation is successful
3315 */
3316 Success = 0,
3317 /**
3318 * Operation failed
3319 */
3320 Failed = 1,
3321 /**
3322 * Operation failed due to file already exist
3323 */
3324 FileAlreadyExists = 2,
3325 /**
3326 * Invalid input provided by user
3327 */
3328 InvalidInput = 3,
3329 /**
3330 * Invalid file name provided by user
3331 */
3332 InvalidFileName = 4,
3333 /**
3334 * Error occurred while operating on container
3335 */
3336 InvalidContainer = 5,
3337 /**
3338 * Blob Transfer Error
3339 */
3340 TransferFailed = 6,
3341 /**
3342 * TestLogStore feature is not enabled
3343 */
3344 FeatureDisabled = 7,
3345 /**
3346 * Build for which operation is requested does not exist
3347 */
3348 BuildDoesNotExist = 8,
3349 /**
3350 * Run for which operation is requested does not exist
3351 */
3352 RunDoesNotExist = 9,
3353 /**
3354 * Container cannot be created
3355 */
3356 ContainerNotCreated = 10,
3357 /**
3358 * Api is not supported
3359 */
3360 APINotSupported = 11,
3361 /**
3362 * File size is greater than the limitation
3363 */
3364 FileSizeExceeds = 12,
3365 /**
3366 * Container is not found for which operation is requested
3367 */
3368 ContainerNotFound = 13,
3369 /**
3370 * File cannot be found
3371 */
3372 FileNotFound = 14,
3373 /**
3374 * Directory cannot be found
3375 */
3376 DirectoryNotFound = 15,
3377 /**
3378 * Storage capacity exceeded
3379 */
3380 StorageCapacityExceeded = 16
3381}
3382/**
3383 * Attachment metadata for test attachments from LogStore.
3384 */
3385export interface TestLogStoreAttachment {
3386 /**
3387 * Attachment type.
3388 */
3389 attachmentType?: AttachmentType;
3390 /**
3391 * Comment associated with attachment.
3392 */
3393 comment?: string;
3394 /**
3395 * Attachment created date.
3396 */
3397 createdDate?: Date;
3398 /**
3399 * Attachment file name.
3400 */
3401 fileName?: string;
3402 /**
3403 * Attachment size.
3404 */
3405 size?: number;
3406 /**
3407 * Attachment Url.
3408 */
3409 url?: string;
3410}
3411/**
3412 * Reference to test attachment.
3413 */
3414export interface TestLogStoreAttachmentReference {
3415 /**
3416 * Url to download the attachment.
3417 */
3418 url: string;
3419}
3420/**
3421 * Represents Test Log store endpoint details.
3422 */
3423export interface TestLogStoreEndpointDetails {
3424 /**
3425 * Test log store connection Uri.
3426 */
3427 endpointSASUri?: string;
3428 /**
3429 * Test log store endpoint type.
3430 */
3431 endpointType?: TestLogStoreEndpointType;
3432 /**
3433 * Test log store status code
3434 */
3435 status?: TestLogStatusCode;
3436}
3437/**
3438 * Specifies set of possible log store endpoint type.
3439 */
3440export declare enum TestLogStoreEndpointType {
3441 /**
3442 * Endpoint type is scoped to root
3443 */
3444 Root = 1,
3445 /**
3446 * Endpoint type is scoped to file
3447 */
3448 File = 2
3449}
3450/**
3451 * Specifies set of possible operation type on log store.
3452 */
3453export declare enum TestLogStoreOperationType {
3454 /**
3455 * Operation is scoped to read data only.
3456 */
3457 Read = 1,
3458 /**
3459 * Operation is scoped to create data only.
3460 */
3461 Create = 2,
3462 /**
3463 * Operation is scoped to read and create data.
3464 */
3465 ReadAndCreate = 3
3466}
3467/**
3468 * Test Log Types
3469 */
3470export declare enum TestLogType {
3471 /**
3472 * Any gereric attachment.
3473 */
3474 GeneralAttachment = 1,
3475 /**
3476 * Code Coverage files
3477 */
3478 CodeCoverage = 2,
3479 /**
3480 * Test Impact details.
3481 */
3482 TestImpact = 3,
3483 /**
3484 * Temporary files
3485 */
3486 Intermediate = 4,
3487 /**
3488 * Subresult Attachment
3489 */
3490 System = 5,
3491 /**
3492 * merged Coverage file
3493 */
3494 MergedCoverageFile = 6
3495}
3496export interface TestMessageLog2 {
3497 testMessageLogId?: number;
3498}
3499/**
3500 * An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.
3501 */
3502export interface TestMessageLogDetails {
3503 /**
3504 * Date when the resource is created
3505 */
3506 dateCreated?: Date;
3507 /**
3508 * Id of the resource
3509 */
3510 entryId?: number;
3511 /**
3512 * Message of the resource
3513 */
3514 message?: string;
3515}
3516export interface TestMessageLogEntry {
3517 dateCreated?: Date;
3518 entryId?: number;
3519 logLevel?: number;
3520 logUser?: string;
3521 logUserName?: string;
3522 message?: string;
3523 testMessageLogId?: number;
3524}
3525export interface TestMessageLogEntry2 {
3526 dateCreated?: Date;
3527 entryId?: number;
3528 logLevel?: number;
3529 logUser?: string;
3530 message?: string;
3531 testMessageLogId?: number;
3532}
3533export interface TestMethod {
3534 container?: string;
3535 name: string;
3536}
3537/**
3538 * Class representing a reference to an operation.
3539 */
3540export interface TestOperationReference {
3541 id?: string;
3542 status?: string;
3543 url?: string;
3544}
3545/**
3546 * Valid TestOutcome values.
3547 */
3548export declare enum TestOutcome {
3549 /**
3550 * Only used during an update to preserve the existing value.
3551 */
3552 Unspecified = 0,
3553 /**
3554 * Test has not been completed, or the test type does not report pass/failure.
3555 */
3556 None = 1,
3557 /**
3558 * Test was executed w/o any issues.
3559 */
3560 Passed = 2,
3561 /**
3562 * Test was executed, but there were issues. Issues may involve exceptions or failed assertions.
3563 */
3564 Failed = 3,
3565 /**
3566 * Test has completed, but we can't say if it passed or failed. May be used for aborted tests...
3567 */
3568 Inconclusive = 4,
3569 /**
3570 * The test timed out
3571 */
3572 Timeout = 5,
3573 /**
3574 * Test was aborted. This was not caused by a user gesture, but rather by a framework decision.
3575 */
3576 Aborted = 6,
3577 /**
3578 * Test had it chance for been executed but was not, as ITestElement.IsRunnable == false.
3579 */
3580 Blocked = 7,
3581 /**
3582 * Test was not executed. This was caused by a user gesture - e.g. user hit stop button.
3583 */
3584 NotExecuted = 8,
3585 /**
3586 * To be used by Run level results. This is not a failure.
3587 */
3588 Warning = 9,
3589 /**
3590 * There was a system error while we were trying to execute a test.
3591 */
3592 Error = 10,
3593 /**
3594 * Test is Not Applicable for execution.
3595 */
3596 NotApplicable = 11,
3597 /**
3598 * Test is paused.
3599 */
3600 Paused = 12,
3601 /**
3602 * Test is currently executing. Added this for TCM charts
3603 */
3604 InProgress = 13,
3605 /**
3606 * Test is not impacted. Added fot TIA.
3607 */
3608 NotImpacted = 14,
3609 MaxValue = 14
3610}
3611/**
3612 * Test outcome settings
3613 */
3614export interface TestOutcomeSettings {
3615 /**
3616 * Value to configure how test outcomes for the same tests across suites are shown
3617 */
3618 syncOutcomeAcrossSuites?: boolean;
3619}
3620export interface TestParameter2 {
3621 actionPath?: string;
3622 actual?: number[];
3623 creationDate?: Date;
3624 dataType?: number;
3625 dateModified?: Date;
3626 expected?: number[];
3627 iterationId?: number;
3628 parameterName?: string;
3629 testResultId?: number;
3630 testRunId?: number;
3631}
3632/**
3633 * The test plan resource.
3634 */
3635export interface TestPlan {
3636 /**
3637 * Area of the test plan.
3638 */
3639 area?: ShallowReference;
3640 automatedTestEnvironment?: TestEnvironment;
3641 automatedTestSettings?: TestSettings;
3642 /**
3643 * Build to be tested.
3644 */
3645 build?: ShallowReference;
3646 /**
3647 * The Build Definition that generates a build associated with this test plan.
3648 */
3649 buildDefinition?: ShallowReference;
3650 clientUrl: string;
3651 /**
3652 * Description of the test plan.
3653 */
3654 description?: string;
3655 /**
3656 * End date for the test plan.
3657 */
3658 endDate?: Date;
3659 /**
3660 * ID of the test plan.
3661 */
3662 id: number;
3663 /**
3664 * Iteration path of the test plan.
3665 */
3666 iteration: string;
3667 manualTestEnvironment?: TestEnvironment;
3668 manualTestSettings?: TestSettings;
3669 /**
3670 * Name of the test plan.
3671 */
3672 name: string;
3673 /**
3674 * Owner of the test plan.
3675 */
3676 owner?: VSSInterfaces.IdentityRef;
3677 previousBuild?: ShallowReference;
3678 /**
3679 * Project which contains the test plan.
3680 */
3681 project?: ShallowReference;
3682 /**
3683 * Release Environment to be used to deploy the build and run automated tests from this test plan.
3684 */
3685 releaseEnvironmentDefinition?: ReleaseEnvironmentDefinitionReference;
3686 /**
3687 * Revision of the test plan.
3688 */
3689 revision?: number;
3690 /**
3691 * Root test suite of the test plan.
3692 */
3693 rootSuite: ShallowReference;
3694 /**
3695 * Start date for the test plan.
3696 */
3697 startDate?: Date;
3698 /**
3699 * State of the test plan.
3700 */
3701 state?: string;
3702 /**
3703 * Value to configure how same tests across test suites under a test plan need to behave
3704 */
3705 testOutcomeSettings?: TestOutcomeSettings;
3706 updatedBy?: VSSInterfaces.IdentityRef;
3707 updatedDate?: Date;
3708 /**
3709 * URL of the test plan resource.
3710 */
3711 url?: string;
3712}
3713export interface TestPlanCloneRequest {
3714 destinationTestPlan?: TestPlan;
3715 options?: CloneOptions;
3716 suiteIds?: number[];
3717}
3718export interface TestPlanHubData {
3719 selectedSuiteId: number;
3720 testPlan: TestPlan;
3721 testPoints: TestPoint[];
3722 testSuites: TestSuite[];
3723 totalTestPoints: number;
3724}
3725export interface TestPlansWithSelection {
3726 lastSelectedPlan?: number;
3727 lastSelectedSuite?: number;
3728 plans: TestPlan[];
3729}
3730/**
3731 * Test point.
3732 */
3733export interface TestPoint {
3734 /**
3735 * AssignedTo. Type IdentityRef.
3736 */
3737 assignedTo?: VSSInterfaces.IdentityRef;
3738 /**
3739 * Automated.
3740 */
3741 automated?: boolean;
3742 /**
3743 * Comment associated with test point.
3744 */
3745 comment?: string;
3746 /**
3747 * Configuration. Type ShallowReference.
3748 */
3749 configuration: ShallowReference;
3750 /**
3751 * Failure type of test point.
3752 */
3753 failureType?: string;
3754 /**
3755 * ID of the test point.
3756 */
3757 id: number;
3758 /**
3759 * Last date when test point was reset to Active.
3760 */
3761 lastResetToActive?: Date;
3762 /**
3763 * Last resolution state id of test point.
3764 */
3765 lastResolutionStateId?: number;
3766 /**
3767 * Last result of test point. Type ShallowReference.
3768 */
3769 lastResult?: ShallowReference;
3770 /**
3771 * Last result details of test point. Type LastResultDetails.
3772 */
3773 lastResultDetails?: LastResultDetails;
3774 /**
3775 * Last result state of test point.
3776 */
3777 lastResultState?: string;
3778 /**
3779 * LastRun build number of test point.
3780 */
3781 lastRunBuildNumber?: string;
3782 /**
3783 * Last testRun of test point. Type ShallowReference.
3784 */
3785 lastTestRun?: ShallowReference;
3786 /**
3787 * Test point last updated by. Type IdentityRef.
3788 */
3789 lastUpdatedBy?: VSSInterfaces.IdentityRef;
3790 /**
3791 * Last updated date of test point.
3792 */
3793 lastUpdatedDate?: Date;
3794 /**
3795 * Outcome of test point.
3796 */
3797 outcome: string;
3798 /**
3799 * Revision number.
3800 */
3801 revision?: number;
3802 /**
3803 * State of test point.
3804 */
3805 state?: string;
3806 /**
3807 * Suite of test point. Type ShallowReference.
3808 */
3809 suite?: ShallowReference;
3810 /**
3811 * TestCase associated to test point. Type WorkItemReference.
3812 */
3813 testCase: WorkItemReference;
3814 /**
3815 * TestPlan of test point. Type ShallowReference.
3816 */
3817 testPlan?: ShallowReference;
3818 /**
3819 * Test point Url.
3820 */
3821 url: string;
3822 /**
3823 * Work item properties of test point.
3824 */
3825 workItemProperties: any[];
3826}
3827export interface TestPointReference {
3828 id: number;
3829 state?: TestPointState;
3830}
3831export interface TestPointsEvent {
3832 projectName?: string;
3833 testPoints: TestPointReference[];
3834}
3835/**
3836 * Test point query class.
3837 */
3838export interface TestPointsQuery {
3839 /**
3840 * Order by results.
3841 */
3842 orderBy?: string;
3843 /**
3844 * List of test points
3845 */
3846 points?: TestPoint[];
3847 /**
3848 * Filter
3849 */
3850 pointsFilter?: PointsFilter;
3851 /**
3852 * List of workitem fields to get.
3853 */
3854 witFields?: string[];
3855}
3856export declare enum TestPointState {
3857 /**
3858 * Default
3859 */
3860 None = 0,
3861 /**
3862 * The test point needs to be executed in order for the test pass to be considered complete. Either the test has not been run before or the previous run failed.
3863 */
3864 Ready = 1,
3865 /**
3866 * The test has passed successfully and does not need to be re-run for the test pass to be considered complete.
3867 */
3868 Completed = 2,
3869 /**
3870 * The test point needs to be executed but is not able to.
3871 */
3872 NotReady = 3,
3873 /**
3874 * The test is being executed.
3875 */
3876 InProgress = 4,
3877 MaxValue = 4
3878}
3879export interface TestPointsUpdatedEvent extends TestPointsEvent {
3880}
3881/**
3882 * Test Resolution State Details.
3883 */
3884export interface TestResolutionState {
3885 /**
3886 * Test Resolution state Id.
3887 */
3888 id: number;
3889 /**
3890 * Test Resolution State Name.
3891 */
3892 name: string;
3893 project: ShallowReference;
3894}
3895export interface TestResult2 {
3896 afnStripId?: number;
3897 computerName?: string;
3898 creationDate?: Date;
3899 dateCompleted?: Date;
3900 dateStarted?: Date;
3901 effectivePointState?: number;
3902 failureType?: number;
3903 lastUpdated?: Date;
3904 lastUpdatedBy?: string;
3905 outcome?: number;
3906 owner?: string;
3907 projectId?: string;
3908 resetCount?: number;
3909 resolutionStateId?: number;
3910 revision?: number;
3911 runBy?: string;
3912 state?: number;
3913 testCaseRefId?: number;
3914 testResultId?: number;
3915 testRunId?: number;
3916}
3917export interface TestResultAcrossProjectResponse {
3918 projectName?: string;
3919 testResult?: LegacyTestCaseResult;
3920}
3921export interface TestResultAttachment {
3922 actionPath?: string;
3923 attachmentType?: AttachmentType;
3924 comment?: string;
3925 creationDate?: Date;
3926 downloadQueryString?: string;
3927 fileName?: string;
3928 id?: number;
3929 isComplete?: boolean;
3930 iterationId?: number;
3931 length?: number;
3932 sessionId?: number;
3933 testResultId?: number;
3934 testRunId?: number;
3935 tmiRunId?: string;
3936}
3937export interface TestResultAttachmentIdentity {
3938 attachmentId?: number;
3939 sessionId?: number;
3940 testResultId?: number;
3941 testRunId?: number;
3942}
3943export interface TestResultCreateModel {
3944 area?: ShallowReference;
3945 associatedWorkItems?: number[];
3946 automatedTestId?: string;
3947 automatedTestName?: string;
3948 automatedTestStorage?: string;
3949 automatedTestType?: string;
3950 automatedTestTypeId?: string;
3951 comment?: string;
3952 completedDate?: string;
3953 computerName?: string;
3954 configuration?: ShallowReference;
3955 customFields?: CustomTestField[];
3956 durationInMs?: string;
3957 errorMessage?: string;
3958 failureType?: string;
3959 outcome?: string;
3960 owner?: VSSInterfaces.IdentityRef;
3961 resolutionState?: string;
3962 runBy?: VSSInterfaces.IdentityRef;
3963 stackTrace?: string;
3964 startedDate?: string;
3965 state?: string;
3966 testCase?: ShallowReference;
3967 testCasePriority?: string;
3968 testCaseTitle?: string;
3969 testPoint?: ShallowReference;
3970}
3971/**
3972 * Represents dimensions
3973 */
3974export interface TestResultDimension {
3975 /**
3976 * Test Result Dimension Name
3977 */
3978 name?: string;
3979 /**
3980 * Test Result Dimension Value
3981 */
3982 value?: string;
3983}
3984export interface TestResultDocument {
3985 operationReference?: TestOperationReference;
3986 payload?: TestResultPayload;
3987}
3988export interface TestResultFailuresAnalysis {
3989 existingFailures?: TestFailureDetails;
3990 fixedTests?: TestFailureDetails;
3991 newFailures?: TestFailureDetails;
3992}
3993/**
3994 * The test failure type resource
3995 */
3996export interface TestResultFailureType {
3997 /**
3998 * ID of the test failure type
3999 */
4000 id: number;
4001 /**
4002 * Name of the test failure type
4003 */
4004 name: string;
4005}
4006/**
4007 * The test failure type request model
4008 */
4009export interface TestResultFailureTypeRequestModel {
4010 /**
4011 * Name of the test failure type
4012 */
4013 name: string;
4014}
4015/**
4016 * Group by for results
4017 */
4018export declare enum TestResultGroupBy {
4019 /**
4020 * Group the results by branches
4021 */
4022 Branch = 1,
4023 /**
4024 * Group the results by environment
4025 */
4026 Environment = 2
4027}
4028export interface TestResultHistory {
4029 groupByField?: string;
4030 resultsForGroup?: TestResultHistoryDetailsForGroup[];
4031}
4032export interface TestResultHistoryDetailsForGroup {
4033 groupByValue?: any;
4034 latestResult?: TestCaseResult;
4035}
4036/**
4037 * List of test results filtered on the basis of GroupByValue
4038 */
4039export interface TestResultHistoryForGroup {
4040 /**
4041 * Display name of the group.
4042 */
4043 displayName?: string;
4044 /**
4045 * Name or Id of the group identifier by which results are grouped together.
4046 */
4047 groupByValue: string;
4048 /**
4049 * List of results for GroupByValue
4050 */
4051 results?: TestCaseResult[];
4052}
4053/**
4054 * Represents a Meta Data of a test result.
4055 */
4056export interface TestResultMetaData {
4057 /**
4058 * AutomatedTestName of test result.
4059 */
4060 automatedTestName?: string;
4061 /**
4062 * AutomatedTestStorage of test result.
4063 */
4064 automatedTestStorage?: string;
4065 /**
4066 * List of Flaky Identifier for TestCaseReferenceId
4067 */
4068 flakyIdentifiers?: TestFlakyIdentifier[];
4069 /**
4070 * Owner of test result.
4071 */
4072 owner?: string;
4073 /**
4074 * Priority of test result.
4075 */
4076 priority?: number;
4077 /**
4078 * ID of TestCaseReference.
4079 */
4080 testCaseReferenceId?: number;
4081 /**
4082 * TestCaseTitle of test result.
4083 */
4084 testCaseTitle?: string;
4085}
4086/**
4087 * Represents a TestResultMetaData Input
4088 */
4089export interface TestResultMetaDataUpdateInput {
4090 /**
4091 * List of Flaky Identifiers
4092 */
4093 flakyIdentifiers?: TestFlakyIdentifier[];
4094}
4095export interface TestResultMetaDataUpdateResponse {
4096 status?: string;
4097}
4098export interface TestResultModelBase {
4099 /**
4100 * Comment in result.
4101 */
4102 comment?: string;
4103 /**
4104 * Time when execution completed(UTC).
4105 */
4106 completedDate?: Date;
4107 /**
4108 * Duration of execution.
4109 */
4110 durationInMs?: number;
4111 /**
4112 * Error message in result.
4113 */
4114 errorMessage?: string;
4115 /**
4116 * Test outcome of result.
4117 */
4118 outcome?: string;
4119 /**
4120 * Time when execution started(UTC).
4121 */
4122 startedDate?: Date;
4123}
4124export interface TestResultParameter {
4125 actionPath?: string;
4126 actual?: number[];
4127 expected?: number[];
4128 iterationId?: number;
4129 parameterName?: string;
4130 testResultId?: number;
4131 testRunId?: number;
4132}
4133/**
4134 * Test parameter information in a test iteration.
4135 */
4136export interface TestResultParameterModel {
4137 /**
4138 * Test step path where parameter is referenced.
4139 */
4140 actionPath?: string;
4141 /**
4142 * Iteration ID.
4143 */
4144 iterationId?: number;
4145 /**
4146 * Name of parameter.
4147 */
4148 parameterName?: string;
4149 /**
4150 * This is step Id of test case. For shared step, it is step Id of shared step in test case workitem; step Id in shared step. Example: TestCase workitem has two steps: 1) Normal step with Id = 1 2) Shared Step with Id = 2. Inside shared step: a) Normal Step with Id = 1 Value for StepIdentifier for First step: "1" Second step: "2;1"
4151 */
4152 stepIdentifier?: string;
4153 /**
4154 * Url of test parameter. Deprecated in hosted environment.
4155 */
4156 url?: string;
4157 /**
4158 * Value of parameter.
4159 */
4160 value?: string;
4161}
4162export interface TestResultPayload {
4163 comment?: string;
4164 name?: string;
4165 stream?: string;
4166}
4167export interface TestResultReset2 {
4168 auditIdentity?: string;
4169 dateModified?: Date;
4170 projectId?: string;
4171 revision?: number;
4172 testResultId?: number;
4173 testResultRV?: number[];
4174 testRunId?: number;
4175}
4176export interface TestResultsContext {
4177 build?: BuildReference;
4178 contextType?: TestResultsContextType;
4179 pipelineReference?: PipelineReference;
4180 release?: ReleaseReference;
4181}
4182export declare enum TestResultsContextType {
4183 Build = 1,
4184 Release = 2,
4185 Pipeline = 3
4186}
4187export interface TestResultsDetails {
4188 groupByField?: string;
4189 resultsForGroup?: TestResultsDetailsForGroup[];
4190}
4191export interface TestResultsDetailsForGroup {
4192 groupByValue?: any;
4193 results?: TestCaseResult[];
4194 resultsCountByOutcome?: {
4195 [key: number]: AggregatedResultsByOutcome;
4196 };
4197 tags?: string[];
4198}
4199export interface TestResultsEx2 {
4200 bitValue?: boolean;
4201 creationDate?: Date;
4202 dateTimeValue?: Date;
4203 fieldId?: number;
4204 fieldName?: string;
4205 floatValue?: number;
4206 guidValue?: string;
4207 intValue?: number;
4208 projectId?: string;
4209 stringValue?: string;
4210 testResultId?: number;
4211 testRunId?: number;
4212}
4213export interface TestResultsGroupsForBuild {
4214 /**
4215 * BuildId for which groupby result is fetched.
4216 */
4217 buildId: number;
4218 /**
4219 * The group by results
4220 */
4221 fields?: FieldDetailsForTestResults[];
4222}
4223export interface TestResultsGroupsForRelease {
4224 /**
4225 * The group by results
4226 */
4227 fields?: FieldDetailsForTestResults[];
4228 /**
4229 * Release Environment Id for which groupby result is fetched.
4230 */
4231 releaseEnvId?: number;
4232 /**
4233 * ReleaseId for which groupby result is fetched.
4234 */
4235 releaseId: number;
4236}
4237export interface TestResultsQuery {
4238 fields?: string[];
4239 results?: TestCaseResult[];
4240 resultsFilter?: ResultsFilter;
4241}
4242/**
4243 * The TestResultSession is a higher-level container for test results by encapsulating multiple TestRun objects
4244 */
4245export interface TestResultsSession {
4246 /**
4247 * TestResultsSession end time
4248 */
4249 endTimeUTC: Date;
4250 /**
4251 * Id of TestResultsSession
4252 */
4253 id: number;
4254 /**
4255 * TestResultsSession layout
4256 */
4257 layout: any[];
4258 /**
4259 * TestResultsSession name
4260 */
4261 name: string;
4262 /**
4263 * TestResultsSession result
4264 */
4265 result: SessionResult;
4266 /**
4267 * TestResultsSession source pipeline details
4268 */
4269 sessionSourcePipeline: SessionSourcePipeline;
4270 /**
4271 * TestResultsSession source
4272 */
4273 source: Source;
4274 /**
4275 * TestResultsSession start time
4276 */
4277 startTimeUTC: Date;
4278 /**
4279 * TestResultsSession state
4280 */
4281 state: TestResultsSessionState;
4282 /**
4283 * List of test run ids
4284 */
4285 testRuns: number[];
4286 /**
4287 * TestResultsSession timeline
4288 */
4289 timeline?: Timeline<SessionTimelineType>[];
4290 /**
4291 * TestResultsSession type
4292 */
4293 type: string;
4294 /**
4295 * TestResultsSession Uid
4296 */
4297 uid: string;
4298}
4299export declare enum TestResultsSessionState {
4300 /**
4301 * Default
4302 */
4303 None = 0,
4304 /**
4305 * Session state with Running
4306 */
4307 Running = 1,
4308 /**
4309 * Session state with Completed
4310 */
4311 Completed = 2,
4312 /**
4313 * Session state with Waiting
4314 */
4315 Waiting = 3,
4316 /**
4317 * Session state with Cancelled
4318 */
4319 Cancelled = 4
4320}
4321export interface TestResultsSettings {
4322 /**
4323 * IsRequired and EmitDefaultValue are passed as false as if users doesn't pass anything, should not come for serialisation and deserialisation.
4324 */
4325 flakySettings?: FlakySettings;
4326 newTestResultLoggingSettings?: NewTestResultLoggingSettings;
4327}
4328export declare enum TestResultsSettingsType {
4329 /**
4330 * Returns All Test Settings.
4331 */
4332 All = 1,
4333 /**
4334 * Returns Flaky Test Settings.
4335 */
4336 Flaky = 2,
4337 /**
4338 * Returns whether to log new tests or not
4339 */
4340 NewTestLogging = 3
4341}
4342export interface TestResultSummary {
4343 aggregatedResultsAnalysis?: AggregatedResultsAnalysis;
4344 noConfigRunsCount?: number;
4345 teamProject?: TfsCoreInterfaces.TeamProjectReference;
4346 testFailures?: TestFailuresAnalysis;
4347 testResultsContext?: TestResultsContext;
4348 totalRunsCount?: number;
4349}
4350export interface TestResultsUpdateSettings {
4351 /**
4352 * FlakySettings defines Flaky Settings Data.
4353 */
4354 flakySettings?: FlakySettings;
4355 /**
4356 * NewTestResultLoggingSettings defines the setting for logging new test results
4357 */
4358 newTestResultLoggingSettings?: NewTestResultLoggingSettings;
4359}
4360export interface TestResultsWithWatermark {
4361 changedDate?: Date;
4362 pointsResults?: PointsResults2[];
4363 resultId?: number;
4364 runId?: number;
4365}
4366export interface TestResultTrendFilter {
4367 branchNames?: string[];
4368 buildCount?: number;
4369 definitionIds: number[];
4370 envDefinitionIds?: number[];
4371 maxCompleteDate?: Date;
4372 publishContext?: string;
4373 testRunTitles?: string[];
4374 trendDays?: number;
4375}
4376/**
4377 * Test run details.
4378 */
4379export interface TestRun {
4380 /**
4381 * Build associated with this test run.
4382 */
4383 build?: ShallowReference;
4384 /**
4385 * Build configuration details associated with this test run.
4386 */
4387 buildConfiguration?: BuildConfiguration;
4388 /**
4389 * Comments entered by those analyzing the run.
4390 */
4391 comment?: string;
4392 /**
4393 * Completed date time of the run.
4394 */
4395 completedDate?: Date;
4396 /**
4397 * Test Run Controller.
4398 */
4399 controller?: string;
4400 /**
4401 * Test Run CreatedDate.
4402 */
4403 createdDate?: Date;
4404 /**
4405 * List of Custom Fields for TestRun.
4406 */
4407 customFields?: CustomTestField[];
4408 /**
4409 * Drop Location for the test Run.
4410 */
4411 dropLocation?: string;
4412 dtlAutEnvironment?: ShallowReference;
4413 dtlEnvironment?: ShallowReference;
4414 dtlEnvironmentCreationDetails?: DtlEnvironmentDetails;
4415 /**
4416 * Due date and time for test run.
4417 */
4418 dueDate?: Date;
4419 /**
4420 * Error message associated with the run.
4421 */
4422 errorMessage?: string;
4423 filter?: RunFilter;
4424 /**
4425 * ID of the test run.
4426 */
4427 id: number;
4428 /**
4429 * Number of Incomplete Tests.
4430 */
4431 incompleteTests?: number;
4432 /**
4433 * true if test run is automated, false otherwise.
4434 */
4435 isAutomated: boolean;
4436 /**
4437 * The iteration to which the run belongs.
4438 */
4439 iteration?: string;
4440 /**
4441 * Team foundation ID of the last updated the test run.
4442 */
4443 lastUpdatedBy?: VSSInterfaces.IdentityRef;
4444 /**
4445 * Last updated date and time
4446 */
4447 lastUpdatedDate?: Date;
4448 /**
4449 * Name of the test run.
4450 */
4451 name: string;
4452 /**
4453 * Number of Not Applicable Tests.
4454 */
4455 notApplicableTests?: number;
4456 /**
4457 * Team Foundation ID of the owner of the runs.
4458 */
4459 owner?: VSSInterfaces.IdentityRef;
4460 /**
4461 * Number of passed tests in the run
4462 */
4463 passedTests?: number;
4464 /**
4465 * Phase/State for the testRun.
4466 */
4467 phase?: string;
4468 /**
4469 * Reference of the pipeline to which this test run belongs.
4470 */
4471 pipelineReference?: PipelineReference;
4472 /**
4473 * Test plan associated with this test run.
4474 */
4475 plan?: ShallowReference;
4476 /**
4477 * Post Process State.
4478 */
4479 postProcessState?: string;
4480 /**
4481 * Project associated with this run.
4482 */
4483 project?: ShallowReference;
4484 /**
4485 * Release Reference for the Test Run.
4486 */
4487 release?: ReleaseReference;
4488 /**
4489 * Release Environment Uri for TestRun.
4490 */
4491 releaseEnvironmentUri?: string;
4492 /**
4493 * Release Uri for TestRun.
4494 */
4495 releaseUri?: string;
4496 revision?: number;
4497 /**
4498 * RunSummary by outcome.
4499 */
4500 runStatistics?: RunStatistic[];
4501 /**
4502 * Start date time of the run.
4503 */
4504 startedDate?: Date;
4505 /**
4506 * The state of the run. Type TestRunState Valid states - Unspecified ,NotStarted, InProgress, Completed, Waiting, Aborted, NeedsInvestigation
4507 */
4508 state?: string;
4509 /**
4510 * TestRun Substate.
4511 */
4512 substate?: TestRunSubstate;
4513 /**
4514 * Tags attached with this test run.
4515 */
4516 tags?: TestTag[];
4517 /**
4518 * Test environment associated with the run.
4519 */
4520 testEnvironment?: TestEnvironment;
4521 testMessageLogId?: number;
4522 testSettings?: ShallowReference;
4523 /**
4524 * Total tests in the run
4525 */
4526 totalTests?: number;
4527 /**
4528 * Number of failed tests in the run.
4529 */
4530 unanalyzedTests?: number;
4531 /**
4532 * Url of the test run
4533 */
4534 url: string;
4535 /**
4536 * Web Access Url for TestRun.
4537 */
4538 webAccessUrl?: string;
4539}
4540export interface TestRun2 {
4541 buildConfigurationId?: number;
4542 buildNumber?: string;
4543 comment?: string;
4544 completeDate?: Date;
4545 controller?: string;
4546 coverageId?: number;
4547 creationDate?: Date;
4548 deletedOn?: Date;
4549 dropLocation?: string;
4550 dueDate?: Date;
4551 errorMessage?: string;
4552 incompleteTests?: number;
4553 isAutomated?: boolean;
4554 isBvt?: boolean;
4555 isMigrated?: boolean;
4556 iterationId?: number;
4557 lastUpdated?: Date;
4558 lastUpdatedBy?: string;
4559 legacySharePath?: string;
4560 maxReservedResultId?: number;
4561 notApplicableTests?: number;
4562 owner?: string;
4563 passedTests?: number;
4564 postProcessState?: number;
4565 projectId?: string;
4566 publicTestSettingsId?: number;
4567 releaseEnvironmentUri?: string;
4568 releaseUri?: string;
4569 revision?: number;
4570 startDate?: Date;
4571 state?: number;
4572 testEnvironmentId?: string;
4573 testMessageLogId?: number;
4574 testPlanId?: number;
4575 testRunContextId?: number;
4576 testRunId?: number;
4577 testSettingsId?: number;
4578 title?: string;
4579 totalTests?: number;
4580 type?: number;
4581 unanalyzedTests?: number;
4582 version?: number;
4583}
4584export interface TestRunCanceledEvent extends TestRunEvent {
4585}
4586export interface TestRunContext2 {
4587 buildRefId?: number;
4588 projectId?: string;
4589 releaseRefId?: number;
4590 sourceWorkflow?: string;
4591 testRunContextId?: number;
4592}
4593/**
4594 * Test Run Code Coverage Details
4595 */
4596export interface TestRunCoverage {
4597 /**
4598 * Last Error
4599 */
4600 lastError?: string;
4601 /**
4602 * List of Modules Coverage
4603 */
4604 modules?: ModuleCoverage[];
4605 /**
4606 * State
4607 */
4608 state?: string;
4609 /**
4610 * Reference of test Run.
4611 */
4612 testRun?: ShallowReference;
4613}
4614export interface TestRunCreatedEvent extends TestRunEvent {
4615}
4616export interface TestRunEvent {
4617 testRun: TestRun;
4618}
4619export interface TestRunEx2 {
4620 bitValue?: boolean;
4621 createdDate?: Date;
4622 dateTimeValue?: Date;
4623 fieldId?: number;
4624 fieldName?: string;
4625 floatValue?: number;
4626 guidValue?: string;
4627 intValue?: number;
4628 projectId?: string;
4629 stringValue?: string;
4630 testRunId?: number;
4631}
4632export interface TestRunExtended2 {
4633 autEnvironmentUrl?: string;
4634 csmContent?: string;
4635 csmParameters?: string;
4636 projectId?: string;
4637 sourceFilter?: string;
4638 subscriptionName?: string;
4639 substate?: number;
4640 testCaseFilter?: string;
4641 testEnvironmentUrl?: string;
4642 testRunId?: number;
4643}
4644/**
4645 * The types of outcomes for test run.
4646 */
4647export declare enum TestRunOutcome {
4648 /**
4649 * Run with zero failed tests and has at least one impacted test
4650 */
4651 Passed = 0,
4652 /**
4653 * Run with at-least one failed test.
4654 */
4655 Failed = 1,
4656 /**
4657 * Run with no impacted tests.
4658 */
4659 NotImpacted = 2,
4660 /**
4661 * Runs with All tests in other category.
4662 */
4663 Others = 3
4664}
4665/**
4666 * The types of publish context for run.
4667 */
4668export declare enum TestRunPublishContext {
4669 /**
4670 * Run is published for Build Context.
4671 */
4672 Build = 1,
4673 /**
4674 * Run is published for Release Context.
4675 */
4676 Release = 2,
4677 /**
4678 * Run is published for any Context.
4679 */
4680 All = 3
4681}
4682export interface TestRunStartedEvent extends TestRunEvent {
4683}
4684/**
4685 * The types of states for test run.
4686 */
4687export declare enum TestRunState {
4688 /**
4689 * Only used during an update to preserve the existing value.
4690 */
4691 Unspecified = 0,
4692 /**
4693 * The run is still being created. No tests have started yet.
4694 */
4695 NotStarted = 1,
4696 /**
4697 * Tests are running.
4698 */
4699 InProgress = 2,
4700 /**
4701 * All tests have completed or been skipped.
4702 */
4703 Completed = 3,
4704 /**
4705 * Run is stopped and remaining tests have been aborted
4706 */
4707 Aborted = 4,
4708 /**
4709 * Run is currently initializing This is a legacy state and should not be used any more
4710 */
4711 Waiting = 5,
4712 /**
4713 * Run requires investigation because of a test point failure This is a legacy state and should not be used any more
4714 */
4715 NeedsInvestigation = 6
4716}
4717/**
4718 * Test run statistics.
4719 */
4720export interface TestRunStatistic {
4721 run: ShallowReference;
4722 runStatistics?: RunStatistic[];
4723}
4724/**
4725 * The types of sub states for test run. It gives the user more info about the test run beyond the high level test run state
4726 */
4727export declare enum TestRunSubstate {
4728 /**
4729 * Run with noState.
4730 */
4731 None = 0,
4732 /**
4733 * Run state while Creating Environment.
4734 */
4735 CreatingEnvironment = 1,
4736 /**
4737 * Run state while Running Tests.
4738 */
4739 RunningTests = 2,
4740 /**
4741 * Run state while Creating Environment.
4742 */
4743 CanceledByUser = 3,
4744 /**
4745 * Run state when it is Aborted By the System.
4746 */
4747 AbortedBySystem = 4,
4748 /**
4749 * Run state when run has timedOut.
4750 */
4751 TimedOut = 5,
4752 /**
4753 * Run state while Pending Analysis.
4754 */
4755 PendingAnalysis = 6,
4756 /**
4757 * Run state after being Analysed.
4758 */
4759 Analyzed = 7,
4760 /**
4761 * Run state when cancellation is in Progress.
4762 */
4763 CancellationInProgress = 8
4764}
4765export interface TestRunSummary2 {
4766 isRerun?: boolean;
4767 projectId?: string;
4768 resultCount?: number;
4769 resultDuration?: number;
4770 runDuration?: number;
4771 testOutcome?: number;
4772 testRunCompletedDate?: Date;
4773 testRunContextId?: number;
4774 testRunId?: number;
4775 testRunStatsId?: number;
4776}
4777export interface TestRunWithDtlEnvEvent extends TestRunEvent {
4778 configurationIds: number[];
4779 mappedTestRunEventType: string;
4780 runTimeout: any;
4781 testConfigurationsMapping: string;
4782}
4783/**
4784 * Test Session
4785 */
4786export interface TestSession {
4787 /**
4788 * Area path of the test session
4789 */
4790 area?: ShallowReference;
4791 /**
4792 * Comments in the test session
4793 */
4794 comment?: string;
4795 /**
4796 * Duration of the session
4797 */
4798 endDate?: Date;
4799 /**
4800 * Id of the test session
4801 */
4802 id: number;
4803 /**
4804 * Last Updated By Reference
4805 */
4806 lastUpdatedBy?: VSSInterfaces.IdentityRef;
4807 /**
4808 * Last updated date
4809 */
4810 lastUpdatedDate?: Date;
4811 /**
4812 * Owner of the test session
4813 */
4814 owner?: VSSInterfaces.IdentityRef;
4815 /**
4816 * Project to which the test session belongs
4817 */
4818 project?: ShallowReference;
4819 /**
4820 * Generic store for test session data
4821 */
4822 propertyBag?: PropertyBag;
4823 /**
4824 * Revision of the test session
4825 */
4826 revision?: number;
4827 /**
4828 * Source of the test session
4829 */
4830 source?: TestSessionSource;
4831 /**
4832 * Start date
4833 */
4834 startDate?: Date;
4835 /**
4836 * State of the test session
4837 */
4838 state?: TestSessionState;
4839 /**
4840 * Title of the test session
4841 */
4842 title: string;
4843 /**
4844 * Url of Test Session Resource
4845 */
4846 url?: string;
4847}
4848export interface TestSessionEnvironment {
4849 /**
4850 * Environment display name
4851 */
4852 displayName: string;
4853 /**
4854 * Processor architecture
4855 */
4856 processorArchitecture: string;
4857}
4858export interface TestSessionExploredWorkItemReference extends TestSessionWorkItemReference {
4859 /**
4860 * Workitem references of workitems filed as a part of the current workitem exploration.
4861 */
4862 associatedWorkItems?: TestSessionWorkItemReference[];
4863 /**
4864 * Time when exploration of workitem ended.
4865 */
4866 endTime?: Date;
4867 /**
4868 * Time when explore of workitem was started.
4869 */
4870 startTime?: Date;
4871}
4872/**
4873 * Notifications for the TestResults Session
4874 */
4875export interface TestSessionNotification {
4876 /**
4877 * Notification Body
4878 */
4879 body: string;
4880 /**
4881 * Notification Severity Valid values = (Informational, Warning, Error, Critical)
4882 */
4883 severity: string;
4884 /**
4885 * Notification Title
4886 */
4887 title: string;
4888}
4889/**
4890 * Represents the source from which the test session was created
4891 */
4892export declare enum TestSessionSource {
4893 /**
4894 * Source of test session uncertain as it is stale
4895 */
4896 Unknown = 0,
4897 /**
4898 * The session was created from Microsoft Test Manager exploratory desktop tool.
4899 */
4900 XTDesktop = 1,
4901 /**
4902 * The session was created from feedback client.
4903 */
4904 FeedbackDesktop = 2,
4905 /**
4906 * The session was created from browser extension.
4907 */
4908 XTWeb = 3,
4909 /**
4910 * The session was created from browser extension.
4911 */
4912 FeedbackWeb = 4,
4913 /**
4914 * The session was created from web access using Microsoft Test Manager exploratory desktop tool.
4915 */
4916 XTDesktop2 = 5,
4917 /**
4918 * To show sessions from all supported sources.
4919 */
4920 SessionInsightsForAll = 6
4921}
4922/**
4923 * Represents the state of the test session.
4924 */
4925export declare enum TestSessionState {
4926 /**
4927 * Only used during an update to preserve the existing value.
4928 */
4929 Unspecified = 0,
4930 /**
4931 * The session is still being created.
4932 */
4933 NotStarted = 1,
4934 /**
4935 * The session is running.
4936 */
4937 InProgress = 2,
4938 /**
4939 * The session has paused.
4940 */
4941 Paused = 3,
4942 /**
4943 * The session has completed.
4944 */
4945 Completed = 4,
4946 /**
4947 * This is required for Feedback session which are declined
4948 */
4949 Declined = 5
4950}
4951export interface TestSessionWorkItemReference {
4952 /**
4953 * Id of the workitem
4954 */
4955 id: number;
4956 /**
4957 * Type of the workitem
4958 */
4959 type?: string;
4960}
4961/**
4962 * Represents the test settings of the run. Used to create test settings and fetch test settings
4963 */
4964export interface TestSettings {
4965 /**
4966 * Area path required to create test settings
4967 */
4968 areaPath?: string;
4969 /**
4970 * Description of the test settings. Used in create test settings.
4971 */
4972 description?: string;
4973 /**
4974 * Indicates if the tests settings is public or private.Used in create test settings.
4975 */
4976 isPublic?: boolean;
4977 /**
4978 * Xml string of machine roles. Used in create test settings.
4979 */
4980 machineRoles?: string;
4981 /**
4982 * Test settings content.
4983 */
4984 testSettingsContent: string;
4985 /**
4986 * Test settings id.
4987 */
4988 testSettingsId?: number;
4989 /**
4990 * Test settings name.
4991 */
4992 testSettingsName: string;
4993}
4994/**
4995 * Represents the test settings of the run. Used to create test settings and fetch test settings
4996 */
4997export interface TestSettings2 {
4998 /**
4999 * Area path required to create test settings
5000 */
5001 areaPath?: string;
5002 createdBy?: VSSInterfaces.IdentityRef;
5003 createdDate?: Date;
5004 /**
5005 * Description of the test settings. Used in create test settings.
5006 */
5007 description?: string;
5008 /**
5009 * Indicates if the tests settings is public or private.Used in create test settings.
5010 */
5011 isPublic?: boolean;
5012 lastUpdatedBy?: VSSInterfaces.IdentityRef;
5013 lastUpdatedDate?: Date;
5014 /**
5015 * Xml string of machine roles. Used in create test settings.
5016 */
5017 machineRoles?: string;
5018 /**
5019 * Test settings content.
5020 */
5021 testSettingsContent: string;
5022 /**
5023 * Test settings id.
5024 */
5025 testSettingsId?: number;
5026 /**
5027 * Test settings name.
5028 */
5029 testSettingsName: string;
5030}
5031export interface TestSettingsMachineRole {
5032 isExecution?: boolean;
5033 name?: string;
5034}
5035/**
5036 * Represents a sub result of a test result.
5037 */
5038export interface TestSubResult {
5039 /**
5040 * Comment in sub result.
5041 */
5042 comment?: string;
5043 /**
5044 * Time when test execution completed(UTC).
5045 */
5046 completedDate?: Date;
5047 /**
5048 * Machine where test executed.
5049 */
5050 computerName?: string;
5051 /**
5052 * Reference to test configuration.
5053 */
5054 configuration?: ShallowReference;
5055 /**
5056 * Additional properties of sub result.
5057 */
5058 customFields?: CustomTestField[];
5059 /**
5060 * Name of sub result.
5061 */
5062 displayName?: string;
5063 /**
5064 * Duration of test execution.
5065 */
5066 durationInMs?: number;
5067 /**
5068 * Error message in sub result.
5069 */
5070 errorMessage?: string;
5071 /**
5072 * ID of sub result.
5073 */
5074 id?: number;
5075 /**
5076 * Time when result last updated(UTC).
5077 */
5078 lastUpdatedDate?: Date;
5079 /**
5080 * Outcome of sub result.
5081 */
5082 outcome?: string;
5083 /**
5084 * Immediate parent ID of sub result.
5085 */
5086 parentId?: number;
5087 /**
5088 * Hierarchy type of the result, default value of None means its leaf node.
5089 */
5090 resultGroupType?: ResultGroupType;
5091 /**
5092 * Index number of sub result.
5093 */
5094 sequenceId?: number;
5095 /**
5096 * Stacktrace.
5097 */
5098 stackTrace?: string;
5099 /**
5100 * Time when test execution started(UTC).
5101 */
5102 startedDate?: Date;
5103 /**
5104 * List of sub results inside a sub result, if ResultGroupType is not None, it holds corresponding type sub results.
5105 */
5106 subResults?: TestSubResult[];
5107 /**
5108 * Reference to test result.
5109 */
5110 testResult?: TestCaseResultIdentifier;
5111 /**
5112 * Url of sub result.
5113 */
5114 url?: string;
5115}
5116/**
5117 * Test suite
5118 */
5119export interface TestSuite {
5120 /**
5121 * Area uri of the test suite.
5122 */
5123 areaUri?: string;
5124 /**
5125 * Child test suites of current test suite.
5126 */
5127 children?: TestSuite[];
5128 /**
5129 * Test suite default configuration.
5130 */
5131 defaultConfigurations?: ShallowReference[];
5132 /**
5133 * Test suite default testers.
5134 */
5135 defaultTesters?: ShallowReference[];
5136 /**
5137 * Id of test suite.
5138 */
5139 id: number;
5140 /**
5141 * Default configuration was inherited or not.
5142 */
5143 inheritDefaultConfigurations?: boolean;
5144 /**
5145 * Last error for test suite.
5146 */
5147 lastError?: string;
5148 /**
5149 * Last populated date.
5150 */
5151 lastPopulatedDate?: Date;
5152 /**
5153 * IdentityRef of user who has updated test suite recently.
5154 */
5155 lastUpdatedBy?: VSSInterfaces.IdentityRef;
5156 /**
5157 * Last update date.
5158 */
5159 lastUpdatedDate?: Date;
5160 /**
5161 * Name of test suite.
5162 */
5163 name: string;
5164 /**
5165 * Test suite parent shallow reference.
5166 */
5167 parent?: ShallowReference;
5168 /**
5169 * Test plan to which the test suite belongs.
5170 */
5171 plan: ShallowReference;
5172 /**
5173 * Test suite project shallow reference.
5174 */
5175 project?: ShallowReference;
5176 /**
5177 * Test suite query string, for dynamic suites.
5178 */
5179 queryString?: string;
5180 /**
5181 * Test suite requirement id.
5182 */
5183 requirementId?: number;
5184 /**
5185 * Test suite revision.
5186 */
5187 revision?: number;
5188 /**
5189 * State of test suite.
5190 */
5191 state?: string;
5192 /**
5193 * List of shallow reference of suites.
5194 */
5195 suites?: ShallowReference[];
5196 /**
5197 * Test suite type.
5198 */
5199 suiteType?: string;
5200 /**
5201 * Test cases count.
5202 */
5203 testCaseCount?: number;
5204 /**
5205 * Test case url.
5206 */
5207 testCasesUrl?: string;
5208 /**
5209 * Used in tree view. If test suite is root suite then, it is name of plan otherwise title of the suite.
5210 */
5211 text?: string;
5212 /**
5213 * Url of test suite.
5214 */
5215 url?: string;
5216}
5217/**
5218 * Test suite clone request
5219 */
5220export interface TestSuiteCloneRequest {
5221 /**
5222 * Clone options for cloning the test suite.
5223 */
5224 cloneOptions?: CloneOptions;
5225 /**
5226 * Suite id under which, we have to clone the suite.
5227 */
5228 destinationSuiteId?: number;
5229 /**
5230 * Destination suite project name.
5231 */
5232 destinationSuiteProjectName?: string;
5233}
5234export interface TestSummaryForWorkItem {
5235 summary?: AggregatedDataForResultTrend;
5236 workItem: WorkItemReference;
5237}
5238/**
5239 * Tag attached to a run or result.
5240 */
5241export interface TestTag {
5242 /**
5243 * Name of the tag, alphanumeric value less than 30 chars
5244 */
5245 name: string;
5246}
5247/**
5248 * Test tag summary for build or release grouped by test run.
5249 */
5250export interface TestTagSummary {
5251 /**
5252 * Dictionary which contains tags associated with a test run.
5253 */
5254 tagsGroupByTestArtifact?: {
5255 [key: number]: TestTag[];
5256 };
5257}
5258/**
5259 * Tags to update to a run or result.
5260 */
5261export interface TestTagsUpdateModel {
5262 tags?: {
5263 key: OperationType;
5264 value: TestTag[];
5265 }[];
5266}
5267export interface TestToWorkItemLinks {
5268 test: TestMethod;
5269 workItems?: WorkItemReference[];
5270}
5271export interface TestVariable {
5272 /**
5273 * Description of the test variable
5274 */
5275 description?: string;
5276 /**
5277 * Id of the test variable
5278 */
5279 id: number;
5280 /**
5281 * Name of the test variable
5282 */
5283 name: string;
5284 /**
5285 * Project to which the test variable belongs
5286 */
5287 project?: ShallowReference;
5288 /**
5289 * Revision
5290 */
5291 revision?: number;
5292 /**
5293 * Url of the test variable
5294 */
5295 url?: string;
5296 /**
5297 * List of allowed values
5298 */
5299 values?: string[];
5300}
5301/**
5302 * Timeline
5303 */
5304export interface Timeline<T> {
5305 /**
5306 * Timeline display name
5307 */
5308 display: string;
5309 /**
5310 * Timeline timestamp
5311 */
5312 timestampUTC: Date;
5313 /**
5314 * Timeline type
5315 */
5316 type: T;
5317}
5318export interface UpdatedProperties {
5319 id?: number;
5320 lastUpdated?: Date;
5321 lastUpdatedBy?: string;
5322 lastUpdatedByName?: string;
5323 revision?: number;
5324}
5325export interface UpdateTestRunRequest {
5326 attachmentsToAdd?: TestResultAttachment[];
5327 attachmentsToDelete?: TestResultAttachmentIdentity[];
5328 projectName?: string;
5329 shouldHyderate?: boolean;
5330 testRun?: LegacyTestRun;
5331}
5332export interface UpdateTestRunResponse {
5333 attachmentIds?: number[];
5334 updatedProperties?: UpdatedProperties;
5335}
5336export interface UploadAttachmentsRequest {
5337 attachments?: HttpPostedTcmAttachment[];
5338 requestParams?: {
5339 [key: string]: string;
5340 };
5341}
5342/**
5343 * WorkItem reference Details.
5344 */
5345export interface WorkItemReference {
5346 /**
5347 * WorkItem Id.
5348 */
5349 id?: string;
5350 /**
5351 * WorkItem Name.
5352 */
5353 name?: string;
5354 /**
5355 * WorkItem Type.
5356 */
5357 type?: string;
5358 /**
5359 * WorkItem Url. Valid Values : (Bug, Task, User Story, Test Case)
5360 */
5361 url?: string;
5362 /**
5363 * WorkItem WebUrl.
5364 */
5365 webUrl?: string;
5366}
5367export interface WorkItemToTestLinks {
5368 executedIn?: Service;
5369 tests?: TestMethod[];
5370 workItem: WorkItemReference;
5371}
5372export declare var TypeInfo: {
5373 AfnStrip: any;
5374 AggregatedDataForResultTrend: any;
5375 AggregatedResultDetailsByOutcome: any;
5376 AggregatedResultsAnalysis: any;
5377 AggregatedResultsByOutcome: any;
5378 AggregatedRunsByOutcome: any;
5379 AggregatedRunsByState: any;
5380 AttachmentType: {
5381 enumValues: {
5382 generalAttachment: number;
5383 afnStrip: number;
5384 bugFilingData: number;
5385 codeCoverage: number;
5386 intermediateCollectorData: number;
5387 runConfig: number;
5388 testImpactDetails: number;
5389 tmiTestRunDeploymentFiles: number;
5390 tmiTestRunReverseDeploymentFiles: number;
5391 tmiTestResultDetail: number;
5392 tmiTestRunSummary: number;
5393 consoleLog: number;
5394 };
5395 };
5396 BatchResponse: any;
5397 BuildConfiguration: any;
5398 BuildCoverage: any;
5399 BuildReference2: any;
5400 BulkResultUpdateRequest: any;
5401 CloneOperationInformation: any;
5402 CloneOperationState: {
5403 enumValues: {
5404 failed: number;
5405 inProgress: number;
5406 queued: number;
5407 succeeded: number;
5408 };
5409 };
5410 CodeCoverageSummary: any;
5411 Coverage2: any;
5412 CoverageDetailedSummaryStatus: {
5413 enumValues: {
5414 none: number;
5415 inProgress: number;
5416 finalized: number;
5417 pending: number;
5418 updateRequestQueued: number;
5419 noModulesFound: number;
5420 numberOfFilesExceeded: number;
5421 noInputFiles: number;
5422 buildCancelled: number;
5423 failedJobs: number;
5424 moduleMergeJobTimeout: number;
5425 codeCoverageSuccess: number;
5426 invalidBuildConfiguration: number;
5427 coverageAnalyzerBuildNotFound: number;
5428 failedToRequeue: number;
5429 buildBailedOut: number;
5430 noCodeCoverageTask: number;
5431 mergeJobFailed: number;
5432 mergeInvokerJobFailed: number;
5433 monitorJobFailed: number;
5434 moduleMergeInvokerJobTimeout: number;
5435 monitorJobTimeout: number;
5436 invalidCoverageInput: number;
5437 };
5438 };
5439 CoverageQueryFlags: {
5440 enumValues: {
5441 modules: number;
5442 functions: number;
5443 blockData: number;
5444 };
5445 };
5446 CoverageStatus: {
5447 enumValues: {
5448 covered: number;
5449 notCovered: number;
5450 partiallyCovered: number;
5451 };
5452 };
5453 CoverageSummaryStatus: {
5454 enumValues: {
5455 none: number;
5456 inProgress: number;
5457 completed: number;
5458 finalized: number;
5459 pending: number;
5460 updateRequestQueued: number;
5461 };
5462 };
5463 CreateTestMessageLogEntryRequest: any;
5464 CreateTestResultsRequest: any;
5465 CreateTestRunRequest: any;
5466 CustomTestFieldDefinition: any;
5467 CustomTestFieldScope: {
5468 enumValues: {
5469 none: number;
5470 testRun: number;
5471 testResult: number;
5472 system: number;
5473 all: number;
5474 };
5475 };
5476 CustomTestFieldType: {
5477 enumValues: {
5478 bit: number;
5479 dateTime: number;
5480 int: number;
5481 float: number;
5482 string: number;
5483 guid: number;
5484 };
5485 };
5486 DatedTestFieldData: any;
5487 FailingSince: any;
5488 FetchTestResultsResponse: any;
5489 FlakyDetection: any;
5490 FlakyDetectionType: {
5491 enumValues: {
5492 custom: number;
5493 system: number;
5494 };
5495 };
5496 FlakySettings: any;
5497 LastResultDetails: any;
5498 LegacyBuildConfiguration: any;
5499 LegacyReleaseReference: any;
5500 LegacyTestCaseResult: any;
5501 LegacyTestRun: any;
5502 LegacyTestSettings: any;
5503 Metrics: {
5504 enumValues: {
5505 all: number;
5506 resultSummary: number;
5507 resultsAnalysis: number;
5508 runSummary: number;
5509 };
5510 };
5511 OperationType: {
5512 enumValues: {
5513 add: number;
5514 delete: number;
5515 };
5516 };
5517 PipelineTestMetrics: any;
5518 PointLastResult: any;
5519 PointsResults2: any;
5520 QueryTestActionResultResponse: any;
5521 ReleaseReference: any;
5522 ReleaseReference2: any;
5523 RequirementsToTestsMapping2: any;
5524 Response: any;
5525 ResultDetails: {
5526 enumValues: {
5527 none: number;
5528 iterations: number;
5529 workItems: number;
5530 subResults: number;
5531 point: number;
5532 };
5533 };
5534 ResultGroupType: {
5535 enumValues: {
5536 none: number;
5537 rerun: number;
5538 dataDriven: number;
5539 orderedTest: number;
5540 generic: number;
5541 };
5542 };
5543 ResultMetadata: {
5544 enumValues: {
5545 rerun: number;
5546 flaky: number;
5547 };
5548 };
5549 ResultMetaDataDetails: {
5550 enumValues: {
5551 none: number;
5552 flakyIdentifiers: number;
5553 };
5554 };
5555 ResultObjectType: {
5556 enumValues: {
5557 testSuite: number;
5558 testPlan: number;
5559 };
5560 };
5561 ResultRetentionSettings: any;
5562 ResultsByQueryResponse: any;
5563 ResultsFilter: any;
5564 ResultsSummaryByOutcome: any;
5565 ResultSummary: any;
5566 ResultUpdateRequest: any;
5567 ResultUpdateRequestModel: any;
5568 ResultUpdateResponse: any;
5569 RunCreateModel: any;
5570 RunStatistic: any;
5571 RunSummary: any;
5572 RunSummaryModel: any;
5573 RunType: {
5574 enumValues: {
5575 unspecified: number;
5576 normal: number;
5577 blocking: number;
5578 web: number;
5579 mtrRunInitiatedFromWeb: number;
5580 runWithDtlEnv: number;
5581 noConfigRun: number;
5582 };
5583 };
5584 RunUpdateModel: any;
5585 Service: {
5586 enumValues: {
5587 any: number;
5588 tcm: number;
5589 tfs: number;
5590 };
5591 };
5592 SessionResult: {
5593 enumValues: {
5594 none: number;
5595 passed: number;
5596 failed: number;
5597 };
5598 };
5599 SessionTimelineType: {
5600 enumValues: {
5601 none: number;
5602 queued: number;
5603 completed: number;
5604 started: number;
5605 };
5606 };
5607 SourceViewBuildCoverage: any;
5608 SuiteExpand: {
5609 enumValues: {
5610 children: number;
5611 defaultTesters: number;
5612 };
5613 };
5614 TCMServiceDataMigrationStatus: {
5615 enumValues: {
5616 notStarted: number;
5617 inProgress: number;
5618 completed: number;
5619 failed: number;
5620 };
5621 };
5622 TestActionResult: any;
5623 TestActionResult2: any;
5624 TestActionResultModel: any;
5625 TestAttachment: any;
5626 TestAuthoringDetails: any;
5627 TestCaseReference2: any;
5628 TestCaseResult: any;
5629 TestConfiguration: any;
5630 TestConfigurationState: {
5631 enumValues: {
5632 active: number;
5633 inactive: number;
5634 };
5635 };
5636 TestExecutionReportData: any;
5637 TestExtensionField: any;
5638 TestExtensionFieldDetails: any;
5639 TestFailuresAnalysis: any;
5640 TestHistoryQuery: any;
5641 TestIterationDetailsModel: any;
5642 TestLog: any;
5643 TestLogReference: any;
5644 TestLogScope: {
5645 enumValues: {
5646 run: number;
5647 build: number;
5648 release: number;
5649 };
5650 };
5651 TestLogStatus: any;
5652 TestLogStatusCode: {
5653 enumValues: {
5654 success: number;
5655 failed: number;
5656 fileAlreadyExists: number;
5657 invalidInput: number;
5658 invalidFileName: number;
5659 invalidContainer: number;
5660 transferFailed: number;
5661 featureDisabled: number;
5662 buildDoesNotExist: number;
5663 runDoesNotExist: number;
5664 containerNotCreated: number;
5665 apiNotSupported: number;
5666 fileSizeExceeds: number;
5667 containerNotFound: number;
5668 fileNotFound: number;
5669 directoryNotFound: number;
5670 storageCapacityExceeded: number;
5671 };
5672 };
5673 TestLogStoreAttachment: any;
5674 TestLogStoreEndpointDetails: any;
5675 TestLogStoreEndpointType: {
5676 enumValues: {
5677 root: number;
5678 file: number;
5679 };
5680 };
5681 TestLogStoreOperationType: {
5682 enumValues: {
5683 read: number;
5684 create: number;
5685 readAndCreate: number;
5686 };
5687 };
5688 TestLogType: {
5689 enumValues: {
5690 generalAttachment: number;
5691 codeCoverage: number;
5692 testImpact: number;
5693 intermediate: number;
5694 system: number;
5695 mergedCoverageFile: number;
5696 };
5697 };
5698 TestMessageLogDetails: any;
5699 TestMessageLogEntry: any;
5700 TestMessageLogEntry2: any;
5701 TestOutcome: {
5702 enumValues: {
5703 unspecified: number;
5704 none: number;
5705 passed: number;
5706 failed: number;
5707 inconclusive: number;
5708 timeout: number;
5709 aborted: number;
5710 blocked: number;
5711 notExecuted: number;
5712 warning: number;
5713 error: number;
5714 notApplicable: number;
5715 paused: number;
5716 inProgress: number;
5717 notImpacted: number;
5718 maxValue: number;
5719 };
5720 };
5721 TestParameter2: any;
5722 TestPlan: any;
5723 TestPlanCloneRequest: any;
5724 TestPlanHubData: any;
5725 TestPlansWithSelection: any;
5726 TestPoint: any;
5727 TestPointReference: any;
5728 TestPointsEvent: any;
5729 TestPointsQuery: any;
5730 TestPointState: {
5731 enumValues: {
5732 none: number;
5733 ready: number;
5734 completed: number;
5735 notReady: number;
5736 inProgress: number;
5737 maxValue: number;
5738 };
5739 };
5740 TestPointsUpdatedEvent: any;
5741 TestResult2: any;
5742 TestResultAcrossProjectResponse: any;
5743 TestResultAttachment: any;
5744 TestResultGroupBy: {
5745 enumValues: {
5746 branch: number;
5747 environment: number;
5748 };
5749 };
5750 TestResultHistory: any;
5751 TestResultHistoryDetailsForGroup: any;
5752 TestResultHistoryForGroup: any;
5753 TestResultModelBase: any;
5754 TestResultReset2: any;
5755 TestResultsContext: any;
5756 TestResultsContextType: {
5757 enumValues: {
5758 build: number;
5759 release: number;
5760 pipeline: number;
5761 };
5762 };
5763 TestResultsDetails: any;
5764 TestResultsDetailsForGroup: any;
5765 TestResultsEx2: any;
5766 TestResultsQuery: any;
5767 TestResultsSession: any;
5768 TestResultsSessionState: {
5769 enumValues: {
5770 none: number;
5771 running: number;
5772 completed: number;
5773 waiting: number;
5774 cancelled: number;
5775 };
5776 };
5777 TestResultsSettings: any;
5778 TestResultsSettingsType: {
5779 enumValues: {
5780 all: number;
5781 flaky: number;
5782 newTestLogging: number;
5783 };
5784 };
5785 TestResultSummary: any;
5786 TestResultsUpdateSettings: any;
5787 TestResultsWithWatermark: any;
5788 TestResultTrendFilter: any;
5789 TestRun: any;
5790 TestRun2: any;
5791 TestRunCanceledEvent: any;
5792 TestRunCreatedEvent: any;
5793 TestRunEvent: any;
5794 TestRunEx2: any;
5795 TestRunOutcome: {
5796 enumValues: {
5797 passed: number;
5798 failed: number;
5799 notImpacted: number;
5800 others: number;
5801 };
5802 };
5803 TestRunPublishContext: {
5804 enumValues: {
5805 build: number;
5806 release: number;
5807 all: number;
5808 };
5809 };
5810 TestRunStartedEvent: any;
5811 TestRunState: {
5812 enumValues: {
5813 unspecified: number;
5814 notStarted: number;
5815 inProgress: number;
5816 completed: number;
5817 aborted: number;
5818 waiting: number;
5819 needsInvestigation: number;
5820 };
5821 };
5822 TestRunStatistic: any;
5823 TestRunSubstate: {
5824 enumValues: {
5825 none: number;
5826 creatingEnvironment: number;
5827 runningTests: number;
5828 canceledByUser: number;
5829 abortedBySystem: number;
5830 timedOut: number;
5831 pendingAnalysis: number;
5832 analyzed: number;
5833 cancellationInProgress: number;
5834 };
5835 };
5836 TestRunSummary2: any;
5837 TestRunWithDtlEnvEvent: any;
5838 TestSession: any;
5839 TestSessionExploredWorkItemReference: any;
5840 TestSessionSource: {
5841 enumValues: {
5842 unknown: number;
5843 xtDesktop: number;
5844 feedbackDesktop: number;
5845 xtWeb: number;
5846 feedbackWeb: number;
5847 xtDesktop2: number;
5848 sessionInsightsForAll: number;
5849 };
5850 };
5851 TestSessionState: {
5852 enumValues: {
5853 unspecified: number;
5854 notStarted: number;
5855 inProgress: number;
5856 paused: number;
5857 completed: number;
5858 declined: number;
5859 };
5860 };
5861 TestSettings2: any;
5862 TestSubResult: any;
5863 TestSuite: any;
5864 TestSummaryForWorkItem: any;
5865 Timeline: any;
5866 UpdatedProperties: any;
5867 UpdateTestRunRequest: any;
5868 UpdateTestRunResponse: any;
5869 WorkItemToTestLinks: any;
5870};