azure-devops-extension-api 4.248.0 → 4.248.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/{bin/Alert → Alert}/Alert.d.ts +12 -2
  2. package/{bin/Alert → Alert}/Alert.js +11 -0
  3. package/Alert/Alert.min.js +1 -0
  4. package/{bin/Alert → Alert}/AlertClient.d.ts +2 -1
  5. package/{bin/Alert → Alert}/AlertClient.js +3 -1
  6. package/Alert/AlertClient.min.js +1 -0
  7. package/{bin/Gallery → Gallery}/GalleryClient.d.ts +7 -5
  8. package/{bin/Gallery → Gallery}/GalleryClient.js +20 -19
  9. package/Gallery/GalleryClient.min.js +1 -0
  10. package/{bin/Management → Management}/Management.d.ts +4 -0
  11. package/{bin/Release → Release}/ReleaseClient.d.ts +4 -2
  12. package/{bin/Release → Release}/ReleaseClient.js +8 -4
  13. package/Release/ReleaseClient.min.js +1 -0
  14. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.d.ts +4 -0
  15. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.d.ts +3 -2
  16. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.js +5 -3
  17. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  18. package/{bin/TestResults → TestResults}/TestResultsClient.d.ts +8 -0
  19. package/{bin/TestResults → TestResults}/TestResultsClient.js +28 -9
  20. package/{bin/TestResults → TestResults}/TestResultsClient.min.js +1 -1
  21. package/package.json +1 -1
  22. package/SECURITY.md +0 -41
  23. package/bin/Alert/Alert.min.js +0 -1
  24. package/bin/Alert/AlertClient.min.js +0 -1
  25. package/bin/Gallery/GalleryClient.min.js +0 -1
  26. package/bin/LICENSE +0 -21
  27. package/bin/README.md +0 -2
  28. package/bin/Release/ReleaseClient.min.js +0 -1
  29. package/bin/ServiceEndpoint/ServiceEndpointClient.min.js +0 -1
  30. package/bin/package.json +0 -37
  31. package/buildpackage.js +0 -80
  32. package/src/Accounts/Accounts.ts +0 -134
  33. package/src/Accounts/AccountsClient.ts +0 -83
  34. package/src/Accounts/index.ts +0 -2
  35. package/src/AdvancedSecurity.Reporting/Reporting.ts +0 -180
  36. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +0 -47
  37. package/src/Alert/Alert.ts +0 -1037
  38. package/src/Alert/AlertClient.ts +0 -330
  39. package/src/Boards/Boards.ts +0 -684
  40. package/src/Boards/BoardsClient.ts +0 -593
  41. package/src/Boards/index.ts +0 -2
  42. package/src/Build/Build.ts +0 -3416
  43. package/src/Build/BuildClient.ts +0 -2740
  44. package/src/Build/BuildServices.ts +0 -39
  45. package/src/Build/index.ts +0 -3
  46. package/src/Comments/Comments.ts +0 -330
  47. package/src/Comments/index.ts +0 -1
  48. package/src/Common/Client.ts +0 -37
  49. package/src/Common/CommonServices.ts +0 -853
  50. package/src/Common/Context.d.ts +0 -46
  51. package/src/Common/Fetch.ts +0 -239
  52. package/src/Common/RestClientBase.ts +0 -186
  53. package/src/Common/System.ts +0 -36
  54. package/src/Common/SystemData.ts +0 -135
  55. package/src/Common/Util/Serialization.ts +0 -59
  56. package/src/Common/Util/Url.ts +0 -773
  57. package/src/Common/index.ts +0 -3
  58. package/src/Contributions/Contributions.ts +0 -708
  59. package/src/Contributions/ContributionsClient.ts +0 -109
  60. package/src/Contributions/index.ts +0 -2
  61. package/src/Core/Core.ts +0 -579
  62. package/src/Core/CoreClient.ts +0 -765
  63. package/src/Core/index.ts +0 -2
  64. package/src/Dashboard/Dashboard.ts +0 -419
  65. package/src/Dashboard/DashboardClient.ts +0 -370
  66. package/src/Dashboard/WidgetConfigHelpers.ts +0 -43
  67. package/src/Dashboard/WidgetContracts.ts +0 -226
  68. package/src/Dashboard/WidgetHelpers.ts +0 -145
  69. package/src/Dashboard/index.ts +0 -5
  70. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +0 -108
  71. package/src/DistributedTaskCommon/index.ts +0 -1
  72. package/src/ExtensionManagement/ExtensionManagement.ts +0 -1205
  73. package/src/ExtensionManagement/ExtensionManagementClient.ts +0 -646
  74. package/src/ExtensionManagement/index.ts +0 -2
  75. package/src/Favorite/Favorite.ts +0 -136
  76. package/src/Favorite/FavoriteClient.ts +0 -301
  77. package/src/FeatureAvailability/FeatureAvailability.ts +0 -20
  78. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +0 -153
  79. package/src/FeatureAvailability/index.ts +0 -2
  80. package/src/FeatureManagement/FeatureManagement.ts +0 -166
  81. package/src/FeatureManagement/FeatureManagementClient.ts +0 -246
  82. package/src/FeatureManagement/index.ts +0 -2
  83. package/src/FileContainer/FileContainer.ts +0 -205
  84. package/src/FileContainer/FileContainerClient.ts +0 -154
  85. package/src/FileContainer/index.ts +0 -2
  86. package/src/FormInput/FormInput.ts +0 -288
  87. package/src/FormInput/index.ts +0 -1
  88. package/src/Gallery/Gallery.ts +0 -1977
  89. package/src/Gallery/GalleryClient.ts +0 -2251
  90. package/src/Gallery/index.ts +0 -2
  91. package/src/Git/CodeEditorTypes.ts +0 -335
  92. package/src/Git/Git.ts +0 -4062
  93. package/src/Git/GitClient.ts +0 -4750
  94. package/src/Git/GitServices.ts +0 -18
  95. package/src/Git/index.ts +0 -4
  96. package/src/Graph/Graph.ts +0 -572
  97. package/src/Graph/GraphClient.ts +0 -846
  98. package/src/Graph/index.ts +0 -2
  99. package/src/Identities/Identities.ts +0 -261
  100. package/src/Identities/IdentityProvider.ts +0 -90
  101. package/src/Identities/IdentityService.ts +0 -89
  102. package/src/Identities/index.ts +0 -3
  103. package/src/Locations/Locations.ts +0 -165
  104. package/src/Locations/LocationsClient.ts +0 -220
  105. package/src/Locations/index.ts +0 -2
  106. package/src/Management/Management.ts +0 -176
  107. package/src/Management/ManagementClient.ts +0 -348
  108. package/src/Notification/Notification.ts +0 -1460
  109. package/src/Notification/NotificationClient.ts +0 -477
  110. package/src/Notification/index.ts +0 -2
  111. package/src/Operations/Operations.ts +0 -86
  112. package/src/Operations/OperationsClient.ts +0 -42
  113. package/src/Operations/index.ts +0 -2
  114. package/src/Pipelines/Pipelines.ts +0 -354
  115. package/src/Pipelines/PipelinesClient.ts +0 -306
  116. package/src/Policy/Policy.ts +0 -173
  117. package/src/Policy/PolicyClient.ts +0 -315
  118. package/src/Policy/index.ts +0 -2
  119. package/src/Profile/Profile.ts +0 -187
  120. package/src/Profile/ProfileClient.ts +0 -328
  121. package/src/Profile/index.ts +0 -2
  122. package/src/ProjectAnalysis/ProjectAnalysis.ts +0 -74
  123. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +0 -124
  124. package/src/ProjectAnalysis/index.ts +0 -2
  125. package/src/Release/Release.ts +0 -4237
  126. package/src/Release/ReleaseClient.ts +0 -2450
  127. package/src/Release/index.ts +0 -2
  128. package/src/ResourceUsage/ResourceUsage.ts +0 -19
  129. package/src/ResourceUsage/ResourceUsageClient.ts +0 -48
  130. package/src/ServiceEndpoint/ServiceEndpoint.ts +0 -930
  131. package/src/ServiceEndpoint/ServiceEndpointClient.ts +0 -617
  132. package/src/ServiceEndpoint/index.ts +0 -2
  133. package/src/ServiceHooks/ServiceHooks.ts +0 -759
  134. package/src/ServiceHooks/ServiceHooksClient.ts +0 -499
  135. package/src/ServiceHooks/index.ts +0 -2
  136. package/src/TaskAgent/TaskAgent.ts +0 -3896
  137. package/src/TaskAgent/TaskAgentClient.ts +0 -3918
  138. package/src/TaskAgent/index.ts +0 -2
  139. package/src/Test/Test.ts +0 -5853
  140. package/src/Test/TestClient.ts +0 -2201
  141. package/src/Test/index.ts +0 -2
  142. package/src/TestPlan/TestPlan.ts +0 -1384
  143. package/src/TestPlan/TestPlanClient.ts +0 -1367
  144. package/src/TestPlan/index.ts +0 -2
  145. package/src/TestResults/TestResults.ts +0 -11
  146. package/src/TestResults/TestResultsClient.ts +0 -3506
  147. package/src/TestResults/index.ts +0 -2
  148. package/src/Tfvc/Tfvc.ts +0 -770
  149. package/src/Tfvc/TfvcClient.ts +0 -757
  150. package/src/Tfvc/index.ts +0 -2
  151. package/src/WebApi/WebApi.ts +0 -452
  152. package/src/WebApi/index.ts +0 -1
  153. package/src/Wiki/Wiki.ts +0 -352
  154. package/src/Wiki/WikiClient.ts +0 -712
  155. package/src/Wiki/index.ts +0 -2
  156. package/src/Work/Work.ts +0 -1367
  157. package/src/Work/WorkClient.ts +0 -1489
  158. package/src/Work/index.ts +0 -2
  159. package/src/WorkItemTracking/WorkItemTracking.ts +0 -2215
  160. package/src/WorkItemTracking/WorkItemTrackingClient.ts +0 -2032
  161. package/src/WorkItemTracking/WorkItemTrackingServices.ts +0 -329
  162. package/src/WorkItemTracking/index.ts +0 -3
  163. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +0 -1295
  164. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +0 -1455
  165. package/src/WorkItemTrackingProcess/index.ts +0 -2
  166. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +0 -606
  167. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +0 -1175
  168. package/src/WorkItemTrackingProcessDefinitions/index.ts +0 -2
  169. package/src/index.ts +0 -1
  170. package/tsconfig.json +0 -21
  171. /package/{bin/Accounts → Accounts}/Accounts.d.ts +0 -0
  172. /package/{bin/Accounts → Accounts}/Accounts.js +0 -0
  173. /package/{bin/Accounts → Accounts}/Accounts.min.js +0 -0
  174. /package/{bin/Accounts → Accounts}/AccountsClient.d.ts +0 -0
  175. /package/{bin/Accounts → Accounts}/AccountsClient.js +0 -0
  176. /package/{bin/Accounts → Accounts}/AccountsClient.min.js +0 -0
  177. /package/{bin/Accounts → Accounts}/index.d.ts +0 -0
  178. /package/{bin/Accounts → Accounts}/index.js +0 -0
  179. /package/{bin/Accounts → Accounts}/index.min.js +0 -0
  180. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.d.ts +0 -0
  181. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.js +0 -0
  182. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.min.js +0 -0
  183. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  184. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  185. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  186. /package/{bin/Boards → Boards}/Boards.d.ts +0 -0
  187. /package/{bin/Boards → Boards}/Boards.js +0 -0
  188. /package/{bin/Boards → Boards}/Boards.min.js +0 -0
  189. /package/{bin/Boards → Boards}/BoardsClient.d.ts +0 -0
  190. /package/{bin/Boards → Boards}/BoardsClient.js +0 -0
  191. /package/{bin/Boards → Boards}/BoardsClient.min.js +0 -0
  192. /package/{bin/Boards → Boards}/index.d.ts +0 -0
  193. /package/{bin/Boards → Boards}/index.js +0 -0
  194. /package/{bin/Boards → Boards}/index.min.js +0 -0
  195. /package/{bin/Build → Build}/Build.d.ts +0 -0
  196. /package/{bin/Build → Build}/Build.js +0 -0
  197. /package/{bin/Build → Build}/Build.min.js +0 -0
  198. /package/{bin/Build → Build}/BuildClient.d.ts +0 -0
  199. /package/{bin/Build → Build}/BuildClient.js +0 -0
  200. /package/{bin/Build → Build}/BuildClient.min.js +0 -0
  201. /package/{bin/Build → Build}/BuildServices.d.ts +0 -0
  202. /package/{bin/Build → Build}/BuildServices.js +0 -0
  203. /package/{bin/Build → Build}/BuildServices.min.js +0 -0
  204. /package/{bin/Build → Build}/index.d.ts +0 -0
  205. /package/{bin/Build → Build}/index.js +0 -0
  206. /package/{bin/Build → Build}/index.min.js +0 -0
  207. /package/{bin/Comments → Comments}/Comments.d.ts +0 -0
  208. /package/{bin/Comments → Comments}/Comments.js +0 -0
  209. /package/{bin/Comments → Comments}/Comments.min.js +0 -0
  210. /package/{bin/Comments → Comments}/index.d.ts +0 -0
  211. /package/{bin/Comments → Comments}/index.js +0 -0
  212. /package/{bin/Comments → Comments}/index.min.js +0 -0
  213. /package/{bin/Common → Common}/Client.d.ts +0 -0
  214. /package/{bin/Common → Common}/Client.js +0 -0
  215. /package/{bin/Common → Common}/Client.min.js +0 -0
  216. /package/{bin/Common → Common}/CommonServices.d.ts +0 -0
  217. /package/{bin/Common → Common}/CommonServices.js +0 -0
  218. /package/{bin/Common → Common}/CommonServices.min.js +0 -0
  219. /package/{bin/Common → Common}/Context.d.ts +0 -0
  220. /package/{bin/Common → Common}/Fetch.d.ts +0 -0
  221. /package/{bin/Common → Common}/Fetch.js +0 -0
  222. /package/{bin/Common → Common}/Fetch.min.js +0 -0
  223. /package/{bin/Common → Common}/RestClientBase.d.ts +0 -0
  224. /package/{bin/Common → Common}/RestClientBase.js +0 -0
  225. /package/{bin/Common → Common}/RestClientBase.min.js +0 -0
  226. /package/{bin/Common → Common}/System.d.ts +0 -0
  227. /package/{bin/Common → Common}/System.js +0 -0
  228. /package/{bin/Common → Common}/System.min.js +0 -0
  229. /package/{bin/Common → Common}/SystemData.d.ts +0 -0
  230. /package/{bin/Common → Common}/SystemData.js +0 -0
  231. /package/{bin/Common → Common}/SystemData.min.js +0 -0
  232. /package/{bin/Common → Common}/Util/Serialization.d.ts +0 -0
  233. /package/{bin/Common → Common}/Util/Serialization.js +0 -0
  234. /package/{bin/Common → Common}/Util/Serialization.min.js +0 -0
  235. /package/{bin/Common → Common}/Util/Url.d.ts +0 -0
  236. /package/{bin/Common → Common}/Util/Url.js +0 -0
  237. /package/{bin/Common → Common}/Util/Url.min.js +0 -0
  238. /package/{bin/Common → Common}/index.d.ts +0 -0
  239. /package/{bin/Common → Common}/index.js +0 -0
  240. /package/{bin/Common → Common}/index.min.js +0 -0
  241. /package/{bin/Contributions → Contributions}/Contributions.d.ts +0 -0
  242. /package/{bin/Contributions → Contributions}/Contributions.js +0 -0
  243. /package/{bin/Contributions → Contributions}/Contributions.min.js +0 -0
  244. /package/{bin/Contributions → Contributions}/ContributionsClient.d.ts +0 -0
  245. /package/{bin/Contributions → Contributions}/ContributionsClient.js +0 -0
  246. /package/{bin/Contributions → Contributions}/ContributionsClient.min.js +0 -0
  247. /package/{bin/Contributions → Contributions}/index.d.ts +0 -0
  248. /package/{bin/Contributions → Contributions}/index.js +0 -0
  249. /package/{bin/Contributions → Contributions}/index.min.js +0 -0
  250. /package/{bin/Core → Core}/Core.d.ts +0 -0
  251. /package/{bin/Core → Core}/Core.js +0 -0
  252. /package/{bin/Core → Core}/Core.min.js +0 -0
  253. /package/{bin/Core → Core}/CoreClient.d.ts +0 -0
  254. /package/{bin/Core → Core}/CoreClient.js +0 -0
  255. /package/{bin/Core → Core}/CoreClient.min.js +0 -0
  256. /package/{bin/Core → Core}/index.d.ts +0 -0
  257. /package/{bin/Core → Core}/index.js +0 -0
  258. /package/{bin/Core → Core}/index.min.js +0 -0
  259. /package/{bin/Dashboard → Dashboard}/Dashboard.d.ts +0 -0
  260. /package/{bin/Dashboard → Dashboard}/Dashboard.js +0 -0
  261. /package/{bin/Dashboard → Dashboard}/Dashboard.min.js +0 -0
  262. /package/{bin/Dashboard → Dashboard}/DashboardClient.d.ts +0 -0
  263. /package/{bin/Dashboard → Dashboard}/DashboardClient.js +0 -0
  264. /package/{bin/Dashboard → Dashboard}/DashboardClient.min.js +0 -0
  265. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  266. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.js +0 -0
  267. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.min.js +0 -0
  268. /package/{bin/Dashboard → Dashboard}/WidgetContracts.d.ts +0 -0
  269. /package/{bin/Dashboard → Dashboard}/WidgetContracts.js +0 -0
  270. /package/{bin/Dashboard → Dashboard}/WidgetContracts.min.js +0 -0
  271. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.d.ts +0 -0
  272. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.js +0 -0
  273. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.min.js +0 -0
  274. /package/{bin/Dashboard → Dashboard}/index.d.ts +0 -0
  275. /package/{bin/Dashboard → Dashboard}/index.js +0 -0
  276. /package/{bin/Dashboard → Dashboard}/index.min.js +0 -0
  277. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  278. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  279. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  280. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.d.ts +0 -0
  281. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.js +0 -0
  282. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.min.js +0 -0
  283. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  284. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.js +0 -0
  285. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.min.js +0 -0
  286. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  287. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.js +0 -0
  288. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.min.js +0 -0
  289. /package/{bin/ExtensionManagement → ExtensionManagement}/index.d.ts +0 -0
  290. /package/{bin/ExtensionManagement → ExtensionManagement}/index.js +0 -0
  291. /package/{bin/ExtensionManagement → ExtensionManagement}/index.min.js +0 -0
  292. /package/{bin/Favorite → Favorite}/Favorite.d.ts +0 -0
  293. /package/{bin/Favorite → Favorite}/Favorite.js +0 -0
  294. /package/{bin/Favorite → Favorite}/Favorite.min.js +0 -0
  295. /package/{bin/Favorite → Favorite}/FavoriteClient.d.ts +0 -0
  296. /package/{bin/Favorite → Favorite}/FavoriteClient.js +0 -0
  297. /package/{bin/Favorite → Favorite}/FavoriteClient.min.js +0 -0
  298. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  299. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.js +0 -0
  300. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.min.js +0 -0
  301. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  302. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  303. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  304. /package/{bin/FeatureAvailability → FeatureAvailability}/index.d.ts +0 -0
  305. /package/{bin/FeatureAvailability → FeatureAvailability}/index.js +0 -0
  306. /package/{bin/FeatureAvailability → FeatureAvailability}/index.min.js +0 -0
  307. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.d.ts +0 -0
  308. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.js +0 -0
  309. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.min.js +0 -0
  310. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  311. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.js +0 -0
  312. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.min.js +0 -0
  313. /package/{bin/FeatureManagement → FeatureManagement}/index.d.ts +0 -0
  314. /package/{bin/FeatureManagement → FeatureManagement}/index.js +0 -0
  315. /package/{bin/FeatureManagement → FeatureManagement}/index.min.js +0 -0
  316. /package/{bin/FileContainer → FileContainer}/FileContainer.d.ts +0 -0
  317. /package/{bin/FileContainer → FileContainer}/FileContainer.js +0 -0
  318. /package/{bin/FileContainer → FileContainer}/FileContainer.min.js +0 -0
  319. /package/{bin/FileContainer → FileContainer}/FileContainerClient.d.ts +0 -0
  320. /package/{bin/FileContainer → FileContainer}/FileContainerClient.js +0 -0
  321. /package/{bin/FileContainer → FileContainer}/FileContainerClient.min.js +0 -0
  322. /package/{bin/FileContainer → FileContainer}/index.d.ts +0 -0
  323. /package/{bin/FileContainer → FileContainer}/index.js +0 -0
  324. /package/{bin/FileContainer → FileContainer}/index.min.js +0 -0
  325. /package/{bin/FormInput → FormInput}/FormInput.d.ts +0 -0
  326. /package/{bin/FormInput → FormInput}/FormInput.js +0 -0
  327. /package/{bin/FormInput → FormInput}/FormInput.min.js +0 -0
  328. /package/{bin/FormInput → FormInput}/index.d.ts +0 -0
  329. /package/{bin/FormInput → FormInput}/index.js +0 -0
  330. /package/{bin/FormInput → FormInput}/index.min.js +0 -0
  331. /package/{bin/Gallery → Gallery}/Gallery.d.ts +0 -0
  332. /package/{bin/Gallery → Gallery}/Gallery.js +0 -0
  333. /package/{bin/Gallery → Gallery}/Gallery.min.js +0 -0
  334. /package/{bin/Gallery → Gallery}/index.d.ts +0 -0
  335. /package/{bin/Gallery → Gallery}/index.js +0 -0
  336. /package/{bin/Gallery → Gallery}/index.min.js +0 -0
  337. /package/{bin/Git → Git}/CodeEditorTypes.d.ts +0 -0
  338. /package/{bin/Git → Git}/CodeEditorTypes.js +0 -0
  339. /package/{bin/Git → Git}/CodeEditorTypes.min.js +0 -0
  340. /package/{bin/Git → Git}/Git.d.ts +0 -0
  341. /package/{bin/Git → Git}/Git.js +0 -0
  342. /package/{bin/Git → Git}/Git.min.js +0 -0
  343. /package/{bin/Git → Git}/GitClient.d.ts +0 -0
  344. /package/{bin/Git → Git}/GitClient.js +0 -0
  345. /package/{bin/Git → Git}/GitClient.min.js +0 -0
  346. /package/{bin/Git → Git}/GitServices.d.ts +0 -0
  347. /package/{bin/Git → Git}/GitServices.js +0 -0
  348. /package/{bin/Git → Git}/GitServices.min.js +0 -0
  349. /package/{bin/Git → Git}/index.d.ts +0 -0
  350. /package/{bin/Git → Git}/index.js +0 -0
  351. /package/{bin/Git → Git}/index.min.js +0 -0
  352. /package/{bin/Graph → Graph}/Graph.d.ts +0 -0
  353. /package/{bin/Graph → Graph}/Graph.js +0 -0
  354. /package/{bin/Graph → Graph}/Graph.min.js +0 -0
  355. /package/{bin/Graph → Graph}/GraphClient.d.ts +0 -0
  356. /package/{bin/Graph → Graph}/GraphClient.js +0 -0
  357. /package/{bin/Graph → Graph}/GraphClient.min.js +0 -0
  358. /package/{bin/Graph → Graph}/index.d.ts +0 -0
  359. /package/{bin/Graph → Graph}/index.js +0 -0
  360. /package/{bin/Graph → Graph}/index.min.js +0 -0
  361. /package/{bin/Identities → Identities}/Identities.d.ts +0 -0
  362. /package/{bin/Identities → Identities}/Identities.js +0 -0
  363. /package/{bin/Identities → Identities}/Identities.min.js +0 -0
  364. /package/{bin/Identities → Identities}/IdentityProvider.d.ts +0 -0
  365. /package/{bin/Identities → Identities}/IdentityProvider.js +0 -0
  366. /package/{bin/Identities → Identities}/IdentityProvider.min.js +0 -0
  367. /package/{bin/Identities → Identities}/IdentityService.d.ts +0 -0
  368. /package/{bin/Identities → Identities}/IdentityService.js +0 -0
  369. /package/{bin/Identities → Identities}/IdentityService.min.js +0 -0
  370. /package/{bin/Identities → Identities}/index.d.ts +0 -0
  371. /package/{bin/Identities → Identities}/index.js +0 -0
  372. /package/{bin/Identities → Identities}/index.min.js +0 -0
  373. /package/{bin/Locations → Locations}/Locations.d.ts +0 -0
  374. /package/{bin/Locations → Locations}/Locations.js +0 -0
  375. /package/{bin/Locations → Locations}/Locations.min.js +0 -0
  376. /package/{bin/Locations → Locations}/LocationsClient.d.ts +0 -0
  377. /package/{bin/Locations → Locations}/LocationsClient.js +0 -0
  378. /package/{bin/Locations → Locations}/LocationsClient.min.js +0 -0
  379. /package/{bin/Locations → Locations}/index.d.ts +0 -0
  380. /package/{bin/Locations → Locations}/index.js +0 -0
  381. /package/{bin/Locations → Locations}/index.min.js +0 -0
  382. /package/{bin/Management → Management}/Management.js +0 -0
  383. /package/{bin/Management → Management}/Management.min.js +0 -0
  384. /package/{bin/Management → Management}/ManagementClient.d.ts +0 -0
  385. /package/{bin/Management → Management}/ManagementClient.js +0 -0
  386. /package/{bin/Management → Management}/ManagementClient.min.js +0 -0
  387. /package/{bin/Notification → Notification}/Notification.d.ts +0 -0
  388. /package/{bin/Notification → Notification}/Notification.js +0 -0
  389. /package/{bin/Notification → Notification}/Notification.min.js +0 -0
  390. /package/{bin/Notification → Notification}/NotificationClient.d.ts +0 -0
  391. /package/{bin/Notification → Notification}/NotificationClient.js +0 -0
  392. /package/{bin/Notification → Notification}/NotificationClient.min.js +0 -0
  393. /package/{bin/Notification → Notification}/index.d.ts +0 -0
  394. /package/{bin/Notification → Notification}/index.js +0 -0
  395. /package/{bin/Notification → Notification}/index.min.js +0 -0
  396. /package/{bin/Operations → Operations}/Operations.d.ts +0 -0
  397. /package/{bin/Operations → Operations}/Operations.js +0 -0
  398. /package/{bin/Operations → Operations}/Operations.min.js +0 -0
  399. /package/{bin/Operations → Operations}/OperationsClient.d.ts +0 -0
  400. /package/{bin/Operations → Operations}/OperationsClient.js +0 -0
  401. /package/{bin/Operations → Operations}/OperationsClient.min.js +0 -0
  402. /package/{bin/Operations → Operations}/index.d.ts +0 -0
  403. /package/{bin/Operations → Operations}/index.js +0 -0
  404. /package/{bin/Operations → Operations}/index.min.js +0 -0
  405. /package/{bin/Pipelines → Pipelines}/Pipelines.d.ts +0 -0
  406. /package/{bin/Pipelines → Pipelines}/Pipelines.js +0 -0
  407. /package/{bin/Pipelines → Pipelines}/Pipelines.min.js +0 -0
  408. /package/{bin/Pipelines → Pipelines}/PipelinesClient.d.ts +0 -0
  409. /package/{bin/Pipelines → Pipelines}/PipelinesClient.js +0 -0
  410. /package/{bin/Pipelines → Pipelines}/PipelinesClient.min.js +0 -0
  411. /package/{bin/Policy → Policy}/Policy.d.ts +0 -0
  412. /package/{bin/Policy → Policy}/Policy.js +0 -0
  413. /package/{bin/Policy → Policy}/Policy.min.js +0 -0
  414. /package/{bin/Policy → Policy}/PolicyClient.d.ts +0 -0
  415. /package/{bin/Policy → Policy}/PolicyClient.js +0 -0
  416. /package/{bin/Policy → Policy}/PolicyClient.min.js +0 -0
  417. /package/{bin/Policy → Policy}/index.d.ts +0 -0
  418. /package/{bin/Policy → Policy}/index.js +0 -0
  419. /package/{bin/Policy → Policy}/index.min.js +0 -0
  420. /package/{bin/Profile → Profile}/Profile.d.ts +0 -0
  421. /package/{bin/Profile → Profile}/Profile.js +0 -0
  422. /package/{bin/Profile → Profile}/Profile.min.js +0 -0
  423. /package/{bin/Profile → Profile}/ProfileClient.d.ts +0 -0
  424. /package/{bin/Profile → Profile}/ProfileClient.js +0 -0
  425. /package/{bin/Profile → Profile}/ProfileClient.min.js +0 -0
  426. /package/{bin/Profile → Profile}/index.d.ts +0 -0
  427. /package/{bin/Profile → Profile}/index.js +0 -0
  428. /package/{bin/Profile → Profile}/index.min.js +0 -0
  429. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  430. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.js +0 -0
  431. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  432. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  433. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  434. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  435. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.d.ts +0 -0
  436. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.js +0 -0
  437. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.min.js +0 -0
  438. /package/{bin/Release → Release}/Release.d.ts +0 -0
  439. /package/{bin/Release → Release}/Release.js +0 -0
  440. /package/{bin/Release → Release}/Release.min.js +0 -0
  441. /package/{bin/Release → Release}/index.d.ts +0 -0
  442. /package/{bin/Release → Release}/index.js +0 -0
  443. /package/{bin/Release → Release}/index.min.js +0 -0
  444. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.d.ts +0 -0
  445. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.js +0 -0
  446. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.min.js +0 -0
  447. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  448. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.js +0 -0
  449. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.min.js +0 -0
  450. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.js +0 -0
  451. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  452. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.d.ts +0 -0
  453. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.js +0 -0
  454. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.min.js +0 -0
  455. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.d.ts +0 -0
  456. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.js +0 -0
  457. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.min.js +0 -0
  458. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  459. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.js +0 -0
  460. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.min.js +0 -0
  461. /package/{bin/ServiceHooks → ServiceHooks}/index.d.ts +0 -0
  462. /package/{bin/ServiceHooks → ServiceHooks}/index.js +0 -0
  463. /package/{bin/ServiceHooks → ServiceHooks}/index.min.js +0 -0
  464. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.d.ts +0 -0
  465. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.js +0 -0
  466. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.min.js +0 -0
  467. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.d.ts +0 -0
  468. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.js +0 -0
  469. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.min.js +0 -0
  470. /package/{bin/TaskAgent → TaskAgent}/index.d.ts +0 -0
  471. /package/{bin/TaskAgent → TaskAgent}/index.js +0 -0
  472. /package/{bin/TaskAgent → TaskAgent}/index.min.js +0 -0
  473. /package/{bin/Test → Test}/Test.d.ts +0 -0
  474. /package/{bin/Test → Test}/Test.js +0 -0
  475. /package/{bin/Test → Test}/Test.min.js +0 -0
  476. /package/{bin/Test → Test}/TestClient.d.ts +0 -0
  477. /package/{bin/Test → Test}/TestClient.js +0 -0
  478. /package/{bin/Test → Test}/TestClient.min.js +0 -0
  479. /package/{bin/Test → Test}/index.d.ts +0 -0
  480. /package/{bin/Test → Test}/index.js +0 -0
  481. /package/{bin/Test → Test}/index.min.js +0 -0
  482. /package/{bin/TestPlan → TestPlan}/TestPlan.d.ts +0 -0
  483. /package/{bin/TestPlan → TestPlan}/TestPlan.js +0 -0
  484. /package/{bin/TestPlan → TestPlan}/TestPlan.min.js +0 -0
  485. /package/{bin/TestPlan → TestPlan}/TestPlanClient.d.ts +0 -0
  486. /package/{bin/TestPlan → TestPlan}/TestPlanClient.js +0 -0
  487. /package/{bin/TestPlan → TestPlan}/TestPlanClient.min.js +0 -0
  488. /package/{bin/TestPlan → TestPlan}/index.d.ts +0 -0
  489. /package/{bin/TestPlan → TestPlan}/index.js +0 -0
  490. /package/{bin/TestPlan → TestPlan}/index.min.js +0 -0
  491. /package/{bin/TestResults → TestResults}/TestResults.d.ts +0 -0
  492. /package/{bin/TestResults → TestResults}/TestResults.js +0 -0
  493. /package/{bin/TestResults → TestResults}/TestResults.min.js +0 -0
  494. /package/{bin/TestResults → TestResults}/index.d.ts +0 -0
  495. /package/{bin/TestResults → TestResults}/index.js +0 -0
  496. /package/{bin/TestResults → TestResults}/index.min.js +0 -0
  497. /package/{bin/Tfvc → Tfvc}/Tfvc.d.ts +0 -0
  498. /package/{bin/Tfvc → Tfvc}/Tfvc.js +0 -0
  499. /package/{bin/Tfvc → Tfvc}/Tfvc.min.js +0 -0
  500. /package/{bin/Tfvc → Tfvc}/TfvcClient.d.ts +0 -0
  501. /package/{bin/Tfvc → Tfvc}/TfvcClient.js +0 -0
  502. /package/{bin/Tfvc → Tfvc}/TfvcClient.min.js +0 -0
  503. /package/{bin/Tfvc → Tfvc}/index.d.ts +0 -0
  504. /package/{bin/Tfvc → Tfvc}/index.js +0 -0
  505. /package/{bin/Tfvc → Tfvc}/index.min.js +0 -0
  506. /package/{bin/WebApi → WebApi}/WebApi.d.ts +0 -0
  507. /package/{bin/WebApi → WebApi}/WebApi.js +0 -0
  508. /package/{bin/WebApi → WebApi}/WebApi.min.js +0 -0
  509. /package/{bin/WebApi → WebApi}/index.d.ts +0 -0
  510. /package/{bin/WebApi → WebApi}/index.js +0 -0
  511. /package/{bin/WebApi → WebApi}/index.min.js +0 -0
  512. /package/{bin/Wiki → Wiki}/Wiki.d.ts +0 -0
  513. /package/{bin/Wiki → Wiki}/Wiki.js +0 -0
  514. /package/{bin/Wiki → Wiki}/Wiki.min.js +0 -0
  515. /package/{bin/Wiki → Wiki}/WikiClient.d.ts +0 -0
  516. /package/{bin/Wiki → Wiki}/WikiClient.js +0 -0
  517. /package/{bin/Wiki → Wiki}/WikiClient.min.js +0 -0
  518. /package/{bin/Wiki → Wiki}/index.d.ts +0 -0
  519. /package/{bin/Wiki → Wiki}/index.js +0 -0
  520. /package/{bin/Wiki → Wiki}/index.min.js +0 -0
  521. /package/{bin/Work → Work}/Work.d.ts +0 -0
  522. /package/{bin/Work → Work}/Work.js +0 -0
  523. /package/{bin/Work → Work}/Work.min.js +0 -0
  524. /package/{bin/Work → Work}/WorkClient.d.ts +0 -0
  525. /package/{bin/Work → Work}/WorkClient.js +0 -0
  526. /package/{bin/Work → Work}/WorkClient.min.js +0 -0
  527. /package/{bin/Work → Work}/index.d.ts +0 -0
  528. /package/{bin/Work → Work}/index.js +0 -0
  529. /package/{bin/Work → Work}/index.min.js +0 -0
  530. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.d.ts +0 -0
  531. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.js +0 -0
  532. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.min.js +0 -0
  533. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
  534. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.js +0 -0
  535. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
  536. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
  537. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.js +0 -0
  538. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
  539. /package/{bin/WorkItemTracking → WorkItemTracking}/index.d.ts +0 -0
  540. /package/{bin/WorkItemTracking → WorkItemTracking}/index.js +0 -0
  541. /package/{bin/WorkItemTracking → WorkItemTracking}/index.min.js +0 -0
  542. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
  543. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
  544. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
  545. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
  546. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
  547. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
  548. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.d.ts +0 -0
  549. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.js +0 -0
  550. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.min.js +0 -0
  551. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
  552. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
  553. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
  554. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
  555. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
  556. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
  557. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
  558. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.js +0 -0
  559. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
  560. /package/{bin/index.d.ts → index.d.ts} +0 -0
  561. /package/{bin/index.js → index.js} +0 -0
  562. /package/{bin/index.min.js → index.min.js} +0 -0
@@ -1,3506 +0,0 @@
1
- /*
2
- * ---------------------------------------------------------
3
- * Copyright(C) Microsoft Corporation. All rights reserved.
4
- * ---------------------------------------------------------
5
- */
6
-
7
- import { IVssRestClientOptions } from "../Common/Context";
8
- import { RestClientBase } from "../Common/RestClientBase";
9
- import { deserializeVssJsonObject } from "../Common/Util/Serialization";
10
-
11
- import * as Test from "../Test/Test";
12
- import * as WebApi from "../WebApi/WebApi";
13
-
14
- export class TestResultsRestClient extends RestClientBase {
15
- constructor(options: IVssRestClientOptions) {
16
- super(options);
17
- }
18
-
19
- public static readonly RESOURCE_AREA_ID = "c83eaf52-edf3-4034-ae11-17d38f25404c";
20
-
21
- /**
22
- * @param attachmentRequestModel -
23
- * @param project - Project ID or project name
24
- * @param runId -
25
- * @param testCaseResultId -
26
- * @param iterationId -
27
- * @param actionPath -
28
- */
29
- public async createTestIterationResultAttachment(
30
- attachmentRequestModel: Test.TestAttachmentRequestModel,
31
- project: string,
32
- runId: number,
33
- testCaseResultId: number,
34
- iterationId: number,
35
- actionPath?: string
36
- ): Promise<Test.TestAttachmentReference> {
37
-
38
- const queryValues: any = {
39
- iterationId: iterationId,
40
- actionPath: actionPath
41
- };
42
-
43
- return this.beginRequest<Test.TestAttachmentReference>({
44
- apiVersion: "7.2-preview.1",
45
- method: "POST",
46
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
47
- routeValues: {
48
- project: project,
49
- runId: runId,
50
- testCaseResultId: testCaseResultId
51
- },
52
- queryParams: queryValues,
53
- body: attachmentRequestModel
54
- });
55
- }
56
-
57
- /**
58
- * @param attachmentRequestModel -
59
- * @param project - Project ID or project name
60
- * @param runId -
61
- * @param testCaseResultId -
62
- */
63
- public async createTestResultAttachment(
64
- attachmentRequestModel: Test.TestAttachmentRequestModel,
65
- project: string,
66
- runId: number,
67
- testCaseResultId: number
68
- ): Promise<Test.TestAttachmentReference> {
69
-
70
- return this.beginRequest<Test.TestAttachmentReference>({
71
- apiVersion: "7.2-preview.1",
72
- method: "POST",
73
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
74
- routeValues: {
75
- project: project,
76
- runId: runId,
77
- testCaseResultId: testCaseResultId
78
- },
79
- body: attachmentRequestModel
80
- });
81
- }
82
-
83
- /**
84
- * @param attachmentRequestModel -
85
- * @param project - Project ID or project name
86
- * @param runId -
87
- * @param testCaseResultId -
88
- * @param testSubResultId -
89
- */
90
- public async createTestSubResultAttachment(
91
- attachmentRequestModel: Test.TestAttachmentRequestModel,
92
- project: string,
93
- runId: number,
94
- testCaseResultId: number,
95
- testSubResultId: number
96
- ): Promise<Test.TestAttachmentReference> {
97
-
98
- const queryValues: any = {
99
- testSubResultId: testSubResultId
100
- };
101
-
102
- return this.beginRequest<Test.TestAttachmentReference>({
103
- apiVersion: "7.2-preview.1",
104
- method: "POST",
105
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
106
- routeValues: {
107
- project: project,
108
- runId: runId,
109
- testCaseResultId: testCaseResultId
110
- },
111
- queryParams: queryValues,
112
- body: attachmentRequestModel
113
- });
114
- }
115
-
116
- /**
117
- * @param project - Project ID or project name
118
- * @param runId -
119
- * @param testCaseResultId -
120
- * @param attachmentId -
121
- */
122
- public async deleteTestResultAttachment(
123
- project: string,
124
- runId: number,
125
- testCaseResultId: number,
126
- attachmentId: number
127
- ): Promise<void> {
128
-
129
- return this.beginRequest<void>({
130
- apiVersion: "7.2-preview.1",
131
- method: "DELETE",
132
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
133
- routeValues: {
134
- project: project,
135
- runId: runId,
136
- testCaseResultId: testCaseResultId,
137
- attachmentId: attachmentId
138
- }
139
- });
140
- }
141
-
142
- /**
143
- * Returns a test iteration attachment
144
- *
145
- * @param project - Project ID or project name
146
- * @param runId -
147
- * @param testCaseResultId -
148
- * @param attachmentId -
149
- * @param iterationId -
150
- */
151
- public async getTestIterationAttachmentContent(
152
- project: string,
153
- runId: number,
154
- testCaseResultId: number,
155
- attachmentId: number,
156
- iterationId: number
157
- ): Promise<ArrayBuffer> {
158
-
159
- const queryValues: any = {
160
- iterationId: iterationId
161
- };
162
-
163
- return this.beginRequest<ArrayBuffer>({
164
- apiVersion: "7.2-preview.1",
165
- httpResponseType: "application/octet-stream",
166
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
167
- routeValues: {
168
- project: project,
169
- runId: runId,
170
- testCaseResultId: testCaseResultId,
171
- attachmentId: attachmentId
172
- },
173
- queryParams: queryValues
174
- });
175
- }
176
-
177
- /**
178
- * Returns a test iteration attachment
179
- *
180
- * @param project - Project ID or project name
181
- * @param runId -
182
- * @param testCaseResultId -
183
- * @param attachmentId -
184
- * @param iterationId -
185
- */
186
- public async getTestIterationAttachmentZip(
187
- project: string,
188
- runId: number,
189
- testCaseResultId: number,
190
- attachmentId: number,
191
- iterationId: number
192
- ): Promise<ArrayBuffer> {
193
-
194
- const queryValues: any = {
195
- iterationId: iterationId
196
- };
197
-
198
- return this.beginRequest<ArrayBuffer>({
199
- apiVersion: "7.2-preview.1",
200
- httpResponseType: "application/zip",
201
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
202
- routeValues: {
203
- project: project,
204
- runId: runId,
205
- testCaseResultId: testCaseResultId,
206
- attachmentId: attachmentId
207
- },
208
- queryParams: queryValues
209
- });
210
- }
211
-
212
- /**
213
- * Returns a test result attachment
214
- *
215
- * @param project - Project ID or project name
216
- * @param runId -
217
- * @param testCaseResultId -
218
- * @param attachmentId -
219
- */
220
- public async getTestResultAttachmentContent(
221
- project: string,
222
- runId: number,
223
- testCaseResultId: number,
224
- attachmentId: number
225
- ): Promise<ArrayBuffer> {
226
-
227
- return this.beginRequest<ArrayBuffer>({
228
- apiVersion: "7.2-preview.1",
229
- httpResponseType: "application/octet-stream",
230
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
231
- routeValues: {
232
- project: project,
233
- runId: runId,
234
- testCaseResultId: testCaseResultId,
235
- attachmentId: attachmentId
236
- }
237
- });
238
- }
239
-
240
- /**
241
- * @param project - Project ID or project name
242
- * @param runId -
243
- * @param testCaseResultId -
244
- */
245
- public async getTestResultAttachments(
246
- project: string,
247
- runId: number,
248
- testCaseResultId: number
249
- ): Promise<Test.TestAttachment[]> {
250
-
251
- return this.beginRequest<Test.TestAttachment[]>({
252
- apiVersion: "7.2-preview.1",
253
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
254
- routeValues: {
255
- project: project,
256
- runId: runId,
257
- testCaseResultId: testCaseResultId
258
- }
259
- });
260
- }
261
-
262
- /**
263
- * Returns a test result attachment
264
- *
265
- * @param project - Project ID or project name
266
- * @param runId -
267
- * @param testCaseResultId -
268
- * @param attachmentId -
269
- */
270
- public async getTestResultAttachmentZip(
271
- project: string,
272
- runId: number,
273
- testCaseResultId: number,
274
- attachmentId: number
275
- ): Promise<ArrayBuffer> {
276
-
277
- return this.beginRequest<ArrayBuffer>({
278
- apiVersion: "7.2-preview.1",
279
- httpResponseType: "application/zip",
280
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
281
- routeValues: {
282
- project: project,
283
- runId: runId,
284
- testCaseResultId: testCaseResultId,
285
- attachmentId: attachmentId
286
- }
287
- });
288
- }
289
-
290
- /**
291
- * Returns a test sub result attachment
292
- *
293
- * @param project - Project ID or project name
294
- * @param runId -
295
- * @param testCaseResultId -
296
- * @param attachmentId -
297
- * @param testSubResultId -
298
- */
299
- public async getTestSubResultAttachmentContent(
300
- project: string,
301
- runId: number,
302
- testCaseResultId: number,
303
- attachmentId: number,
304
- testSubResultId: number
305
- ): Promise<ArrayBuffer> {
306
-
307
- const queryValues: any = {
308
- testSubResultId: testSubResultId
309
- };
310
-
311
- return this.beginRequest<ArrayBuffer>({
312
- apiVersion: "7.2-preview.1",
313
- httpResponseType: "application/octet-stream",
314
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
315
- routeValues: {
316
- project: project,
317
- runId: runId,
318
- testCaseResultId: testCaseResultId,
319
- attachmentId: attachmentId
320
- },
321
- queryParams: queryValues
322
- });
323
- }
324
-
325
- /**
326
- * Returns attachment references for test sub result.
327
- *
328
- * @param project - Project ID or project name
329
- * @param runId -
330
- * @param testCaseResultId -
331
- * @param testSubResultId -
332
- */
333
- public async getTestSubResultAttachments(
334
- project: string,
335
- runId: number,
336
- testCaseResultId: number,
337
- testSubResultId: number
338
- ): Promise<Test.TestAttachment[]> {
339
-
340
- const queryValues: any = {
341
- testSubResultId: testSubResultId
342
- };
343
-
344
- return this.beginRequest<Test.TestAttachment[]>({
345
- apiVersion: "7.2-preview.1",
346
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
347
- routeValues: {
348
- project: project,
349
- runId: runId,
350
- testCaseResultId: testCaseResultId
351
- },
352
- queryParams: queryValues
353
- });
354
- }
355
-
356
- /**
357
- * Returns a test sub result attachment
358
- *
359
- * @param project - Project ID or project name
360
- * @param runId -
361
- * @param testCaseResultId -
362
- * @param attachmentId -
363
- * @param testSubResultId -
364
- */
365
- public async getTestSubResultAttachmentZip(
366
- project: string,
367
- runId: number,
368
- testCaseResultId: number,
369
- attachmentId: number,
370
- testSubResultId: number
371
- ): Promise<ArrayBuffer> {
372
-
373
- const queryValues: any = {
374
- testSubResultId: testSubResultId
375
- };
376
-
377
- return this.beginRequest<ArrayBuffer>({
378
- apiVersion: "7.2-preview.1",
379
- httpResponseType: "application/zip",
380
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",
381
- routeValues: {
382
- project: project,
383
- runId: runId,
384
- testCaseResultId: testCaseResultId,
385
- attachmentId: attachmentId
386
- },
387
- queryParams: queryValues
388
- });
389
- }
390
-
391
- /**
392
- * @param attachmentRequestModel -
393
- * @param project - Project ID or project name
394
- * @param runId -
395
- */
396
- public async createTestRunAttachment(
397
- attachmentRequestModel: Test.TestAttachmentRequestModel,
398
- project: string,
399
- runId: number
400
- ): Promise<Test.TestAttachmentReference> {
401
-
402
- return this.beginRequest<Test.TestAttachmentReference>({
403
- apiVersion: "7.2-preview.1",
404
- method: "POST",
405
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
406
- routeValues: {
407
- project: project,
408
- runId: runId
409
- },
410
- body: attachmentRequestModel
411
- });
412
- }
413
-
414
- /**
415
- * @param project - Project ID or project name
416
- * @param runId -
417
- * @param attachmentId -
418
- */
419
- public async deleteTestRunAttachment(
420
- project: string,
421
- runId: number,
422
- attachmentId: number
423
- ): Promise<void> {
424
-
425
- return this.beginRequest<void>({
426
- apiVersion: "7.2-preview.1",
427
- method: "DELETE",
428
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
429
- routeValues: {
430
- project: project,
431
- runId: runId,
432
- attachmentId: attachmentId
433
- }
434
- });
435
- }
436
-
437
- /**
438
- * Returns a test run attachment
439
- *
440
- * @param project - Project ID or project name
441
- * @param runId -
442
- * @param attachmentId -
443
- */
444
- public async getTestRunAttachmentContent(
445
- project: string,
446
- runId: number,
447
- attachmentId: number
448
- ): Promise<ArrayBuffer> {
449
-
450
- return this.beginRequest<ArrayBuffer>({
451
- apiVersion: "7.2-preview.1",
452
- httpResponseType: "application/octet-stream",
453
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
454
- routeValues: {
455
- project: project,
456
- runId: runId,
457
- attachmentId: attachmentId
458
- }
459
- });
460
- }
461
-
462
- /**
463
- * @param project - Project ID or project name
464
- * @param runId -
465
- */
466
- public async getTestRunAttachments(
467
- project: string,
468
- runId: number
469
- ): Promise<Test.TestAttachment[]> {
470
-
471
- return this.beginRequest<Test.TestAttachment[]>({
472
- apiVersion: "7.2-preview.1",
473
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
474
- routeValues: {
475
- project: project,
476
- runId: runId
477
- }
478
- });
479
- }
480
-
481
- /**
482
- * Returns a test run attachment
483
- *
484
- * @param project - Project ID or project name
485
- * @param runId -
486
- * @param attachmentId -
487
- */
488
- public async getTestRunAttachmentZip(
489
- project: string,
490
- runId: number,
491
- attachmentId: number
492
- ): Promise<ArrayBuffer> {
493
-
494
- return this.beginRequest<ArrayBuffer>({
495
- apiVersion: "7.2-preview.1",
496
- httpResponseType: "application/zip",
497
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",
498
- routeValues: {
499
- project: project,
500
- runId: runId,
501
- attachmentId: attachmentId
502
- }
503
- });
504
- }
505
-
506
- /**
507
- * @param project - Project ID or project name
508
- * @param runId -
509
- * @param testCaseResultId -
510
- */
511
- public async getBugsLinkedToTestResult(
512
- project: string,
513
- runId: number,
514
- testCaseResultId: number
515
- ): Promise<Test.WorkItemReference[]> {
516
-
517
- return this.beginRequest<Test.WorkItemReference[]>({
518
- apiVersion: "7.2-preview.1",
519
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",
520
- routeValues: {
521
- project: project,
522
- runId: runId,
523
- testCaseResultId: testCaseResultId
524
- }
525
- });
526
- }
527
-
528
- /**
529
- * @param project - Project ID or project name
530
- * @param buildId -
531
- */
532
- public async fetchSourceCodeCoverageReport(
533
- project: string,
534
- buildId: number
535
- ): Promise<Test.SourceViewBuildCoverage[]> {
536
-
537
- const queryValues: any = {
538
- buildId: buildId
539
- };
540
-
541
- return this.beginRequest<Test.SourceViewBuildCoverage[]>({
542
- apiVersion: "7.2-preview.1",
543
- routeTemplate: "{project}/_apis/testresults/codecoverage/sourceview",
544
- routeValues: {
545
- project: project
546
- },
547
- queryParams: queryValues
548
- });
549
- }
550
-
551
- /**
552
- * @param project - Project ID or project name
553
- * @param buildId -
554
- * @param flags -
555
- */
556
- public async getBuildCodeCoverage(
557
- project: string,
558
- buildId: number,
559
- flags: number
560
- ): Promise<Test.BuildCoverage[]> {
561
-
562
- const queryValues: any = {
563
- buildId: buildId,
564
- flags: flags
565
- };
566
-
567
- return this.beginRequest<Test.BuildCoverage[]>({
568
- apiVersion: "7.2-preview.1",
569
- routeTemplate: "{project}/_apis/testresults/codecoverage",
570
- routeValues: {
571
- project: project
572
- },
573
- queryParams: queryValues
574
- });
575
- }
576
-
577
- /**
578
- * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10&deltaBuildId=9 Request: build id and delta build id (optional)
579
- *
580
- * @param project - Project ID or project name
581
- * @param buildId -
582
- * @param deltaBuildId -
583
- */
584
- public async getCodeCoverageSummary(
585
- project: string,
586
- buildId: number,
587
- deltaBuildId?: number
588
- ): Promise<Test.CodeCoverageSummary> {
589
-
590
- const queryValues: any = {
591
- buildId: buildId,
592
- deltaBuildId: deltaBuildId
593
- };
594
-
595
- return this.beginRequest<Test.CodeCoverageSummary>({
596
- apiVersion: "7.2-preview.1",
597
- routeTemplate: "{project}/_apis/testresults/codecoverage",
598
- routeValues: {
599
- project: project
600
- },
601
- queryParams: queryValues
602
- });
603
- }
604
-
605
- /**
606
- * http://(tfsserver):8080/tfs/DefaultCollection/_apis/test/CodeCoverage?buildId=10 Request: Json of code coverage summary
607
- *
608
- * @param project - Project ID or project name
609
- * @param buildId -
610
- * @param coverageData -
611
- */
612
- public async updateCodeCoverageSummary(
613
- project: string,
614
- buildId: number,
615
- coverageData?: Test.CodeCoverageData
616
- ): Promise<void> {
617
-
618
- const queryValues: any = {
619
- buildId: buildId
620
- };
621
-
622
- return this.beginRequest<void>({
623
- apiVersion: "7.2-preview.1",
624
- method: "POST",
625
- routeTemplate: "{project}/_apis/testresults/codecoverage",
626
- routeValues: {
627
- project: project
628
- },
629
- queryParams: queryValues,
630
- body: coverageData
631
- });
632
- }
633
-
634
- /**
635
- * @param project - Project ID or project name
636
- * @param runId -
637
- * @param flags -
638
- */
639
- public async getTestRunCodeCoverage(
640
- project: string,
641
- runId: number,
642
- flags: number
643
- ): Promise<Test.TestRunCoverage[]> {
644
-
645
- const queryValues: any = {
646
- flags: flags
647
- };
648
-
649
- return this.beginRequest<Test.TestRunCoverage[]>({
650
- apiVersion: "7.2-preview.1",
651
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/codecoverage",
652
- routeValues: {
653
- project: project,
654
- runId: runId
655
- },
656
- queryParams: queryValues
657
- });
658
- }
659
-
660
- /**
661
- * Creates custom test fields based on the data provided.
662
- *
663
- * @param newFields - NewFields is an array of type CustomTestFieldDefinition.
664
- * @param project - Project ID or project name
665
- */
666
- public async addCustomFields(
667
- newFields: Test.CustomTestFieldDefinition[],
668
- project: string
669
- ): Promise<Test.CustomTestFieldDefinition[]> {
670
-
671
- return this.beginRequest<Test.CustomTestFieldDefinition[]>({
672
- apiVersion: "7.2-preview.1",
673
- method: "POST",
674
- routeTemplate: "{project}/_apis/testresults/extensionfields",
675
- routeValues: {
676
- project: project
677
- },
678
- body: newFields
679
- });
680
- }
681
-
682
- /**
683
- * Returns List of custom test fields for the given custom test field scope.
684
- *
685
- * @param project - Project ID or project name
686
- * @param scopeFilter - Scope of custom test fields which are to be returned.
687
- */
688
- public async queryCustomFields(
689
- project: string,
690
- scopeFilter: Test.CustomTestFieldScope
691
- ): Promise<Test.CustomTestFieldDefinition[]> {
692
-
693
- const queryValues: any = {
694
- scopeFilter: scopeFilter
695
- };
696
-
697
- return this.beginRequest<Test.CustomTestFieldDefinition[]>({
698
- apiVersion: "7.2-preview.1",
699
- routeTemplate: "{project}/_apis/testresults/extensionfields",
700
- routeValues: {
701
- project: project
702
- },
703
- queryParams: queryValues
704
- });
705
- }
706
-
707
- /**
708
- * Returns details of the custom test field for the specified testExtensionFieldId.
709
- *
710
- * @param project - Project ID or project name
711
- * @param testExtensionFieldId - Custom test field id which has to be deleted.
712
- */
713
- public async deleteCustomFieldById(
714
- project: string,
715
- testExtensionFieldId: number
716
- ): Promise<void> {
717
-
718
- return this.beginRequest<void>({
719
- apiVersion: "7.2-preview.1",
720
- method: "DELETE",
721
- routeTemplate: "{project}/_apis/testresults/extensionfields/{testExtensionFieldId}",
722
- routeValues: {
723
- project: project,
724
- testExtensionFieldId: testExtensionFieldId
725
- }
726
- });
727
- }
728
-
729
- /**
730
- * Returns details of the custom test field which is updated.
731
- *
732
- * @param updateCustomTestField - Custom test field which has to be updated.
733
- * @param project - Project ID or project name
734
- */
735
- public async updateCustomField(
736
- updateCustomTestField: Test.CustomTestFieldUpdateDefinition,
737
- project: string
738
- ): Promise<Test.CustomTestFieldDefinition> {
739
-
740
- return this.beginRequest<Test.CustomTestFieldDefinition>({
741
- apiVersion: "7.2-preview.1",
742
- method: "PATCH",
743
- routeTemplate: "{project}/_apis/testresults/extensionfields/{testExtensionFieldId}",
744
- routeValues: {
745
- project: project
746
- },
747
- body: updateCustomTestField
748
- });
749
- }
750
-
751
- /**
752
- * Get file coverage for the specified file
753
- *
754
- * @param fileCoverageRequest - File details with pull request iteration context
755
- * @param project - Project ID or project name
756
- */
757
- public async getFileLevelCodeCoverage(
758
- fileCoverageRequest: Test.FileCoverageRequest,
759
- project: string
760
- ): Promise<string> {
761
-
762
- return this.beginRequest<string>({
763
- apiVersion: "7.2-preview.1",
764
- method: "POST",
765
- httpResponseType: "text/plain",
766
- routeTemplate: "{project}/_apis/testresults/codecoverage/filecoverage",
767
- routeValues: {
768
- project: project
769
- },
770
- body: fileCoverageRequest
771
- });
772
- }
773
-
774
- /**
775
- * @param project - Project ID or project name
776
- * @param buildDefinitionId -
777
- * @param minBuildCreatedDate -
778
- */
779
- public async getFlakyTestResultsByBuildDefinitionId(
780
- project: string,
781
- buildDefinitionId: number,
782
- minBuildCreatedDate: Date
783
- ): Promise<Test.TestCaseResult[]> {
784
-
785
- const queryValues: any = {
786
- buildDefinitionId: buildDefinitionId,
787
- minBuildCreatedDate: minBuildCreatedDate
788
- };
789
-
790
- return this.beginRequest<Test.TestCaseResult[]>({
791
- apiVersion: "7.2-preview.1",
792
- routeTemplate: "{project}/_apis/testresults/flakytestresults/builddefinition",
793
- routeValues: {
794
- project: project
795
- },
796
- queryParams: queryValues
797
- });
798
- }
799
-
800
- /**
801
- * @param project - Project ID or project name
802
- * @param runId -
803
- */
804
- public async getFlakyTestResultsByTestRun(
805
- project: string,
806
- runId: number
807
- ): Promise<Test.TestCaseResult[]> {
808
-
809
- return this.beginRequest<Test.TestCaseResult[]>({
810
- apiVersion: "7.2-preview.1",
811
- routeTemplate: "{project}/_apis/testresults/flakytestresults/runs/{runId}",
812
- routeValues: {
813
- project: project,
814
- runId: runId
815
- }
816
- });
817
- }
818
-
819
- /**
820
- * @param filter -
821
- * @param project - Project ID or project name
822
- */
823
- public async queryTestResultHistory(
824
- filter: Test.ResultsFilter,
825
- project: string
826
- ): Promise<Test.TestResultHistory> {
827
-
828
- return this.beginRequest<Test.TestResultHistory>({
829
- apiVersion: "7.2-preview.1",
830
- method: "POST",
831
- routeTemplate: "{project}/_apis/testresults/results/History",
832
- routeValues: {
833
- project: project
834
- },
835
- body: filter
836
- });
837
- }
838
-
839
- /**
840
- * Get test run message logs
841
- *
842
- * @param project - Project ID or project name
843
- * @param runId - ID of the run to get.
844
- */
845
- public async getTestRunMessageLogs(
846
- project: string,
847
- runId: number
848
- ): Promise<Test.TestMessageLogDetails[]> {
849
-
850
- return this.beginRequest<Test.TestMessageLogDetails[]>({
851
- apiVersion: "7.2-preview.1",
852
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/MessageLogs",
853
- routeValues: {
854
- project: project,
855
- runId: runId
856
- }
857
- });
858
- }
859
-
860
- /**
861
- * Get summary of test results.
862
- *
863
- * @param project - Project ID or project name
864
- * @param pipelineId - Pipeline Id. This is same as build Id.
865
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
866
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
867
- * @param jobName - 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.
868
- * @param metricNames -
869
- * @param groupByNode - Group summary for each node of the pipleine heirarchy
870
- */
871
- public async getTestPipelineMetrics(
872
- project: string,
873
- pipelineId: number,
874
- stageName?: string,
875
- phaseName?: string,
876
- jobName?: string,
877
- metricNames?: Test.Metrics[],
878
- groupByNode?: boolean
879
- ): Promise<Test.PipelineTestMetrics> {
880
-
881
- const queryValues: any = {
882
- pipelineId: pipelineId,
883
- stageName: stageName,
884
- phaseName: phaseName,
885
- jobName: jobName,
886
- metricNames: metricNames && metricNames.join(","),
887
- groupByNode: groupByNode
888
- };
889
-
890
- return this.beginRequest<Test.PipelineTestMetrics>({
891
- apiVersion: "7.2-preview.1",
892
- routeTemplate: "{project}/_apis/testresults/metrics",
893
- routeValues: {
894
- project: project
895
- },
896
- queryParams: queryValues
897
- });
898
- }
899
-
900
- /**
901
- * @param project - Project ID or project name
902
- * @param buildId -
903
- * @param publishContext -
904
- * @param groupBy -
905
- * @param filter -
906
- * @param orderby -
907
- * @param shouldIncludeResults -
908
- * @param queryRunSummaryForInProgress -
909
- */
910
- public async getTestResultDetailsForBuild(
911
- project: string,
912
- buildId: number,
913
- publishContext?: string,
914
- groupBy?: string,
915
- filter?: string,
916
- orderby?: string,
917
- shouldIncludeResults?: boolean,
918
- queryRunSummaryForInProgress?: boolean
919
- ): Promise<Test.TestResultsDetails> {
920
-
921
- const queryValues: any = {
922
- buildId: buildId,
923
- publishContext: publishContext,
924
- groupBy: groupBy,
925
- '$filter': filter,
926
- '$orderby': orderby,
927
- shouldIncludeResults: shouldIncludeResults,
928
- queryRunSummaryForInProgress: queryRunSummaryForInProgress
929
- };
930
-
931
- return this.beginRequest<Test.TestResultsDetails>({
932
- apiVersion: "7.2-preview.1",
933
- routeTemplate: "{project}/_apis/testresults/resultdetailsbybuild",
934
- routeValues: {
935
- project: project
936
- },
937
- queryParams: queryValues
938
- });
939
- }
940
-
941
- /**
942
- * @param project - Project ID or project name
943
- * @param releaseId -
944
- * @param releaseEnvId -
945
- * @param publishContext -
946
- * @param groupBy -
947
- * @param filter -
948
- * @param orderby -
949
- * @param shouldIncludeResults -
950
- * @param queryRunSummaryForInProgress -
951
- */
952
- public async getTestResultDetailsForRelease(
953
- project: string,
954
- releaseId: number,
955
- releaseEnvId: number,
956
- publishContext?: string,
957
- groupBy?: string,
958
- filter?: string,
959
- orderby?: string,
960
- shouldIncludeResults?: boolean,
961
- queryRunSummaryForInProgress?: boolean
962
- ): Promise<Test.TestResultsDetails> {
963
-
964
- const queryValues: any = {
965
- releaseId: releaseId,
966
- releaseEnvId: releaseEnvId,
967
- publishContext: publishContext,
968
- groupBy: groupBy,
969
- '$filter': filter,
970
- '$orderby': orderby,
971
- shouldIncludeResults: shouldIncludeResults,
972
- queryRunSummaryForInProgress: queryRunSummaryForInProgress
973
- };
974
-
975
- return this.beginRequest<Test.TestResultsDetails>({
976
- apiVersion: "7.2-preview.1",
977
- routeTemplate: "{project}/_apis/testresults/resultdetailsbyrelease",
978
- routeValues: {
979
- project: project
980
- },
981
- queryParams: queryValues
982
- });
983
- }
984
-
985
- /**
986
- * @param document -
987
- * @param project - Project ID or project name
988
- * @param runId -
989
- */
990
- public async publishTestResultDocument(
991
- document: Test.TestResultDocument,
992
- project: string,
993
- runId: number
994
- ): Promise<Test.TestResultDocument> {
995
-
996
- return this.beginRequest<Test.TestResultDocument>({
997
- apiVersion: "7.2-preview.1",
998
- method: "POST",
999
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/ResultDocument",
1000
- routeValues: {
1001
- project: project,
1002
- runId: runId
1003
- },
1004
- body: document
1005
- });
1006
- }
1007
-
1008
- /**
1009
- * @param project - Project ID or project name
1010
- * @param buildId -
1011
- * @param publishContext -
1012
- * @param fields -
1013
- * @param continuationToken -
1014
- */
1015
- public async getResultGroupsByBuild(
1016
- project: string,
1017
- buildId: number,
1018
- publishContext: string,
1019
- fields?: string[],
1020
- continuationToken?: string
1021
- ): Promise<WebApi.PagedList<Test.FieldDetailsForTestResults>> {
1022
-
1023
- const queryValues: any = {
1024
- buildId: buildId,
1025
- publishContext: publishContext,
1026
- fields: fields && fields.join(","),
1027
- continuationToken: continuationToken
1028
- };
1029
-
1030
- return this.beginRequest<Response>({
1031
- apiVersion: "7.2-preview.1",
1032
- routeTemplate: "{project}/_apis/testresults/resultgroupsbybuild",
1033
- routeValues: {
1034
- project: project
1035
- },
1036
- queryParams: queryValues,
1037
- returnRawResponse: true
1038
- }).then(async response => {
1039
- const body = <WebApi.PagedList<Test.FieldDetailsForTestResults>>await response.text().then(deserializeVssJsonObject);
1040
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1041
- return body;
1042
- });
1043
- }
1044
-
1045
- /**
1046
- * @param project - Project ID or project name
1047
- * @param releaseId -
1048
- * @param publishContext -
1049
- * @param releaseEnvId -
1050
- * @param fields -
1051
- * @param continuationToken -
1052
- */
1053
- public async getResultGroupsByRelease(
1054
- project: string,
1055
- releaseId: number,
1056
- publishContext: string,
1057
- releaseEnvId?: number,
1058
- fields?: string[],
1059
- continuationToken?: string
1060
- ): Promise<WebApi.PagedList<Test.FieldDetailsForTestResults>> {
1061
-
1062
- const queryValues: any = {
1063
- releaseId: releaseId,
1064
- publishContext: publishContext,
1065
- releaseEnvId: releaseEnvId,
1066
- fields: fields && fields.join(","),
1067
- continuationToken: continuationToken
1068
- };
1069
-
1070
- return this.beginRequest<Response>({
1071
- apiVersion: "7.2-preview.1",
1072
- routeTemplate: "{project}/_apis/testresults/resultgroupsbyrelease",
1073
- routeValues: {
1074
- project: project
1075
- },
1076
- queryParams: queryValues,
1077
- returnRawResponse: true
1078
- }).then(async response => {
1079
- const body = <WebApi.PagedList<Test.FieldDetailsForTestResults>>await response.text().then(deserializeVssJsonObject);
1080
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1081
- return body;
1082
- });
1083
- }
1084
-
1085
- /**
1086
- * Get list of test Result meta data details for corresponding testcasereferenceId
1087
- *
1088
- * @param testCaseReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
1089
- * @param project - Project ID or project name
1090
- * @param detailsToInclude - Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers.
1091
- */
1092
- public async queryTestResultsMetaData(
1093
- testCaseReferenceIds: string[],
1094
- project: string,
1095
- detailsToInclude?: Test.ResultMetaDataDetails
1096
- ): Promise<Test.TestResultMetaData[]> {
1097
-
1098
- const queryValues: any = {
1099
- detailsToInclude: detailsToInclude
1100
- };
1101
-
1102
- return this.beginRequest<Test.TestResultMetaData[]>({
1103
- apiVersion: "7.2-preview.4",
1104
- method: "POST",
1105
- routeTemplate: "{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",
1106
- routeValues: {
1107
- project: project
1108
- },
1109
- queryParams: queryValues,
1110
- body: testCaseReferenceIds
1111
- });
1112
- }
1113
-
1114
- /**
1115
- * Update properties of test result meta data
1116
- *
1117
- * @param testResultMetaDataUpdateInput - TestResultMetaData update input TestResultMetaDataUpdateInput
1118
- * @param project - Project ID or project name
1119
- * @param testCaseReferenceId - TestCaseReference Id of Test Result to be updated.
1120
- */
1121
- public async updateTestResultsMetaData(
1122
- testResultMetaDataUpdateInput: Test.TestResultMetaDataUpdateInput,
1123
- project: string,
1124
- testCaseReferenceId: number
1125
- ): Promise<Test.TestResultMetaData> {
1126
-
1127
- return this.beginRequest<Test.TestResultMetaData>({
1128
- apiVersion: "7.2-preview.4",
1129
- method: "PATCH",
1130
- routeTemplate: "{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",
1131
- routeValues: {
1132
- project: project,
1133
- testCaseReferenceId: testCaseReferenceId
1134
- },
1135
- body: testResultMetaDataUpdateInput
1136
- });
1137
- }
1138
-
1139
- /**
1140
- * @param query -
1141
- * @param project - Project ID or project name
1142
- */
1143
- public async getTestResultsByQuery(
1144
- query: Test.TestResultsQuery,
1145
- project: string
1146
- ): Promise<Test.TestResultsQuery> {
1147
-
1148
- return this.beginRequest<Test.TestResultsQuery>({
1149
- apiVersion: "7.2-preview.2",
1150
- method: "POST",
1151
- routeTemplate: "{project}/_apis/testresults/results",
1152
- routeValues: {
1153
- project: project
1154
- },
1155
- body: query
1156
- });
1157
- }
1158
-
1159
- /**
1160
- * @param queryModel -
1161
- * @param project - Project ID or project name
1162
- * @param includeResultDetails -
1163
- * @param includeIterationDetails -
1164
- * @param skip -
1165
- * @param top -
1166
- */
1167
- public async getTestResultsByQueryWiql(
1168
- queryModel: Test.QueryModel,
1169
- project: string,
1170
- includeResultDetails?: boolean,
1171
- includeIterationDetails?: boolean,
1172
- skip?: number,
1173
- top?: number
1174
- ): Promise<Test.TestCaseResult[]> {
1175
-
1176
- const queryValues: any = {
1177
- includeResultDetails: includeResultDetails,
1178
- includeIterationDetails: includeIterationDetails,
1179
- '$skip': skip,
1180
- '$top': top
1181
- };
1182
-
1183
- return this.beginRequest<Test.TestCaseResult[]>({
1184
- apiVersion: "7.2-preview.2",
1185
- method: "POST",
1186
- routeTemplate: "{project}/_apis/testresults/results/query",
1187
- routeValues: {
1188
- project: project
1189
- },
1190
- queryParams: queryValues,
1191
- body: queryModel
1192
- });
1193
- }
1194
-
1195
- /**
1196
- * @param results -
1197
- * @param project - Project ID or project name
1198
- * @param runId -
1199
- */
1200
- public async addTestResultsToTestRun(
1201
- results: Test.TestCaseResult[],
1202
- project: string,
1203
- runId: number
1204
- ): Promise<Test.TestCaseResult[]> {
1205
-
1206
- return this.beginRequest<Test.TestCaseResult[]>({
1207
- apiVersion: "7.2-preview.2",
1208
- method: "POST",
1209
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
1210
- routeValues: {
1211
- project: project,
1212
- runId: runId
1213
- },
1214
- body: results
1215
- });
1216
- }
1217
-
1218
- /**
1219
- * @param project - Project ID or project name
1220
- * @param runId -
1221
- * @param testResultId -
1222
- * @param detailsToInclude -
1223
- */
1224
- public async getTestResultById(
1225
- project: string,
1226
- runId: number,
1227
- testResultId: number,
1228
- detailsToInclude?: Test.ResultDetails
1229
- ): Promise<Test.TestCaseResult> {
1230
-
1231
- const queryValues: any = {
1232
- detailsToInclude: detailsToInclude
1233
- };
1234
-
1235
- return this.beginRequest<Test.TestCaseResult>({
1236
- apiVersion: "7.2-preview.2",
1237
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
1238
- routeValues: {
1239
- project: project,
1240
- runId: runId,
1241
- testResultId: testResultId
1242
- },
1243
- queryParams: queryValues
1244
- });
1245
- }
1246
-
1247
- /**
1248
- * @param project - Project ID or project name
1249
- * @param runId -
1250
- * @param detailsToInclude -
1251
- * @param skip -
1252
- * @param top -
1253
- * @param outcomes -
1254
- * @param newTestsOnly -
1255
- */
1256
- public async getTestResults(
1257
- project: string,
1258
- runId: number,
1259
- detailsToInclude?: Test.ResultDetails,
1260
- skip?: number,
1261
- top?: number,
1262
- outcomes?: Test.TestOutcome[],
1263
- newTestsOnly?: boolean
1264
- ): Promise<Test.TestCaseResult[]> {
1265
-
1266
- const queryValues: any = {
1267
- detailsToInclude: detailsToInclude,
1268
- '$skip': skip,
1269
- '$top': top,
1270
- outcomes: outcomes && outcomes.join(","),
1271
- '$newTestsOnly': newTestsOnly
1272
- };
1273
-
1274
- return this.beginRequest<Test.TestCaseResult[]>({
1275
- apiVersion: "7.2-preview.2",
1276
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
1277
- routeValues: {
1278
- project: project,
1279
- runId: runId
1280
- },
1281
- queryParams: queryValues
1282
- });
1283
- }
1284
-
1285
- /**
1286
- * @param results -
1287
- * @param project - Project ID or project name
1288
- * @param runId -
1289
- */
1290
- public async updateTestResults(
1291
- results: Test.TestCaseResult[],
1292
- project: string,
1293
- runId: number
1294
- ): Promise<Test.TestCaseResult[]> {
1295
-
1296
- return this.beginRequest<Test.TestCaseResult[]>({
1297
- apiVersion: "7.2-preview.2",
1298
- method: "PATCH",
1299
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}",
1300
- routeValues: {
1301
- project: project,
1302
- runId: runId
1303
- },
1304
- body: results
1305
- });
1306
- }
1307
-
1308
- /**
1309
- * @param project - Project ID or project name
1310
- * @param buildId -
1311
- * @param publishContext -
1312
- * @param outcomes -
1313
- * @param top -
1314
- * @param continuationToken -
1315
- */
1316
- public async getTestResultsByBuild(
1317
- project: string,
1318
- buildId: number,
1319
- publishContext?: string,
1320
- outcomes?: Test.TestOutcome[],
1321
- top?: number,
1322
- continuationToken?: string
1323
- ): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
1324
-
1325
- const queryValues: any = {
1326
- buildId: buildId,
1327
- publishContext: publishContext,
1328
- outcomes: outcomes && outcomes.join(","),
1329
- '$top': top,
1330
- continuationToken: continuationToken
1331
- };
1332
-
1333
- return this.beginRequest<Response>({
1334
- apiVersion: "7.2-preview.1",
1335
- routeTemplate: "{project}/_apis/testresults/resultsbybuild",
1336
- routeValues: {
1337
- project: project
1338
- },
1339
- queryParams: queryValues,
1340
- returnRawResponse: true
1341
- }).then(async response => {
1342
- const body = <WebApi.PagedList<Test.ShallowTestCaseResult>>await response.text().then(deserializeVssJsonObject);
1343
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1344
- return body;
1345
- });
1346
- }
1347
-
1348
- /**
1349
- * Get a list of results.
1350
- *
1351
- * @param project - Project ID or project name
1352
- * @param pipelineId - Pipeline Id. This is same as build Id.
1353
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
1354
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
1355
- * @param jobName - 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.
1356
- * @param outcomes - List of outcome of results
1357
- * @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not.
1358
- * @param top - Maximum number of results to return
1359
- * @param continuationToken - Header to pass the continuationToken
1360
- */
1361
- public async getTestResultsByPipeline(
1362
- project: string,
1363
- pipelineId: number,
1364
- stageName?: string,
1365
- phaseName?: string,
1366
- jobName?: string,
1367
- outcomes?: Test.TestOutcome[],
1368
- includeAllBuildRuns?: boolean,
1369
- top?: number,
1370
- continuationToken?: String
1371
- ): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
1372
-
1373
- const queryValues: any = {
1374
- pipelineId: pipelineId,
1375
- stageName: stageName,
1376
- phaseName: phaseName,
1377
- jobName: jobName,
1378
- outcomes: outcomes && outcomes.join(","),
1379
- includeAllBuildRuns: includeAllBuildRuns,
1380
- '$top': top
1381
- };
1382
-
1383
- return this.beginRequest<Response>({
1384
- apiVersion: "7.2-preview.1",
1385
- routeTemplate: "{project}/_apis/testresults/resultsbypipeline",
1386
- routeValues: {
1387
- project: project
1388
- },
1389
- customHeaders: {
1390
- "x-ms-continuationtoken": continuationToken,
1391
- },
1392
- queryParams: queryValues,
1393
- returnRawResponse: true
1394
- }).then(async response => {
1395
- const body = <WebApi.PagedList<Test.ShallowTestCaseResult>>await response.text().then(deserializeVssJsonObject);
1396
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1397
- return body;
1398
- });
1399
- }
1400
-
1401
- /**
1402
- * @param project - Project ID or project name
1403
- * @param releaseId -
1404
- * @param releaseEnvid -
1405
- * @param publishContext -
1406
- * @param outcomes -
1407
- * @param top -
1408
- * @param continuationToken -
1409
- */
1410
- public async getTestResultsByRelease(
1411
- project: string,
1412
- releaseId: number,
1413
- releaseEnvid?: number,
1414
- publishContext?: string,
1415
- outcomes?: Test.TestOutcome[],
1416
- top?: number,
1417
- continuationToken?: string
1418
- ): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
1419
-
1420
- const queryValues: any = {
1421
- releaseId: releaseId,
1422
- releaseEnvid: releaseEnvid,
1423
- publishContext: publishContext,
1424
- outcomes: outcomes && outcomes.join(","),
1425
- '$top': top,
1426
- continuationToken: continuationToken
1427
- };
1428
-
1429
- return this.beginRequest<Response>({
1430
- apiVersion: "7.2-preview.1",
1431
- routeTemplate: "{project}/_apis/testresults/resultsbyrelease",
1432
- routeValues: {
1433
- project: project
1434
- },
1435
- queryParams: queryValues,
1436
- returnRawResponse: true
1437
- }).then(async response => {
1438
- const body = <WebApi.PagedList<Test.ShallowTestCaseResult>>await response.text().then(deserializeVssJsonObject);
1439
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1440
- return body;
1441
- });
1442
- }
1443
-
1444
- /**
1445
- * Get all the available groups details and for these groups get failed and aborted results.
1446
- *
1447
- * @param project - Project ID or project name
1448
- * @param pipelineId - Pipeline Id. This is same as build Id.
1449
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
1450
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
1451
- * @param jobName - 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.
1452
- * @param shouldIncludeFailedAndAbortedResults - If true, it will return Ids of failed and aborted results for each test group
1453
- * @param queryGroupSummaryForInProgress - If true, it will calculate summary for InProgress runs as well.
1454
- */
1455
- public async testResultsGroupDetails(
1456
- project: string,
1457
- pipelineId: number,
1458
- stageName?: string,
1459
- phaseName?: string,
1460
- jobName?: string,
1461
- shouldIncludeFailedAndAbortedResults?: boolean,
1462
- queryGroupSummaryForInProgress?: boolean
1463
- ): Promise<Test.TestResultsDetails> {
1464
-
1465
- const queryValues: any = {
1466
- pipelineId: pipelineId,
1467
- stageName: stageName,
1468
- phaseName: phaseName,
1469
- jobName: jobName,
1470
- shouldIncludeFailedAndAbortedResults: shouldIncludeFailedAndAbortedResults,
1471
- queryGroupSummaryForInProgress: queryGroupSummaryForInProgress
1472
- };
1473
-
1474
- return this.beginRequest<Test.TestResultsDetails>({
1475
- apiVersion: "7.2-preview.1",
1476
- routeTemplate: "{project}/_apis/testresults/resultsgroupDetails",
1477
- routeValues: {
1478
- project: project
1479
- },
1480
- queryParams: queryValues
1481
- });
1482
- }
1483
-
1484
- /**
1485
- * @param project - Project ID or project name
1486
- * @param buildId -
1487
- * @param publishContext -
1488
- * @param includeFailureDetails -
1489
- * @param buildToCompare -
1490
- */
1491
- public async queryTestResultsReportForBuild(
1492
- project: string,
1493
- buildId: number,
1494
- publishContext?: string,
1495
- includeFailureDetails?: boolean,
1496
- buildToCompare?: Test.BuildReference
1497
- ): Promise<Test.TestResultSummary> {
1498
-
1499
- const queryValues: any = {
1500
- buildId: buildId,
1501
- publishContext: publishContext,
1502
- includeFailureDetails: includeFailureDetails,
1503
- buildToCompare: buildToCompare
1504
- };
1505
-
1506
- return this.beginRequest<Test.TestResultSummary>({
1507
- apiVersion: "7.2-preview.1",
1508
- routeTemplate: "{project}/_apis/testresults/resultsummarybybuild",
1509
- routeValues: {
1510
- project: project
1511
- },
1512
- queryParams: queryValues
1513
- });
1514
- }
1515
-
1516
- /**
1517
- * Get summary of test results.
1518
- *
1519
- * @param project - Project ID or project name
1520
- * @param pipelineId - Pipeline Id. This is same as build Id.
1521
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
1522
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
1523
- * @param jobName - 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.
1524
- * @param includeFailureDetails - If true returns failure insights
1525
- */
1526
- public async queryTestResultsReportForPipeline(
1527
- project: string,
1528
- pipelineId: number,
1529
- stageName?: string,
1530
- phaseName?: string,
1531
- jobName?: string,
1532
- includeFailureDetails?: boolean
1533
- ): Promise<Test.TestResultSummary> {
1534
-
1535
- const queryValues: any = {
1536
- pipelineId: pipelineId,
1537
- stageName: stageName,
1538
- phaseName: phaseName,
1539
- jobName: jobName,
1540
- includeFailureDetails: includeFailureDetails
1541
- };
1542
-
1543
- return this.beginRequest<Test.TestResultSummary>({
1544
- apiVersion: "7.2-preview.1",
1545
- routeTemplate: "{project}/_apis/testresults/resultsummarybypipeline",
1546
- routeValues: {
1547
- project: project
1548
- },
1549
- queryParams: queryValues
1550
- });
1551
- }
1552
-
1553
- /**
1554
- * @param project - Project ID or project name
1555
- * @param releaseId -
1556
- * @param releaseEnvId -
1557
- * @param publishContext -
1558
- * @param includeFailureDetails -
1559
- * @param releaseToCompare -
1560
- */
1561
- public async queryTestResultsReportForRelease(
1562
- project: string,
1563
- releaseId: number,
1564
- releaseEnvId: number,
1565
- publishContext?: string,
1566
- includeFailureDetails?: boolean,
1567
- releaseToCompare?: Test.ReleaseReference
1568
- ): Promise<Test.TestResultSummary> {
1569
-
1570
- const queryValues: any = {
1571
- releaseId: releaseId,
1572
- releaseEnvId: releaseEnvId,
1573
- publishContext: publishContext,
1574
- includeFailureDetails: includeFailureDetails,
1575
- releaseToCompare: releaseToCompare
1576
- };
1577
-
1578
- return this.beginRequest<Test.TestResultSummary>({
1579
- apiVersion: "7.2-preview.1",
1580
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
1581
- routeValues: {
1582
- project: project
1583
- },
1584
- queryParams: queryValues
1585
- });
1586
- }
1587
-
1588
- /**
1589
- * @param releases -
1590
- * @param project - Project ID or project name
1591
- */
1592
- public async queryTestResultsSummaryForReleases(
1593
- releases: Test.ReleaseReference[],
1594
- project: string
1595
- ): Promise<Test.TestResultSummary[]> {
1596
-
1597
- return this.beginRequest<Test.TestResultSummary[]>({
1598
- apiVersion: "7.2-preview.1",
1599
- method: "POST",
1600
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
1601
- routeValues: {
1602
- project: project
1603
- },
1604
- body: releases
1605
- });
1606
- }
1607
-
1608
- /**
1609
- * @param resultsContext -
1610
- * @param project - Project ID or project name
1611
- * @param workItemIds -
1612
- */
1613
- public async queryTestSummaryByRequirement(
1614
- resultsContext: Test.TestResultsContext,
1615
- project: string,
1616
- workItemIds?: number[]
1617
- ): Promise<Test.TestSummaryForWorkItem[]> {
1618
-
1619
- const queryValues: any = {
1620
- workItemIds: workItemIds && workItemIds.join(",")
1621
- };
1622
-
1623
- return this.beginRequest<Test.TestSummaryForWorkItem[]>({
1624
- apiVersion: "7.2-preview.1",
1625
- method: "POST",
1626
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrequirement",
1627
- routeValues: {
1628
- project: project
1629
- },
1630
- queryParams: queryValues,
1631
- body: resultsContext
1632
- });
1633
- }
1634
-
1635
- /**
1636
- * @param filter -
1637
- * @param project - Project ID or project name
1638
- */
1639
- public async queryResultTrendForBuild(
1640
- filter: Test.TestResultTrendFilter,
1641
- project: string
1642
- ): Promise<Test.AggregatedDataForResultTrend[]> {
1643
-
1644
- return this.beginRequest<Test.AggregatedDataForResultTrend[]>({
1645
- apiVersion: "7.2-preview.1",
1646
- method: "POST",
1647
- routeTemplate: "{project}/_apis/testresults/ResultTrendByBuild",
1648
- routeValues: {
1649
- project: project
1650
- },
1651
- body: filter
1652
- });
1653
- }
1654
-
1655
- /**
1656
- * @param filter -
1657
- * @param project - Project ID or project name
1658
- */
1659
- public async queryResultTrendForRelease(
1660
- filter: Test.TestResultTrendFilter,
1661
- project: string
1662
- ): Promise<Test.AggregatedDataForResultTrend[]> {
1663
-
1664
- return this.beginRequest<Test.AggregatedDataForResultTrend[]>({
1665
- apiVersion: "7.2-preview.1",
1666
- method: "POST",
1667
- routeTemplate: "{project}/_apis/testresults/ResultTrendByRelease",
1668
- routeValues: {
1669
- project: project
1670
- },
1671
- body: filter
1672
- });
1673
- }
1674
-
1675
- /**
1676
- * @param testRun -
1677
- * @param project - Project ID or project name
1678
- */
1679
- public async createTestRun(
1680
- testRun: Test.RunCreateModel,
1681
- project: string
1682
- ): Promise<Test.TestRun> {
1683
-
1684
- return this.beginRequest<Test.TestRun>({
1685
- apiVersion: "7.2-preview.1",
1686
- method: "POST",
1687
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1688
- routeValues: {
1689
- project: project
1690
- },
1691
- body: testRun
1692
- });
1693
- }
1694
-
1695
- /**
1696
- * @param project - Project ID or project name
1697
- * @param runId -
1698
- */
1699
- public async deleteTestRun(
1700
- project: string,
1701
- runId: number
1702
- ): Promise<void> {
1703
-
1704
- return this.beginRequest<void>({
1705
- apiVersion: "7.2-preview.1",
1706
- method: "DELETE",
1707
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1708
- routeValues: {
1709
- project: project,
1710
- runId: runId
1711
- }
1712
- });
1713
- }
1714
-
1715
- /**
1716
- * @param project - Project ID or project name
1717
- * @param runId -
1718
- * @param includeDetails -
1719
- * @param includeTags -
1720
- */
1721
- public async getTestRunById(
1722
- project: string,
1723
- runId: number,
1724
- includeDetails?: boolean,
1725
- includeTags?: boolean
1726
- ): Promise<Test.TestRun> {
1727
-
1728
- const queryValues: any = {
1729
- includeDetails: includeDetails,
1730
- includeTags: includeTags
1731
- };
1732
-
1733
- return this.beginRequest<Test.TestRun>({
1734
- apiVersion: "7.2-preview.1",
1735
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1736
- routeValues: {
1737
- project: project,
1738
- runId: runId
1739
- },
1740
- queryParams: queryValues
1741
- });
1742
- }
1743
-
1744
- /**
1745
- * @param project - Project ID or project name
1746
- * @param buildUri -
1747
- * @param owner -
1748
- * @param tmiRunId -
1749
- * @param planId -
1750
- * @param includeRunDetails -
1751
- * @param automated -
1752
- * @param skip -
1753
- * @param top -
1754
- */
1755
- public async getTestRuns(
1756
- project: string,
1757
- buildUri?: string,
1758
- owner?: string,
1759
- tmiRunId?: string,
1760
- planId?: number,
1761
- includeRunDetails?: boolean,
1762
- automated?: boolean,
1763
- skip?: number,
1764
- top?: number
1765
- ): Promise<Test.TestRun[]> {
1766
-
1767
- const queryValues: any = {
1768
- buildUri: buildUri,
1769
- owner: owner,
1770
- tmiRunId: tmiRunId,
1771
- planId: planId,
1772
- includeRunDetails: includeRunDetails,
1773
- automated: automated,
1774
- '$skip': skip,
1775
- '$top': top
1776
- };
1777
-
1778
- return this.beginRequest<Test.TestRun[]>({
1779
- apiVersion: "7.2-preview.1",
1780
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1781
- routeValues: {
1782
- project: project
1783
- },
1784
- queryParams: queryValues
1785
- });
1786
- }
1787
-
1788
- /**
1789
- * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
1790
- *
1791
- * @param project - Project ID or project name
1792
- * @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
1793
- * @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
1794
- * @param state - Current state of the Runs to be queried.
1795
- * @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids.
1796
- * @param isAutomated - Automation type of the Runs to be queried.
1797
- * @param publishContext - PublishContext of the Runs to be queried.
1798
- * @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids.
1799
- * @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids.
1800
- * @param branchName - Source Branch name of the Runs to be queried.
1801
- * @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids.
1802
- * @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids.
1803
- * @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids.
1804
- * @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.
1805
- * @param runTitle - Run Title of the Runs to be queried.
1806
- * @param top - Number of runs to be queried. Limit is 100
1807
- * @param continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
1808
- */
1809
- public async queryTestRuns(
1810
- project: string,
1811
- minLastUpdatedDate: Date,
1812
- maxLastUpdatedDate: Date,
1813
- state?: Test.TestRunState,
1814
- planIds?: number[],
1815
- isAutomated?: boolean,
1816
- publishContext?: Test.TestRunPublishContext,
1817
- buildIds?: number[],
1818
- buildDefIds?: number[],
1819
- branchName?: string,
1820
- releaseIds?: number[],
1821
- releaseDefIds?: number[],
1822
- releaseEnvIds?: number[],
1823
- releaseEnvDefIds?: number[],
1824
- runTitle?: string,
1825
- top?: number,
1826
- continuationToken?: string
1827
- ): Promise<WebApi.PagedList<Test.TestRun>> {
1828
-
1829
- const queryValues: any = {
1830
- minLastUpdatedDate: minLastUpdatedDate,
1831
- maxLastUpdatedDate: maxLastUpdatedDate,
1832
- state: state,
1833
- planIds: planIds && planIds.join(","),
1834
- isAutomated: isAutomated,
1835
- publishContext: publishContext,
1836
- buildIds: buildIds && buildIds.join(","),
1837
- buildDefIds: buildDefIds && buildDefIds.join(","),
1838
- branchName: branchName,
1839
- releaseIds: releaseIds && releaseIds.join(","),
1840
- releaseDefIds: releaseDefIds && releaseDefIds.join(","),
1841
- releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
1842
- releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
1843
- runTitle: runTitle,
1844
- '$top': top,
1845
- continuationToken: continuationToken
1846
- };
1847
-
1848
- return this.beginRequest<Response>({
1849
- apiVersion: "7.2-preview.1",
1850
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1851
- routeValues: {
1852
- project: project
1853
- },
1854
- queryParams: queryValues,
1855
- returnRawResponse: true
1856
- }).then(async response => {
1857
- const body = <WebApi.PagedList<Test.TestRun>>await response.text().then(deserializeVssJsonObject);
1858
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1859
- return body;
1860
- });
1861
- }
1862
-
1863
- /**
1864
- * @param runUpdateModel -
1865
- * @param project - Project ID or project name
1866
- * @param runId -
1867
- */
1868
- public async updateTestRun(
1869
- runUpdateModel: Test.RunUpdateModel,
1870
- project: string,
1871
- runId: number
1872
- ): Promise<Test.TestRun> {
1873
-
1874
- return this.beginRequest<Test.TestRun>({
1875
- apiVersion: "7.2-preview.1",
1876
- method: "PATCH",
1877
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1878
- routeValues: {
1879
- project: project,
1880
- runId: runId
1881
- },
1882
- body: runUpdateModel
1883
- });
1884
- }
1885
-
1886
- /**
1887
- * Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state.
1888
- *
1889
- * @param project - Project ID or project name
1890
- * @param runId - ID of the run to get.
1891
- */
1892
- public async getTestRunSummaryByOutcome(
1893
- project: string,
1894
- runId: number
1895
- ): Promise<Test.TestRunStatistic> {
1896
-
1897
- return this.beginRequest<Test.TestRunStatistic>({
1898
- apiVersion: "7.2-preview.1",
1899
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/runsummary",
1900
- routeValues: {
1901
- project: project,
1902
- runId: runId
1903
- }
1904
- });
1905
- }
1906
-
1907
- /**
1908
- * Get TestResultsSettings data
1909
- *
1910
- * @param project - Project ID or project name
1911
- * @param settingsType -
1912
- */
1913
- public async getTestResultsSettings(
1914
- project: string,
1915
- settingsType?: Test.TestResultsSettingsType
1916
- ): Promise<Test.TestResultsSettings> {
1917
-
1918
- const queryValues: any = {
1919
- settingsType: settingsType
1920
- };
1921
-
1922
- return this.beginRequest<Test.TestResultsSettings>({
1923
- apiVersion: "7.2-preview.3",
1924
- routeTemplate: "{project}/_apis/testresults/settings",
1925
- routeValues: {
1926
- project: project
1927
- },
1928
- queryParams: queryValues
1929
- });
1930
- }
1931
-
1932
- /**
1933
- * Update project settings of test results
1934
- *
1935
- * @param testResultsUpdateSettings -
1936
- * @param project - Project ID or project name
1937
- */
1938
- public async updatePipelinesTestSettings(
1939
- testResultsUpdateSettings: Test.TestResultsUpdateSettings,
1940
- project: string
1941
- ): Promise<Test.TestResultsSettings> {
1942
-
1943
- return this.beginRequest<Test.TestResultsSettings>({
1944
- apiVersion: "7.2-preview.3",
1945
- method: "PATCH",
1946
- routeTemplate: "{project}/_apis/testresults/settings",
1947
- routeValues: {
1948
- project: project
1949
- },
1950
- body: testResultsUpdateSettings
1951
- });
1952
- }
1953
-
1954
- /**
1955
- * Gets the list of results whose failure matches with the provided one.
1956
- *
1957
- * @param project - Project ID or project name
1958
- * @param runId - id of test run
1959
- * @param testResultId - id of test result inside a test run
1960
- * @param testSubResultId - id of subresult inside a test result
1961
- * @param top - Maximum number of results to return
1962
- * @param continuationToken - Header to pass the continuationToken
1963
- */
1964
- public async getSimilarTestResults(
1965
- project: string,
1966
- runId: number,
1967
- testResultId: number,
1968
- testSubResultId: number,
1969
- top?: number,
1970
- continuationToken?: String
1971
- ): Promise<Test.TestCaseResult[]> {
1972
-
1973
- const queryValues: any = {
1974
- testSubResultId: testSubResultId,
1975
- '$top': top
1976
- };
1977
-
1978
- return this.beginRequest<Test.TestCaseResult[]>({
1979
- apiVersion: "7.2-preview.1",
1980
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",
1981
- routeValues: {
1982
- project: project,
1983
- runId: runId,
1984
- testResultId: testResultId
1985
- },
1986
- customHeaders: {
1987
- "x-ms-continuationtoken": continuationToken,
1988
- },
1989
- queryParams: queryValues
1990
- });
1991
- }
1992
-
1993
- /**
1994
- * Get test run statistics , used when we want to get summary of a run by outcome.
1995
- *
1996
- * @param project - Project ID or project name
1997
- * @param runId - ID of the run to get.
1998
- */
1999
- public async getTestRunStatistics(
2000
- project: string,
2001
- runId: number
2002
- ): Promise<Test.TestRunStatistic> {
2003
-
2004
- return this.beginRequest<Test.TestRunStatistic>({
2005
- apiVersion: "7.2-preview.2",
2006
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/statistics",
2007
- routeValues: {
2008
- project: project,
2009
- runId: runId
2010
- }
2011
- });
2012
- }
2013
-
2014
- /**
2015
- * \<p\>Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch\</p\>
2016
- *
2017
- * @param project - Project ID or project name
2018
- * @param definition - The ID or name of the definition.
2019
- * @param branchName - The branch name.
2020
- * @param label - The String to replace the default text on the left side of the badge.
2021
- */
2022
- public async getCoverageStatusBadge(
2023
- project: string,
2024
- definition: string,
2025
- branchName?: string,
2026
- label?: string
2027
- ): Promise<string> {
2028
-
2029
- const queryValues: any = {
2030
- branchName: branchName,
2031
- label: label
2032
- };
2033
-
2034
- return this.beginRequest<string>({
2035
- apiVersion: "7.2-preview.1",
2036
- routeTemplate: "{project}/_apis/testresults/codecoverage/status/{*definition}",
2037
- routeValues: {
2038
- project: project,
2039
- definition: definition
2040
- },
2041
- queryParams: queryValues
2042
- });
2043
- }
2044
-
2045
- /**
2046
- * Get all the tags in a build.
2047
- *
2048
- * @param project - Project ID or project name
2049
- * @param buildId - Build ID
2050
- */
2051
- public async getTestTagsForBuild(
2052
- project: string,
2053
- buildId: number
2054
- ): Promise<Test.TestTag[]> {
2055
-
2056
- const queryValues: any = {
2057
- buildId: buildId
2058
- };
2059
-
2060
- return this.beginRequest<Test.TestTag[]>({
2061
- apiVersion: "7.2-preview.1",
2062
- routeTemplate: "{project}/_apis/testresults/tags",
2063
- routeValues: {
2064
- project: project
2065
- },
2066
- queryParams: queryValues
2067
- });
2068
- }
2069
-
2070
- /**
2071
- * Get all the tags in a release.
2072
- *
2073
- * @param project - Project ID or project name
2074
- * @param releaseId - Release ID
2075
- * @param releaseEnvId - Release environment ID
2076
- */
2077
- public async getTestTagsForRelease(
2078
- project: string,
2079
- releaseId: number,
2080
- releaseEnvId: number
2081
- ): Promise<Test.TestTag[]> {
2082
-
2083
- const queryValues: any = {
2084
- releaseId: releaseId,
2085
- releaseEnvId: releaseEnvId
2086
- };
2087
-
2088
- return this.beginRequest<Test.TestTag[]>({
2089
- apiVersion: "7.2-preview.1",
2090
- routeTemplate: "{project}/_apis/testresults/tags",
2091
- routeValues: {
2092
- project: project
2093
- },
2094
- queryParams: queryValues
2095
- });
2096
- }
2097
-
2098
- /**
2099
- * Update tags of a run, Tags can be Added and Deleted
2100
- *
2101
- * @param testTagsUpdateModel - TestTagsUpdateModel
2102
- * @param project - Project ID or project name
2103
- * @param runId - RunId of the run
2104
- */
2105
- public async updateTestRunTags(
2106
- testTagsUpdateModel: Test.TestTagsUpdateModel,
2107
- project: string,
2108
- runId: number
2109
- ): Promise<Test.TestTag[]> {
2110
-
2111
- return this.beginRequest<Test.TestTag[]>({
2112
- apiVersion: "7.2-preview.1",
2113
- method: "PATCH",
2114
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/tags",
2115
- routeValues: {
2116
- project: project,
2117
- runId: runId
2118
- },
2119
- body: testTagsUpdateModel
2120
- });
2121
- }
2122
-
2123
- /**
2124
- * Get all the tags in a build.
2125
- *
2126
- * @param project - Project ID or project name
2127
- * @param buildId - Build ID
2128
- */
2129
- public async getTestTagSummaryForBuild(
2130
- project: string,
2131
- buildId: number
2132
- ): Promise<Test.TestTagSummary> {
2133
-
2134
- const queryValues: any = {
2135
- buildId: buildId
2136
- };
2137
-
2138
- return this.beginRequest<Test.TestTagSummary>({
2139
- apiVersion: "7.2-preview.1",
2140
- routeTemplate: "{project}/_apis/testresults/tagsummary",
2141
- routeValues: {
2142
- project: project
2143
- },
2144
- queryParams: queryValues
2145
- });
2146
- }
2147
-
2148
- /**
2149
- * Get all the tags in a release.
2150
- *
2151
- * @param project - Project ID or project name
2152
- * @param releaseId - Release ID
2153
- * @param releaseEnvId - Release environment ID
2154
- */
2155
- public async getTestTagSummaryForRelease(
2156
- project: string,
2157
- releaseId: number,
2158
- releaseEnvId: number
2159
- ): Promise<Test.TestTagSummary> {
2160
-
2161
- const queryValues: any = {
2162
- releaseId: releaseId,
2163
- releaseEnvId: releaseEnvId
2164
- };
2165
-
2166
- return this.beginRequest<Test.TestTagSummary>({
2167
- apiVersion: "7.2-preview.1",
2168
- routeTemplate: "{project}/_apis/testresults/tagsummary",
2169
- routeValues: {
2170
- project: project
2171
- },
2172
- queryParams: queryValues
2173
- });
2174
- }
2175
-
2176
- /**
2177
- * Creates an attachment in the LogStore for the specified buildId.
2178
- *
2179
- * @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
2180
- * @param project - Project ID or project name
2181
- * @param buildId - BuildId
2182
- */
2183
- public async createBuildAttachmentInLogStore(
2184
- attachmentRequestModel: Test.TestAttachmentRequestModel,
2185
- project: string,
2186
- buildId: number
2187
- ): Promise<void> {
2188
-
2189
- return this.beginRequest<void>({
2190
- apiVersion: "7.2-preview.1",
2191
- method: "POST",
2192
- routeTemplate: "{project}/_apis/testresults/uploadbuildattachments/{buildId}",
2193
- routeValues: {
2194
- project: project,
2195
- buildId: buildId
2196
- },
2197
- body: attachmentRequestModel
2198
- });
2199
- }
2200
-
2201
- /**
2202
- * Creates an attachment in the LogStore for the specified runId.
2203
- *
2204
- * @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
2205
- * @param project - Project ID or project name
2206
- * @param runId - Test RunId
2207
- */
2208
- public async createTestRunLogStoreAttachment(
2209
- attachmentRequestModel: Test.TestAttachmentRequestModel,
2210
- project: string,
2211
- runId: number
2212
- ): Promise<Test.TestLogStoreAttachmentReference> {
2213
-
2214
- return this.beginRequest<Test.TestLogStoreAttachmentReference>({
2215
- apiVersion: "7.2-preview.1",
2216
- method: "POST",
2217
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2218
- routeValues: {
2219
- project: project,
2220
- runId: runId
2221
- },
2222
- body: attachmentRequestModel
2223
- });
2224
- }
2225
-
2226
- /**
2227
- * Deletes the attachment with the specified filename for the specified runId from the LogStore.
2228
- *
2229
- * @param project - Project ID or project name
2230
- * @param runId - Test RunId
2231
- * @param filename - Attachment FileName
2232
- */
2233
- public async deleteTestRunLogStoreAttachment(
2234
- project: string,
2235
- runId: number,
2236
- filename: string
2237
- ): Promise<void> {
2238
-
2239
- const queryValues: any = {
2240
- filename: filename
2241
- };
2242
-
2243
- return this.beginRequest<void>({
2244
- apiVersion: "7.2-preview.1",
2245
- method: "DELETE",
2246
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2247
- routeValues: {
2248
- project: project,
2249
- runId: runId
2250
- },
2251
- queryParams: queryValues
2252
- });
2253
- }
2254
-
2255
- /**
2256
- * Returns the attachment with the specified filename for the specified runId from the LogStore.
2257
- *
2258
- * @param project - Project ID or project name
2259
- * @param runId - Test RunId
2260
- * @param filename - Attachment FileName
2261
- */
2262
- public async getTestRunLogStoreAttachmentContent(
2263
- project: string,
2264
- runId: number,
2265
- filename: string
2266
- ): Promise<ArrayBuffer> {
2267
-
2268
- const queryValues: any = {
2269
- filename: filename
2270
- };
2271
-
2272
- return this.beginRequest<ArrayBuffer>({
2273
- apiVersion: "7.2-preview.1",
2274
- httpResponseType: "application/octet-stream",
2275
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2276
- routeValues: {
2277
- project: project,
2278
- runId: runId
2279
- },
2280
- queryParams: queryValues
2281
- });
2282
- }
2283
-
2284
- /**
2285
- * Returns a list of attachments for the specified runId from the LogStore.
2286
- *
2287
- * @param project - Project ID or project name
2288
- * @param runId - Test RunId
2289
- */
2290
- public async getTestRunLogStoreAttachments(
2291
- project: string,
2292
- runId: number
2293
- ): Promise<Test.TestLogStoreAttachment[]> {
2294
-
2295
- return this.beginRequest<Test.TestLogStoreAttachment[]>({
2296
- apiVersion: "7.2-preview.1",
2297
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2298
- routeValues: {
2299
- project: project,
2300
- runId: runId
2301
- }
2302
- });
2303
- }
2304
-
2305
- /**
2306
- * Returns the attachment with the specified filename for the specified runId from the LogStore.
2307
- *
2308
- * @param project - Project ID or project name
2309
- * @param runId - Test RunId
2310
- * @param filename - Attachment FileName
2311
- */
2312
- public async getTestRunLogStoreAttachmentZip(
2313
- project: string,
2314
- runId: number,
2315
- filename: string
2316
- ): Promise<ArrayBuffer> {
2317
-
2318
- const queryValues: any = {
2319
- filename: filename
2320
- };
2321
-
2322
- return this.beginRequest<ArrayBuffer>({
2323
- apiVersion: "7.2-preview.1",
2324
- httpResponseType: "application/zip",
2325
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2326
- routeValues: {
2327
- project: project,
2328
- runId: runId
2329
- },
2330
- queryParams: queryValues
2331
- });
2332
- }
2333
-
2334
- /**
2335
- * Creates a new test failure type
2336
- *
2337
- * @param testResultFailureType -
2338
- * @param project - Project ID or project name
2339
- */
2340
- public async createFailureType(
2341
- testResultFailureType: Test.TestResultFailureTypeRequestModel,
2342
- project: string
2343
- ): Promise<Test.TestResultFailureType> {
2344
-
2345
- return this.beginRequest<Test.TestResultFailureType>({
2346
- apiVersion: "7.2-preview.1",
2347
- method: "POST",
2348
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2349
- routeValues: {
2350
- project: project
2351
- },
2352
- body: testResultFailureType
2353
- });
2354
- }
2355
-
2356
- /**
2357
- * Deletes a test failure type with specified failureTypeId
2358
- *
2359
- * @param project - Project ID or project name
2360
- * @param failureTypeId -
2361
- */
2362
- public async deleteFailureType(
2363
- project: string,
2364
- failureTypeId: number
2365
- ): Promise<void> {
2366
-
2367
- return this.beginRequest<void>({
2368
- apiVersion: "7.2-preview.1",
2369
- method: "DELETE",
2370
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2371
- routeValues: {
2372
- project: project,
2373
- failureTypeId: failureTypeId
2374
- }
2375
- });
2376
- }
2377
-
2378
- /**
2379
- * Returns the list of test failure types.
2380
- *
2381
- * @param project - Project ID or project name
2382
- */
2383
- public async getFailureTypes(
2384
- project: string
2385
- ): Promise<Test.TestResultFailureType[]> {
2386
-
2387
- return this.beginRequest<Test.TestResultFailureType[]>({
2388
- apiVersion: "7.2-preview.1",
2389
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2390
- routeValues: {
2391
- project: project
2392
- }
2393
- });
2394
- }
2395
-
2396
- /**
2397
- * Get history of a test method using TestHistoryQuery
2398
- *
2399
- * @param filter - TestHistoryQuery to get history
2400
- * @param project - Project ID or project name
2401
- */
2402
- public async queryTestHistory(
2403
- filter: Test.TestHistoryQuery,
2404
- project: string
2405
- ): Promise<Test.TestHistoryQuery> {
2406
-
2407
- return this.beginRequest<Test.TestHistoryQuery>({
2408
- apiVersion: "7.2-preview.2",
2409
- method: "POST",
2410
- routeTemplate: "{project}/_apis/testresults/results/TestHistory",
2411
- routeValues: {
2412
- project: project
2413
- },
2414
- body: filter
2415
- });
2416
- }
2417
-
2418
- /**
2419
- * Get list of build attachments reference
2420
- *
2421
- * @param project - Project ID or project name
2422
- * @param buildId - Id of the build to get
2423
- * @param type - type of the attachment to get
2424
- * @param directoryPath - directory path for which attachments are needed
2425
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2426
- * @param fetchMetaData - Default is false, set if metadata is needed
2427
- * @param top - Number of test attachments reference to return
2428
- * @param continuationToken - Header to pass the continuationToken
2429
- */
2430
- public async getTestLogsForBuild(
2431
- project: string,
2432
- buildId: number,
2433
- type: Test.TestLogType,
2434
- directoryPath?: string,
2435
- fileNamePrefix?: string,
2436
- fetchMetaData?: boolean,
2437
- top?: number,
2438
- continuationToken?: String
2439
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2440
-
2441
- const queryValues: any = {
2442
- buildId: buildId,
2443
- type: type,
2444
- directoryPath: directoryPath,
2445
- fileNamePrefix: fileNamePrefix,
2446
- fetchMetaData: fetchMetaData,
2447
- top: top
2448
- };
2449
-
2450
- return this.beginRequest<Response>({
2451
- apiVersion: "7.2-preview.1",
2452
- routeTemplate: "{project}/_apis/testresults/testlog",
2453
- routeValues: {
2454
- project: project
2455
- },
2456
- customHeaders: {
2457
- "x-ms-continuationtoken": continuationToken,
2458
- },
2459
- queryParams: queryValues,
2460
- returnRawResponse: true
2461
- }).then(async response => {
2462
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2463
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2464
- return body;
2465
- });
2466
- }
2467
-
2468
- /**
2469
- * Get list of test result attachments reference
2470
- *
2471
- * @param project - Project ID or project name
2472
- * @param runId - Id of the test run that contains the result
2473
- * @param resultId - Id of the test result
2474
- * @param type - type of attachments to get
2475
- * @param directoryPath - directory path of attachments to get
2476
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2477
- * @param fetchMetaData - Default is false, set if metadata is needed
2478
- * @param top - Numbe of attachments reference to return
2479
- * @param continuationToken - Header to pass the continuationToken
2480
- */
2481
- public async getTestResultLogs(
2482
- project: string,
2483
- runId: number,
2484
- resultId: number,
2485
- type: Test.TestLogType,
2486
- directoryPath?: string,
2487
- fileNamePrefix?: string,
2488
- fetchMetaData?: boolean,
2489
- top?: number,
2490
- continuationToken?: String
2491
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2492
-
2493
- const queryValues: any = {
2494
- type: type,
2495
- directoryPath: directoryPath,
2496
- fileNamePrefix: fileNamePrefix,
2497
- fetchMetaData: fetchMetaData,
2498
- top: top
2499
- };
2500
-
2501
- return this.beginRequest<Response>({
2502
- apiVersion: "7.2-preview.1",
2503
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
2504
- routeValues: {
2505
- project: project,
2506
- runId: runId,
2507
- resultId: resultId
2508
- },
2509
- customHeaders: {
2510
- "x-ms-continuationtoken": continuationToken,
2511
- },
2512
- queryParams: queryValues,
2513
- returnRawResponse: true
2514
- }).then(async response => {
2515
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2516
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2517
- return body;
2518
- });
2519
- }
2520
-
2521
- /**
2522
- * Get list of test subresult attachments reference
2523
- *
2524
- * @param project - Project ID or project name
2525
- * @param runId - Id of the test run that contains the results
2526
- * @param resultId - Id of the test result that contains subresult
2527
- * @param subResultId - Id of the test subresult
2528
- * @param type - type of the attachments to get
2529
- * @param directoryPath - directory path of the attachment to get
2530
- * @param fileNamePrefix - file name prefix to filter the list of attachments
2531
- * @param fetchMetaData - Default is false, set if metadata is needed
2532
- * @param top - Number of attachments reference to return
2533
- * @param continuationToken - Header to pass the continuationToken
2534
- */
2535
- public async getTestSubResultLogs(
2536
- project: string,
2537
- runId: number,
2538
- resultId: number,
2539
- subResultId: number,
2540
- type: Test.TestLogType,
2541
- directoryPath?: string,
2542
- fileNamePrefix?: string,
2543
- fetchMetaData?: boolean,
2544
- top?: number,
2545
- continuationToken?: String
2546
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2547
-
2548
- const queryValues: any = {
2549
- subResultId: subResultId,
2550
- type: type,
2551
- directoryPath: directoryPath,
2552
- fileNamePrefix: fileNamePrefix,
2553
- fetchMetaData: fetchMetaData,
2554
- top: top
2555
- };
2556
-
2557
- return this.beginRequest<Response>({
2558
- apiVersion: "7.2-preview.1",
2559
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
2560
- routeValues: {
2561
- project: project,
2562
- runId: runId,
2563
- resultId: resultId
2564
- },
2565
- customHeaders: {
2566
- "x-ms-continuationtoken": continuationToken,
2567
- },
2568
- queryParams: queryValues,
2569
- returnRawResponse: true
2570
- }).then(async response => {
2571
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2572
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2573
- return body;
2574
- });
2575
- }
2576
-
2577
- /**
2578
- * Get list of test run attachments reference
2579
- *
2580
- * @param project - Project ID or project name
2581
- * @param runId - Id of the test run
2582
- * @param type - type of the attachments to get
2583
- * @param directoryPath - directory path for which attachments are needed
2584
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2585
- * @param fetchMetaData - Default is false, set if metadata is needed
2586
- * @param top - Number of attachments reference to return
2587
- * @param continuationToken - Header to pass the continuationToken
2588
- */
2589
- public async getTestRunLogs(
2590
- project: string,
2591
- runId: number,
2592
- type: Test.TestLogType,
2593
- directoryPath?: string,
2594
- fileNamePrefix?: string,
2595
- fetchMetaData?: boolean,
2596
- top?: number,
2597
- continuationToken?: String
2598
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2599
-
2600
- const queryValues: any = {
2601
- type: type,
2602
- directoryPath: directoryPath,
2603
- fileNamePrefix: fileNamePrefix,
2604
- fetchMetaData: fetchMetaData,
2605
- top: top
2606
- };
2607
-
2608
- return this.beginRequest<Response>({
2609
- apiVersion: "7.2-preview.1",
2610
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlog",
2611
- routeValues: {
2612
- project: project,
2613
- runId: runId
2614
- },
2615
- customHeaders: {
2616
- "x-ms-continuationtoken": continuationToken,
2617
- },
2618
- queryParams: queryValues,
2619
- returnRawResponse: true
2620
- }).then(async response => {
2621
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2622
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2623
- return body;
2624
- });
2625
- }
2626
-
2627
- /**
2628
- * Get SAS Uri of a build attachment
2629
- *
2630
- * @param project - Project ID or project name
2631
- * @param build - Id of the build to get
2632
- * @param type - type of the file
2633
- * @param filePath - filePath for which sas uri is needed
2634
- */
2635
- public async getTestLogStoreEndpointDetailsForBuildLog(
2636
- project: string,
2637
- build: number,
2638
- type: Test.TestLogType,
2639
- filePath: string
2640
- ): Promise<Test.TestLogStoreEndpointDetails> {
2641
-
2642
- const queryValues: any = {
2643
- build: build,
2644
- type: type,
2645
- filePath: filePath
2646
- };
2647
-
2648
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2649
- apiVersion: "7.2-preview.1",
2650
- routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
2651
- routeValues: {
2652
- project: project
2653
- },
2654
- queryParams: queryValues
2655
- });
2656
- }
2657
-
2658
- /**
2659
- * Create and Get sas uri of the build container
2660
- *
2661
- * @param project - Project ID or project name
2662
- * @param buildId - Id of the build to get
2663
- * @param testLogStoreOperationType - Type of operation to perform using sas uri
2664
- */
2665
- public async testLogStoreEndpointDetailsForBuild(
2666
- project: string,
2667
- buildId: number,
2668
- testLogStoreOperationType: Test.TestLogStoreOperationType
2669
- ): Promise<Test.TestLogStoreEndpointDetails> {
2670
-
2671
- const queryValues: any = {
2672
- buildId: buildId,
2673
- testLogStoreOperationType: testLogStoreOperationType
2674
- };
2675
-
2676
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2677
- apiVersion: "7.2-preview.1",
2678
- method: "POST",
2679
- routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
2680
- routeValues: {
2681
- project: project
2682
- },
2683
- queryParams: queryValues
2684
- });
2685
- }
2686
-
2687
- /**
2688
- * Get SAS Uri of a test results attachment
2689
- *
2690
- * @param project - Project ID or project name
2691
- * @param runId - Id of the test run that contains result
2692
- * @param resultId - Id of the test result whose files need to be downloaded
2693
- * @param type - type of the file
2694
- * @param filePath - filePath for which sas uri is needed
2695
- */
2696
- public async getTestLogStoreEndpointDetailsForResultLog(
2697
- project: string,
2698
- runId: number,
2699
- resultId: number,
2700
- type: Test.TestLogType,
2701
- filePath: string
2702
- ): Promise<Test.TestLogStoreEndpointDetails> {
2703
-
2704
- const queryValues: any = {
2705
- type: type,
2706
- filePath: filePath
2707
- };
2708
-
2709
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2710
- apiVersion: "7.2-preview.1",
2711
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2712
- routeValues: {
2713
- project: project,
2714
- runId: runId,
2715
- resultId: resultId
2716
- },
2717
- queryParams: queryValues
2718
- });
2719
- }
2720
-
2721
- /**
2722
- * Get SAS Uri of a test subresults attachment
2723
- *
2724
- * @param project - Project ID or project name
2725
- * @param runId - Id of the test run that contains result
2726
- * @param resultId - Id of the test result that contains subresult
2727
- * @param subResultId - Id of the test subresult whose file sas uri is needed
2728
- * @param type - type of the file
2729
- * @param filePath - filePath for which sas uri is needed
2730
- */
2731
- public async getTestLogStoreEndpointDetailsForSubResultLog(
2732
- project: string,
2733
- runId: number,
2734
- resultId: number,
2735
- subResultId: number,
2736
- type: Test.TestLogType,
2737
- filePath: string
2738
- ): Promise<Test.TestLogStoreEndpointDetails> {
2739
-
2740
- const queryValues: any = {
2741
- subResultId: subResultId,
2742
- type: type,
2743
- filePath: filePath
2744
- };
2745
-
2746
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2747
- apiVersion: "7.2-preview.1",
2748
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2749
- routeValues: {
2750
- project: project,
2751
- runId: runId,
2752
- resultId: resultId
2753
- },
2754
- queryParams: queryValues
2755
- });
2756
- }
2757
-
2758
- /**
2759
- * Create empty file for a result and Get Sas uri for the file
2760
- *
2761
- * @param project - Project ID or project name
2762
- * @param runId - Id of the test run that contains the result
2763
- * @param resultId - Id of the test results that contains sub result
2764
- * @param subResultId - Id of the test sub result whose file sas uri is needed
2765
- * @param filePath - file path inside the sub result for which sas uri is needed
2766
- * @param type - Type of the file for download
2767
- */
2768
- public async testLogStoreEndpointDetailsForResult(
2769
- project: string,
2770
- runId: number,
2771
- resultId: number,
2772
- subResultId: number,
2773
- filePath: string,
2774
- type: Test.TestLogType
2775
- ): Promise<Test.TestLogStoreEndpointDetails> {
2776
-
2777
- const queryValues: any = {
2778
- subResultId: subResultId,
2779
- filePath: filePath,
2780
- type: type
2781
- };
2782
-
2783
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2784
- apiVersion: "7.2-preview.1",
2785
- method: "POST",
2786
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2787
- routeValues: {
2788
- project: project,
2789
- runId: runId,
2790
- resultId: resultId
2791
- },
2792
- queryParams: queryValues
2793
- });
2794
- }
2795
-
2796
- /**
2797
- * Get SAS Uri of a test run attachment
2798
- *
2799
- * @param project - Project ID or project name
2800
- * @param runId - Id of the test run whose file has to be downloaded
2801
- * @param type - type of the file
2802
- * @param filePath - filePath for which sas uri is needed
2803
- */
2804
- public async getTestLogStoreEndpointDetailsForRunLog(
2805
- project: string,
2806
- runId: number,
2807
- type: Test.TestLogType,
2808
- filePath: string
2809
- ): Promise<Test.TestLogStoreEndpointDetails> {
2810
-
2811
- const queryValues: any = {
2812
- type: type,
2813
- filePath: filePath
2814
- };
2815
-
2816
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2817
- apiVersion: "7.2-preview.1",
2818
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
2819
- routeValues: {
2820
- project: project,
2821
- runId: runId
2822
- },
2823
- queryParams: queryValues
2824
- });
2825
- }
2826
-
2827
- /**
2828
- * Create empty file for a run and Get Sas uri for the file
2829
- *
2830
- * @param project - Project ID or project name
2831
- * @param runId - Id of the run to get endpoint details
2832
- * @param testLogStoreOperationType - Type of operation to perform using sas uri
2833
- * @param filePath - file path to create an empty file
2834
- * @param type - Default is GeneralAttachment, type of empty file to be created
2835
- */
2836
- public async testLogStoreEndpointDetailsForRun(
2837
- project: string,
2838
- runId: number,
2839
- testLogStoreOperationType: Test.TestLogStoreOperationType,
2840
- filePath?: string,
2841
- type?: Test.TestLogType
2842
- ): Promise<Test.TestLogStoreEndpointDetails> {
2843
-
2844
- const queryValues: any = {
2845
- testLogStoreOperationType: testLogStoreOperationType,
2846
- filePath: filePath,
2847
- type: type
2848
- };
2849
-
2850
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2851
- apiVersion: "7.2-preview.1",
2852
- method: "POST",
2853
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
2854
- routeValues: {
2855
- project: project,
2856
- runId: runId
2857
- },
2858
- queryParams: queryValues
2859
- });
2860
- }
2861
-
2862
- /**
2863
- * Creates TestResultsSession object in TCM data store
2864
- *
2865
- * @param session - Received session object.
2866
- * @param project - Project ID or project name
2867
- */
2868
- public async createTestSession(
2869
- session: Test.TestResultsSession,
2870
- project: string
2871
- ): Promise<number> {
2872
-
2873
- return this.beginRequest<number>({
2874
- apiVersion: "7.2-preview.2",
2875
- method: "POST",
2876
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2877
- routeValues: {
2878
- project: project
2879
- },
2880
- body: session
2881
- });
2882
- }
2883
-
2884
- /**
2885
- * Retrieves TestResultsSession metadata object in TCM data store
2886
- *
2887
- * @param project - Project ID or project name
2888
- * @param buildId -
2889
- */
2890
- public async getTestSession(
2891
- project: string,
2892
- buildId: number
2893
- ): Promise<Test.TestResultsSession[]> {
2894
-
2895
- const queryValues: any = {
2896
- buildId: buildId
2897
- };
2898
-
2899
- return this.beginRequest<Test.TestResultsSession[]>({
2900
- apiVersion: "7.2-preview.2",
2901
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2902
- routeValues: {
2903
- project: project
2904
- },
2905
- queryParams: queryValues
2906
- });
2907
- }
2908
-
2909
- /**
2910
- * Retrieves TestResultsSession Layout object in TCM data store
2911
- *
2912
- * @param project - Project ID or project name
2913
- * @param sessionId -
2914
- */
2915
- public async getTestSessionLayout(
2916
- project: string,
2917
- sessionId: string
2918
- ): Promise<any[]> {
2919
-
2920
- const queryValues: any = {
2921
- sessionId: sessionId
2922
- };
2923
-
2924
- return this.beginRequest<any[]>({
2925
- apiVersion: "7.2-preview.2",
2926
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2927
- routeValues: {
2928
- project: project
2929
- },
2930
- queryParams: queryValues
2931
- });
2932
- }
2933
-
2934
- /**
2935
- * Creates Session Analysis object in TCM data store for a given session
2936
- *
2937
- * @param analysis - Session Analysis details
2938
- * @param project - Project ID or project name
2939
- * @param sessionId - ID of Session to add Notification
2940
- */
2941
- public async createAnalysis(
2942
- analysis: Test.TestSessionAnalysis[],
2943
- project: string,
2944
- sessionId: number
2945
- ): Promise<Test.AnalysisFailureGroupReturn[]> {
2946
-
2947
- return this.beginRequest<Test.AnalysisFailureGroupReturn[]>({
2948
- apiVersion: "7.2-preview.2",
2949
- method: "POST",
2950
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/analysis",
2951
- routeValues: {
2952
- project: project,
2953
- sessionId: sessionId
2954
- },
2955
- body: analysis
2956
- });
2957
- }
2958
-
2959
- /**
2960
- * Creates Environment object in TCM data store
2961
- *
2962
- * @param environments - Received Environment object.
2963
- * @param project - Project ID or project name
2964
- */
2965
- public async createEnvironment(
2966
- environments: Test.TestSessionEnvironment[],
2967
- project: string
2968
- ): Promise<void> {
2969
-
2970
- return this.beginRequest<void>({
2971
- apiVersion: "7.2-preview.2",
2972
- method: "POST",
2973
- routeTemplate: "{project}/_apis/testresults/testsession/environment",
2974
- routeValues: {
2975
- project: project
2976
- },
2977
- body: environments
2978
- });
2979
- }
2980
-
2981
- /**
2982
- * For the provided sessionId, creates environment, configuration, and machine objects in TCM data store
2983
- *
2984
- * @param sessionEnvironmentAndMachine -
2985
- * @param project - Project ID or project name
2986
- * @param sessionId -
2987
- */
2988
- public async createEnvironmentAndMachine(
2989
- sessionEnvironmentAndMachine: Test.SessionEnvironmentAndMachine,
2990
- project: string,
2991
- sessionId: number
2992
- ): Promise<void> {
2993
-
2994
- return this.beginRequest<void>({
2995
- apiVersion: "7.2-preview.2",
2996
- method: "POST",
2997
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/machines",
2998
- routeValues: {
2999
- project: project,
3000
- sessionId: sessionId
3001
- },
3002
- body: sessionEnvironmentAndMachine
3003
- });
3004
- }
3005
-
3006
- /**
3007
- * Retrieves TestResultsSession Layout object in TCM data store
3008
- *
3009
- * @param project - Project ID or project name
3010
- * @param sessionId - Retrieve session object.
3011
- */
3012
- public async getTestSessionLayoutBySessionId(
3013
- project: string,
3014
- sessionId: number
3015
- ): Promise<any[]> {
3016
-
3017
- return this.beginRequest<any[]>({
3018
- apiVersion: "7.2-preview.2",
3019
- routeTemplate: "{project}/_apis/testresults/testsession/session/{sessionId}/layout",
3020
- routeValues: {
3021
- project: project,
3022
- sessionId: sessionId
3023
- }
3024
- });
3025
- }
3026
-
3027
- /**
3028
- * Creates Notification object in TCM data store for a given session
3029
- *
3030
- * @param notifications - Notification(s) to add for the specified sessionId
3031
- * @param project - Project ID or project name
3032
- * @param sessionId - ID of Session to add Notification
3033
- */
3034
- public async createNotification(
3035
- notifications: Test.TestSessionNotification[],
3036
- project: string,
3037
- sessionId: number
3038
- ): Promise<number[]> {
3039
-
3040
- return this.beginRequest<number[]>({
3041
- apiVersion: "7.2-preview.2",
3042
- method: "POST",
3043
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
3044
- routeValues: {
3045
- project: project,
3046
- sessionId: sessionId
3047
- },
3048
- body: notifications
3049
- });
3050
- }
3051
-
3052
- /**
3053
- * Retrieves TestResultsSession Notification objects in TCM data store
3054
- *
3055
- * @param project - Project ID or project name
3056
- * @param sessionId - Id of TestResults session to obtain Notifications for.
3057
- */
3058
- public async getSessionNotifications(
3059
- project: string,
3060
- sessionId: number
3061
- ): Promise<Test.TestSessionNotification[]> {
3062
-
3063
- return this.beginRequest<Test.TestSessionNotification[]>({
3064
- apiVersion: "7.2-preview.2",
3065
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
3066
- routeValues: {
3067
- project: project,
3068
- sessionId: sessionId
3069
- }
3070
- });
3071
- }
3072
-
3073
- /**
3074
- * Add Test Results to test run session
3075
- *
3076
- * @param results -
3077
- * @param project - Project ID or project name
3078
- * @param runId - RunId of test run
3079
- */
3080
- public async addTestResultsToTestRunSession(
3081
- results: Test.TestCaseResult[],
3082
- project: string,
3083
- runId: number
3084
- ): Promise<Test.TestCaseResult[]> {
3085
-
3086
- return this.beginRequest<Test.TestCaseResult[]>({
3087
- apiVersion: "7.2-preview.2",
3088
- method: "POST",
3089
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3090
- routeValues: {
3091
- project: project,
3092
- runId: runId
3093
- },
3094
- body: results
3095
- });
3096
- }
3097
-
3098
- /**
3099
- * @param project - Project ID or project name
3100
- * @param runId -
3101
- * @param detailsToInclude -
3102
- * @param skip -
3103
- * @param top -
3104
- * @param outcomes -
3105
- * @param newTestsOnly -
3106
- */
3107
- public async getTestSessionResults(
3108
- project: string,
3109
- runId: number,
3110
- detailsToInclude?: Test.ResultDetails,
3111
- skip?: number,
3112
- top?: number,
3113
- outcomes?: Test.TestOutcome[],
3114
- newTestsOnly?: boolean
3115
- ): Promise<Test.TestCaseResult[]> {
3116
-
3117
- const queryValues: any = {
3118
- detailsToInclude: detailsToInclude,
3119
- '$skip': skip,
3120
- '$top': top,
3121
- outcomes: outcomes && outcomes.join(","),
3122
- '$newTestsOnly': newTestsOnly
3123
- };
3124
-
3125
- return this.beginRequest<Test.TestCaseResult[]>({
3126
- apiVersion: "7.2-preview.2",
3127
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3128
- routeValues: {
3129
- project: project,
3130
- runId: runId
3131
- },
3132
- queryParams: queryValues
3133
- });
3134
- }
3135
-
3136
- /**
3137
- * Creates TestResultsMRX objects in TCM data store for existing test results
3138
- *
3139
- * @param results - Results object with only test results MRX properties and existing testResultId
3140
- * @param project - Project ID or project name
3141
- * @param runId - RunId of test run
3142
- */
3143
- public async updateTestResultsToTestRunSession(
3144
- results: Test.TestCaseResult[],
3145
- project: string,
3146
- runId: number
3147
- ): Promise<number[]> {
3148
-
3149
- return this.beginRequest<number[]>({
3150
- apiVersion: "7.2-preview.2",
3151
- method: "PATCH",
3152
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3153
- routeValues: {
3154
- project: project,
3155
- runId: runId
3156
- },
3157
- body: results
3158
- });
3159
- }
3160
-
3161
- /**
3162
- * Creates test result machines for the provided TestRunId
3163
- *
3164
- * @param testResultMachines - List of machines for test results in the run
3165
- * @param project - Project ID or project name
3166
- * @param runId - ID of the TestRun to add machines for
3167
- */
3168
- public async createTestResultMachines(
3169
- testResultMachines: Test.TestResultMachine[],
3170
- project: string,
3171
- runId: number
3172
- ): Promise<void> {
3173
-
3174
- return this.beginRequest<void>({
3175
- apiVersion: "7.2-preview.2",
3176
- method: "POST",
3177
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/machines",
3178
- routeValues: {
3179
- project: project,
3180
- runId: runId
3181
- },
3182
- body: testResultMachines
3183
- });
3184
- }
3185
-
3186
- /**
3187
- * Gets test result machines for the provided TestRunId
3188
- *
3189
- * @param project - Project ID or project name
3190
- * @param runId - ID of the TestRun to add machines for
3191
- */
3192
- public async getTestResultMachines(
3193
- project: string,
3194
- runId: number
3195
- ): Promise<Test.TestResultMachine[]> {
3196
-
3197
- return this.beginRequest<Test.TestResultMachine[]>({
3198
- apiVersion: "7.2-preview.2",
3199
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/machines",
3200
- routeValues: {
3201
- project: project,
3202
- runId: runId
3203
- }
3204
- });
3205
- }
3206
-
3207
- /**
3208
- * Gets full TestCaseResult objects with 1MRX details for the provided pipelineId
3209
- *
3210
- * @param project - Project ID or project name
3211
- * @param pipelineId - Pipeline Id. This is same as build Id.
3212
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
3213
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
3214
- * @param jobName - 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.
3215
- * @param outcomes - List of outcome of results
3216
- * @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not. Defaults to false.
3217
- * @param top - Maximum number of results to return. Defaults to 10000.
3218
- * @param continuationToken - Header to pass the continuationToken
3219
- */
3220
- public async getTestResultsByPipelineMRX(
3221
- project: string,
3222
- pipelineId: number,
3223
- stageName?: string,
3224
- phaseName?: string,
3225
- jobName?: string,
3226
- outcomes?: Test.TestOutcome[],
3227
- includeAllBuildRuns?: boolean,
3228
- top?: number,
3229
- continuationToken?: String
3230
- ): Promise<WebApi.PagedList<Test.TestCaseResult>> {
3231
-
3232
- const queryValues: any = {
3233
- pipelineId: pipelineId,
3234
- stageName: stageName,
3235
- phaseName: phaseName,
3236
- jobName: jobName,
3237
- outcomes: outcomes && outcomes.join(","),
3238
- includeAllBuildRuns: includeAllBuildRuns,
3239
- '$top': top
3240
- };
3241
-
3242
- return this.beginRequest<Response>({
3243
- apiVersion: "7.2-preview.2",
3244
- routeTemplate: "{project}/_apis/testresults/testsession/resultsbypipeline",
3245
- routeValues: {
3246
- project: project
3247
- },
3248
- customHeaders: {
3249
- "x-ms-continuationtoken": continuationToken,
3250
- },
3251
- queryParams: queryValues,
3252
- returnRawResponse: true
3253
- }).then(async response => {
3254
- const body = <WebApi.PagedList<Test.TestCaseResult>>await response.text().then(deserializeVssJsonObject);
3255
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
3256
- return body;
3257
- });
3258
- }
3259
-
3260
- /**
3261
- * Retrieves Test runs associated to a session
3262
- *
3263
- * @param project - Project ID or project name
3264
- * @param sessionId - Id of TestResults session to obtain Test Runs for.
3265
- */
3266
- public async getTestRunsBySessionId(
3267
- project: string,
3268
- sessionId: number
3269
- ): Promise<number[]> {
3270
-
3271
- return this.beginRequest<number[]>({
3272
- apiVersion: "7.2-preview.2",
3273
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/runs",
3274
- routeValues: {
3275
- project: project,
3276
- sessionId: sessionId
3277
- }
3278
- });
3279
- }
3280
-
3281
- /**
3282
- * Updates Test runs associated to a session
3283
- *
3284
- * @param testRunIds -
3285
- * @param project - Project ID or project name
3286
- * @param sessionId - Id of TestResults session to update Test Runs for.
3287
- */
3288
- public async updateTestRunsBySessionId(
3289
- testRunIds: Test.TestSessionTestRun,
3290
- project: string,
3291
- sessionId: number
3292
- ): Promise<number[]> {
3293
-
3294
- return this.beginRequest<number[]>({
3295
- apiVersion: "7.2-preview.2",
3296
- method: "PATCH",
3297
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/runs",
3298
- routeValues: {
3299
- project: project,
3300
- sessionId: sessionId
3301
- },
3302
- body: testRunIds
3303
- });
3304
- }
3305
-
3306
- /**
3307
- * @param testSettings -
3308
- * @param project - Project ID or project name
3309
- */
3310
- public async createTestSettings(
3311
- testSettings: Test.TestSettings,
3312
- project: string
3313
- ): Promise<number> {
3314
-
3315
- return this.beginRequest<number>({
3316
- apiVersion: "7.2-preview.1",
3317
- method: "POST",
3318
- routeTemplate: "{project}/_apis/testresults/testsettings",
3319
- routeValues: {
3320
- project: project
3321
- },
3322
- body: testSettings
3323
- });
3324
- }
3325
-
3326
- /**
3327
- * @param project - Project ID or project name
3328
- * @param testSettingsId -
3329
- */
3330
- public async deleteTestSettings(
3331
- project: string,
3332
- testSettingsId: number
3333
- ): Promise<void> {
3334
-
3335
- const queryValues: any = {
3336
- testSettingsId: testSettingsId
3337
- };
3338
-
3339
- return this.beginRequest<void>({
3340
- apiVersion: "7.2-preview.1",
3341
- method: "DELETE",
3342
- routeTemplate: "{project}/_apis/testresults/testsettings",
3343
- routeValues: {
3344
- project: project
3345
- },
3346
- queryParams: queryValues
3347
- });
3348
- }
3349
-
3350
- /**
3351
- * @param project - Project ID or project name
3352
- * @param testSettingsId -
3353
- */
3354
- public async getTestSettingsById(
3355
- project: string,
3356
- testSettingsId: number
3357
- ): Promise<Test.TestSettings> {
3358
-
3359
- const queryValues: any = {
3360
- testSettingsId: testSettingsId
3361
- };
3362
-
3363
- return this.beginRequest<Test.TestSettings>({
3364
- apiVersion: "7.2-preview.1",
3365
- routeTemplate: "{project}/_apis/testresults/testsettings",
3366
- routeValues: {
3367
- project: project
3368
- },
3369
- queryParams: queryValues
3370
- });
3371
- }
3372
-
3373
- /**
3374
- * @param workItemToTestLinks -
3375
- * @param project - Project ID or project name
3376
- */
3377
- public async addWorkItemToTestLinks(
3378
- workItemToTestLinks: Test.WorkItemToTestLinks,
3379
- project: string
3380
- ): Promise<Test.WorkItemToTestLinks> {
3381
-
3382
- return this.beginRequest<Test.WorkItemToTestLinks>({
3383
- apiVersion: "7.2-preview.2",
3384
- method: "POST",
3385
- routeTemplate: "{project}/_apis/testresults/testmethods/workitems",
3386
- routeValues: {
3387
- project: project
3388
- },
3389
- body: workItemToTestLinks
3390
- });
3391
- }
3392
-
3393
- /**
3394
- * @param project - Project ID or project name
3395
- * @param testName -
3396
- * @param workItemId -
3397
- */
3398
- public async deleteTestMethodToWorkItemLink(
3399
- project: string,
3400
- testName: string,
3401
- workItemId: number
3402
- ): Promise<boolean> {
3403
-
3404
- const queryValues: any = {
3405
- testName: testName,
3406
- workItemId: workItemId
3407
- };
3408
-
3409
- return this.beginRequest<boolean>({
3410
- apiVersion: "7.2-preview.2",
3411
- method: "DELETE",
3412
- routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
3413
- routeValues: {
3414
- project: project
3415
- },
3416
- queryParams: queryValues
3417
- });
3418
- }
3419
-
3420
- /**
3421
- * @param project - Project ID or project name
3422
- * @param testName -
3423
- */
3424
- public async queryTestMethodLinkedWorkItems(
3425
- project: string,
3426
- testName: string
3427
- ): Promise<Test.TestToWorkItemLinks> {
3428
-
3429
- const queryValues: any = {
3430
- testName: testName
3431
- };
3432
-
3433
- return this.beginRequest<Test.TestToWorkItemLinks>({
3434
- apiVersion: "7.2-preview.2",
3435
- method: "POST",
3436
- routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
3437
- routeValues: {
3438
- project: project
3439
- },
3440
- queryParams: queryValues
3441
- });
3442
- }
3443
-
3444
- /**
3445
- * @param project - Project ID or project name
3446
- * @param runId -
3447
- * @param testCaseResultId -
3448
- */
3449
- public async getTestResultWorkItemsById(
3450
- project: string,
3451
- runId: number,
3452
- testCaseResultId: number
3453
- ): Promise<Test.WorkItemReference[]> {
3454
-
3455
- return this.beginRequest<Test.WorkItemReference[]>({
3456
- apiVersion: "7.2-preview.2",
3457
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",
3458
- routeValues: {
3459
- project: project,
3460
- runId: runId,
3461
- testCaseResultId: testCaseResultId
3462
- }
3463
- });
3464
- }
3465
-
3466
- /**
3467
- * Query Test Result WorkItems based on filter
3468
- *
3469
- * @param project - Project ID or project name
3470
- * @param workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems)
3471
- * @param automatedTestName -
3472
- * @param testCaseId -
3473
- * @param maxCompleteDate -
3474
- * @param days -
3475
- * @param workItemCount -
3476
- */
3477
- public async queryTestResultWorkItems(
3478
- project: string,
3479
- workItemCategory: string,
3480
- automatedTestName?: string,
3481
- testCaseId?: number,
3482
- maxCompleteDate?: Date,
3483
- days?: number,
3484
- workItemCount?: number
3485
- ): Promise<Test.WorkItemReference[]> {
3486
-
3487
- const queryValues: any = {
3488
- workItemCategory: workItemCategory,
3489
- automatedTestName: automatedTestName,
3490
- testCaseId: testCaseId,
3491
- maxCompleteDate: maxCompleteDate,
3492
- days: days,
3493
- '$workItemCount': workItemCount
3494
- };
3495
-
3496
- return this.beginRequest<Test.WorkItemReference[]>({
3497
- apiVersion: "7.2-preview.2",
3498
- routeTemplate: "{project}/_apis/testresults/results/workitems",
3499
- routeValues: {
3500
- project: project
3501
- },
3502
- queryParams: queryValues
3503
- });
3504
- }
3505
-
3506
- }