azure-devops-extension-api 4.247.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 (563) 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/Git → Git}/Git.d.ts +4 -0
  11. package/{bin/Management → Management}/Management.d.ts +8 -0
  12. package/{bin/Release → Release}/ReleaseClient.d.ts +4 -2
  13. package/{bin/Release → Release}/ReleaseClient.js +8 -4
  14. package/Release/ReleaseClient.min.js +1 -0
  15. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.d.ts +4 -0
  16. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.d.ts +3 -2
  17. package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.js +5 -3
  18. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
  19. package/{bin/TestResults → TestResults}/TestResultsClient.d.ts +24 -1
  20. package/{bin/TestResults → TestResults}/TestResultsClient.js +84 -10
  21. package/TestResults/TestResultsClient.min.js +1 -0
  22. package/package.json +1 -1
  23. package/SECURITY.md +0 -41
  24. package/bin/Alert/Alert.min.js +0 -1
  25. package/bin/Alert/AlertClient.min.js +0 -1
  26. package/bin/Gallery/GalleryClient.min.js +0 -1
  27. package/bin/LICENSE +0 -21
  28. package/bin/README.md +0 -2
  29. package/bin/Release/ReleaseClient.min.js +0 -1
  30. package/bin/ServiceEndpoint/ServiceEndpointClient.min.js +0 -1
  31. package/bin/TestResults/TestResultsClient.min.js +0 -1
  32. package/bin/package.json +0 -37
  33. package/buildpackage.js +0 -80
  34. package/src/Accounts/Accounts.ts +0 -134
  35. package/src/Accounts/AccountsClient.ts +0 -83
  36. package/src/Accounts/index.ts +0 -2
  37. package/src/AdvancedSecurity.Reporting/Reporting.ts +0 -180
  38. package/src/AdvancedSecurity.Reporting/ReportingClient.ts +0 -47
  39. package/src/Alert/Alert.ts +0 -1037
  40. package/src/Alert/AlertClient.ts +0 -330
  41. package/src/Boards/Boards.ts +0 -684
  42. package/src/Boards/BoardsClient.ts +0 -593
  43. package/src/Boards/index.ts +0 -2
  44. package/src/Build/Build.ts +0 -3416
  45. package/src/Build/BuildClient.ts +0 -2740
  46. package/src/Build/BuildServices.ts +0 -39
  47. package/src/Build/index.ts +0 -3
  48. package/src/Comments/Comments.ts +0 -330
  49. package/src/Comments/index.ts +0 -1
  50. package/src/Common/Client.ts +0 -37
  51. package/src/Common/CommonServices.ts +0 -853
  52. package/src/Common/Context.d.ts +0 -46
  53. package/src/Common/Fetch.ts +0 -239
  54. package/src/Common/RestClientBase.ts +0 -186
  55. package/src/Common/System.ts +0 -36
  56. package/src/Common/SystemData.ts +0 -135
  57. package/src/Common/Util/Serialization.ts +0 -59
  58. package/src/Common/Util/Url.ts +0 -773
  59. package/src/Common/index.ts +0 -3
  60. package/src/Contributions/Contributions.ts +0 -708
  61. package/src/Contributions/ContributionsClient.ts +0 -109
  62. package/src/Contributions/index.ts +0 -2
  63. package/src/Core/Core.ts +0 -579
  64. package/src/Core/CoreClient.ts +0 -765
  65. package/src/Core/index.ts +0 -2
  66. package/src/Dashboard/Dashboard.ts +0 -419
  67. package/src/Dashboard/DashboardClient.ts +0 -370
  68. package/src/Dashboard/WidgetConfigHelpers.ts +0 -43
  69. package/src/Dashboard/WidgetContracts.ts +0 -226
  70. package/src/Dashboard/WidgetHelpers.ts +0 -145
  71. package/src/Dashboard/index.ts +0 -5
  72. package/src/DistributedTaskCommon/DistributedTaskCommon.ts +0 -108
  73. package/src/DistributedTaskCommon/index.ts +0 -1
  74. package/src/ExtensionManagement/ExtensionManagement.ts +0 -1205
  75. package/src/ExtensionManagement/ExtensionManagementClient.ts +0 -646
  76. package/src/ExtensionManagement/index.ts +0 -2
  77. package/src/Favorite/Favorite.ts +0 -136
  78. package/src/Favorite/FavoriteClient.ts +0 -301
  79. package/src/FeatureAvailability/FeatureAvailability.ts +0 -20
  80. package/src/FeatureAvailability/FeatureAvailabilityClient.ts +0 -153
  81. package/src/FeatureAvailability/index.ts +0 -2
  82. package/src/FeatureManagement/FeatureManagement.ts +0 -166
  83. package/src/FeatureManagement/FeatureManagementClient.ts +0 -246
  84. package/src/FeatureManagement/index.ts +0 -2
  85. package/src/FileContainer/FileContainer.ts +0 -205
  86. package/src/FileContainer/FileContainerClient.ts +0 -154
  87. package/src/FileContainer/index.ts +0 -2
  88. package/src/FormInput/FormInput.ts +0 -288
  89. package/src/FormInput/index.ts +0 -1
  90. package/src/Gallery/Gallery.ts +0 -1977
  91. package/src/Gallery/GalleryClient.ts +0 -2251
  92. package/src/Gallery/index.ts +0 -2
  93. package/src/Git/CodeEditorTypes.ts +0 -335
  94. package/src/Git/Git.ts +0 -4058
  95. package/src/Git/GitClient.ts +0 -4750
  96. package/src/Git/GitServices.ts +0 -18
  97. package/src/Git/index.ts +0 -4
  98. package/src/Graph/Graph.ts +0 -572
  99. package/src/Graph/GraphClient.ts +0 -846
  100. package/src/Graph/index.ts +0 -2
  101. package/src/Identities/Identities.ts +0 -261
  102. package/src/Identities/IdentityProvider.ts +0 -90
  103. package/src/Identities/IdentityService.ts +0 -89
  104. package/src/Identities/index.ts +0 -3
  105. package/src/Locations/Locations.ts +0 -165
  106. package/src/Locations/LocationsClient.ts +0 -220
  107. package/src/Locations/index.ts +0 -2
  108. package/src/Management/Management.ts +0 -172
  109. package/src/Management/ManagementClient.ts +0 -348
  110. package/src/Notification/Notification.ts +0 -1460
  111. package/src/Notification/NotificationClient.ts +0 -477
  112. package/src/Notification/index.ts +0 -2
  113. package/src/Operations/Operations.ts +0 -86
  114. package/src/Operations/OperationsClient.ts +0 -42
  115. package/src/Operations/index.ts +0 -2
  116. package/src/Pipelines/Pipelines.ts +0 -354
  117. package/src/Pipelines/PipelinesClient.ts +0 -306
  118. package/src/Policy/Policy.ts +0 -173
  119. package/src/Policy/PolicyClient.ts +0 -315
  120. package/src/Policy/index.ts +0 -2
  121. package/src/Profile/Profile.ts +0 -187
  122. package/src/Profile/ProfileClient.ts +0 -328
  123. package/src/Profile/index.ts +0 -2
  124. package/src/ProjectAnalysis/ProjectAnalysis.ts +0 -74
  125. package/src/ProjectAnalysis/ProjectAnalysisClient.ts +0 -124
  126. package/src/ProjectAnalysis/index.ts +0 -2
  127. package/src/Release/Release.ts +0 -4237
  128. package/src/Release/ReleaseClient.ts +0 -2450
  129. package/src/Release/index.ts +0 -2
  130. package/src/ResourceUsage/ResourceUsage.ts +0 -19
  131. package/src/ResourceUsage/ResourceUsageClient.ts +0 -48
  132. package/src/ServiceEndpoint/ServiceEndpoint.ts +0 -930
  133. package/src/ServiceEndpoint/ServiceEndpointClient.ts +0 -617
  134. package/src/ServiceEndpoint/index.ts +0 -2
  135. package/src/ServiceHooks/ServiceHooks.ts +0 -759
  136. package/src/ServiceHooks/ServiceHooksClient.ts +0 -499
  137. package/src/ServiceHooks/index.ts +0 -2
  138. package/src/TaskAgent/TaskAgent.ts +0 -3896
  139. package/src/TaskAgent/TaskAgentClient.ts +0 -3918
  140. package/src/TaskAgent/index.ts +0 -2
  141. package/src/Test/Test.ts +0 -5853
  142. package/src/Test/TestClient.ts +0 -2201
  143. package/src/Test/index.ts +0 -2
  144. package/src/TestPlan/TestPlan.ts +0 -1384
  145. package/src/TestPlan/TestPlanClient.ts +0 -1367
  146. package/src/TestPlan/index.ts +0 -2
  147. package/src/TestResults/TestResults.ts +0 -11
  148. package/src/TestResults/TestResultsClient.ts +0 -3450
  149. package/src/TestResults/index.ts +0 -2
  150. package/src/Tfvc/Tfvc.ts +0 -770
  151. package/src/Tfvc/TfvcClient.ts +0 -757
  152. package/src/Tfvc/index.ts +0 -2
  153. package/src/WebApi/WebApi.ts +0 -452
  154. package/src/WebApi/index.ts +0 -1
  155. package/src/Wiki/Wiki.ts +0 -352
  156. package/src/Wiki/WikiClient.ts +0 -712
  157. package/src/Wiki/index.ts +0 -2
  158. package/src/Work/Work.ts +0 -1367
  159. package/src/Work/WorkClient.ts +0 -1489
  160. package/src/Work/index.ts +0 -2
  161. package/src/WorkItemTracking/WorkItemTracking.ts +0 -2215
  162. package/src/WorkItemTracking/WorkItemTrackingClient.ts +0 -2032
  163. package/src/WorkItemTracking/WorkItemTrackingServices.ts +0 -329
  164. package/src/WorkItemTracking/index.ts +0 -3
  165. package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +0 -1295
  166. package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +0 -1455
  167. package/src/WorkItemTrackingProcess/index.ts +0 -2
  168. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +0 -606
  169. package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +0 -1175
  170. package/src/WorkItemTrackingProcessDefinitions/index.ts +0 -2
  171. package/src/index.ts +0 -1
  172. package/tsconfig.json +0 -21
  173. /package/{bin/Accounts → Accounts}/Accounts.d.ts +0 -0
  174. /package/{bin/Accounts → Accounts}/Accounts.js +0 -0
  175. /package/{bin/Accounts → Accounts}/Accounts.min.js +0 -0
  176. /package/{bin/Accounts → Accounts}/AccountsClient.d.ts +0 -0
  177. /package/{bin/Accounts → Accounts}/AccountsClient.js +0 -0
  178. /package/{bin/Accounts → Accounts}/AccountsClient.min.js +0 -0
  179. /package/{bin/Accounts → Accounts}/index.d.ts +0 -0
  180. /package/{bin/Accounts → Accounts}/index.js +0 -0
  181. /package/{bin/Accounts → Accounts}/index.min.js +0 -0
  182. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.d.ts +0 -0
  183. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.js +0 -0
  184. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.min.js +0 -0
  185. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
  186. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
  187. /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
  188. /package/{bin/Boards → Boards}/Boards.d.ts +0 -0
  189. /package/{bin/Boards → Boards}/Boards.js +0 -0
  190. /package/{bin/Boards → Boards}/Boards.min.js +0 -0
  191. /package/{bin/Boards → Boards}/BoardsClient.d.ts +0 -0
  192. /package/{bin/Boards → Boards}/BoardsClient.js +0 -0
  193. /package/{bin/Boards → Boards}/BoardsClient.min.js +0 -0
  194. /package/{bin/Boards → Boards}/index.d.ts +0 -0
  195. /package/{bin/Boards → Boards}/index.js +0 -0
  196. /package/{bin/Boards → Boards}/index.min.js +0 -0
  197. /package/{bin/Build → Build}/Build.d.ts +0 -0
  198. /package/{bin/Build → Build}/Build.js +0 -0
  199. /package/{bin/Build → Build}/Build.min.js +0 -0
  200. /package/{bin/Build → Build}/BuildClient.d.ts +0 -0
  201. /package/{bin/Build → Build}/BuildClient.js +0 -0
  202. /package/{bin/Build → Build}/BuildClient.min.js +0 -0
  203. /package/{bin/Build → Build}/BuildServices.d.ts +0 -0
  204. /package/{bin/Build → Build}/BuildServices.js +0 -0
  205. /package/{bin/Build → Build}/BuildServices.min.js +0 -0
  206. /package/{bin/Build → Build}/index.d.ts +0 -0
  207. /package/{bin/Build → Build}/index.js +0 -0
  208. /package/{bin/Build → Build}/index.min.js +0 -0
  209. /package/{bin/Comments → Comments}/Comments.d.ts +0 -0
  210. /package/{bin/Comments → Comments}/Comments.js +0 -0
  211. /package/{bin/Comments → Comments}/Comments.min.js +0 -0
  212. /package/{bin/Comments → Comments}/index.d.ts +0 -0
  213. /package/{bin/Comments → Comments}/index.js +0 -0
  214. /package/{bin/Comments → Comments}/index.min.js +0 -0
  215. /package/{bin/Common → Common}/Client.d.ts +0 -0
  216. /package/{bin/Common → Common}/Client.js +0 -0
  217. /package/{bin/Common → Common}/Client.min.js +0 -0
  218. /package/{bin/Common → Common}/CommonServices.d.ts +0 -0
  219. /package/{bin/Common → Common}/CommonServices.js +0 -0
  220. /package/{bin/Common → Common}/CommonServices.min.js +0 -0
  221. /package/{bin/Common → Common}/Context.d.ts +0 -0
  222. /package/{bin/Common → Common}/Fetch.d.ts +0 -0
  223. /package/{bin/Common → Common}/Fetch.js +0 -0
  224. /package/{bin/Common → Common}/Fetch.min.js +0 -0
  225. /package/{bin/Common → Common}/RestClientBase.d.ts +0 -0
  226. /package/{bin/Common → Common}/RestClientBase.js +0 -0
  227. /package/{bin/Common → Common}/RestClientBase.min.js +0 -0
  228. /package/{bin/Common → Common}/System.d.ts +0 -0
  229. /package/{bin/Common → Common}/System.js +0 -0
  230. /package/{bin/Common → Common}/System.min.js +0 -0
  231. /package/{bin/Common → Common}/SystemData.d.ts +0 -0
  232. /package/{bin/Common → Common}/SystemData.js +0 -0
  233. /package/{bin/Common → Common}/SystemData.min.js +0 -0
  234. /package/{bin/Common → Common}/Util/Serialization.d.ts +0 -0
  235. /package/{bin/Common → Common}/Util/Serialization.js +0 -0
  236. /package/{bin/Common → Common}/Util/Serialization.min.js +0 -0
  237. /package/{bin/Common → Common}/Util/Url.d.ts +0 -0
  238. /package/{bin/Common → Common}/Util/Url.js +0 -0
  239. /package/{bin/Common → Common}/Util/Url.min.js +0 -0
  240. /package/{bin/Common → Common}/index.d.ts +0 -0
  241. /package/{bin/Common → Common}/index.js +0 -0
  242. /package/{bin/Common → Common}/index.min.js +0 -0
  243. /package/{bin/Contributions → Contributions}/Contributions.d.ts +0 -0
  244. /package/{bin/Contributions → Contributions}/Contributions.js +0 -0
  245. /package/{bin/Contributions → Contributions}/Contributions.min.js +0 -0
  246. /package/{bin/Contributions → Contributions}/ContributionsClient.d.ts +0 -0
  247. /package/{bin/Contributions → Contributions}/ContributionsClient.js +0 -0
  248. /package/{bin/Contributions → Contributions}/ContributionsClient.min.js +0 -0
  249. /package/{bin/Contributions → Contributions}/index.d.ts +0 -0
  250. /package/{bin/Contributions → Contributions}/index.js +0 -0
  251. /package/{bin/Contributions → Contributions}/index.min.js +0 -0
  252. /package/{bin/Core → Core}/Core.d.ts +0 -0
  253. /package/{bin/Core → Core}/Core.js +0 -0
  254. /package/{bin/Core → Core}/Core.min.js +0 -0
  255. /package/{bin/Core → Core}/CoreClient.d.ts +0 -0
  256. /package/{bin/Core → Core}/CoreClient.js +0 -0
  257. /package/{bin/Core → Core}/CoreClient.min.js +0 -0
  258. /package/{bin/Core → Core}/index.d.ts +0 -0
  259. /package/{bin/Core → Core}/index.js +0 -0
  260. /package/{bin/Core → Core}/index.min.js +0 -0
  261. /package/{bin/Dashboard → Dashboard}/Dashboard.d.ts +0 -0
  262. /package/{bin/Dashboard → Dashboard}/Dashboard.js +0 -0
  263. /package/{bin/Dashboard → Dashboard}/Dashboard.min.js +0 -0
  264. /package/{bin/Dashboard → Dashboard}/DashboardClient.d.ts +0 -0
  265. /package/{bin/Dashboard → Dashboard}/DashboardClient.js +0 -0
  266. /package/{bin/Dashboard → Dashboard}/DashboardClient.min.js +0 -0
  267. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.d.ts +0 -0
  268. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.js +0 -0
  269. /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.min.js +0 -0
  270. /package/{bin/Dashboard → Dashboard}/WidgetContracts.d.ts +0 -0
  271. /package/{bin/Dashboard → Dashboard}/WidgetContracts.js +0 -0
  272. /package/{bin/Dashboard → Dashboard}/WidgetContracts.min.js +0 -0
  273. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.d.ts +0 -0
  274. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.js +0 -0
  275. /package/{bin/Dashboard → Dashboard}/WidgetHelpers.min.js +0 -0
  276. /package/{bin/Dashboard → Dashboard}/index.d.ts +0 -0
  277. /package/{bin/Dashboard → Dashboard}/index.js +0 -0
  278. /package/{bin/Dashboard → Dashboard}/index.min.js +0 -0
  279. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
  280. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
  281. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
  282. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.d.ts +0 -0
  283. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.js +0 -0
  284. /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.min.js +0 -0
  285. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.d.ts +0 -0
  286. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.js +0 -0
  287. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.min.js +0 -0
  288. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
  289. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.js +0 -0
  290. /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.min.js +0 -0
  291. /package/{bin/ExtensionManagement → ExtensionManagement}/index.d.ts +0 -0
  292. /package/{bin/ExtensionManagement → ExtensionManagement}/index.js +0 -0
  293. /package/{bin/ExtensionManagement → ExtensionManagement}/index.min.js +0 -0
  294. /package/{bin/Favorite → Favorite}/Favorite.d.ts +0 -0
  295. /package/{bin/Favorite → Favorite}/Favorite.js +0 -0
  296. /package/{bin/Favorite → Favorite}/Favorite.min.js +0 -0
  297. /package/{bin/Favorite → Favorite}/FavoriteClient.d.ts +0 -0
  298. /package/{bin/Favorite → Favorite}/FavoriteClient.js +0 -0
  299. /package/{bin/Favorite → Favorite}/FavoriteClient.min.js +0 -0
  300. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.d.ts +0 -0
  301. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.js +0 -0
  302. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.min.js +0 -0
  303. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
  304. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
  305. /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
  306. /package/{bin/FeatureAvailability → FeatureAvailability}/index.d.ts +0 -0
  307. /package/{bin/FeatureAvailability → FeatureAvailability}/index.js +0 -0
  308. /package/{bin/FeatureAvailability → FeatureAvailability}/index.min.js +0 -0
  309. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.d.ts +0 -0
  310. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.js +0 -0
  311. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.min.js +0 -0
  312. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.d.ts +0 -0
  313. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.js +0 -0
  314. /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.min.js +0 -0
  315. /package/{bin/FeatureManagement → FeatureManagement}/index.d.ts +0 -0
  316. /package/{bin/FeatureManagement → FeatureManagement}/index.js +0 -0
  317. /package/{bin/FeatureManagement → FeatureManagement}/index.min.js +0 -0
  318. /package/{bin/FileContainer → FileContainer}/FileContainer.d.ts +0 -0
  319. /package/{bin/FileContainer → FileContainer}/FileContainer.js +0 -0
  320. /package/{bin/FileContainer → FileContainer}/FileContainer.min.js +0 -0
  321. /package/{bin/FileContainer → FileContainer}/FileContainerClient.d.ts +0 -0
  322. /package/{bin/FileContainer → FileContainer}/FileContainerClient.js +0 -0
  323. /package/{bin/FileContainer → FileContainer}/FileContainerClient.min.js +0 -0
  324. /package/{bin/FileContainer → FileContainer}/index.d.ts +0 -0
  325. /package/{bin/FileContainer → FileContainer}/index.js +0 -0
  326. /package/{bin/FileContainer → FileContainer}/index.min.js +0 -0
  327. /package/{bin/FormInput → FormInput}/FormInput.d.ts +0 -0
  328. /package/{bin/FormInput → FormInput}/FormInput.js +0 -0
  329. /package/{bin/FormInput → FormInput}/FormInput.min.js +0 -0
  330. /package/{bin/FormInput → FormInput}/index.d.ts +0 -0
  331. /package/{bin/FormInput → FormInput}/index.js +0 -0
  332. /package/{bin/FormInput → FormInput}/index.min.js +0 -0
  333. /package/{bin/Gallery → Gallery}/Gallery.d.ts +0 -0
  334. /package/{bin/Gallery → Gallery}/Gallery.js +0 -0
  335. /package/{bin/Gallery → Gallery}/Gallery.min.js +0 -0
  336. /package/{bin/Gallery → Gallery}/index.d.ts +0 -0
  337. /package/{bin/Gallery → Gallery}/index.js +0 -0
  338. /package/{bin/Gallery → Gallery}/index.min.js +0 -0
  339. /package/{bin/Git → Git}/CodeEditorTypes.d.ts +0 -0
  340. /package/{bin/Git → Git}/CodeEditorTypes.js +0 -0
  341. /package/{bin/Git → Git}/CodeEditorTypes.min.js +0 -0
  342. /package/{bin/Git → Git}/Git.js +0 -0
  343. /package/{bin/Git → Git}/Git.min.js +0 -0
  344. /package/{bin/Git → Git}/GitClient.d.ts +0 -0
  345. /package/{bin/Git → Git}/GitClient.js +0 -0
  346. /package/{bin/Git → Git}/GitClient.min.js +0 -0
  347. /package/{bin/Git → Git}/GitServices.d.ts +0 -0
  348. /package/{bin/Git → Git}/GitServices.js +0 -0
  349. /package/{bin/Git → Git}/GitServices.min.js +0 -0
  350. /package/{bin/Git → Git}/index.d.ts +0 -0
  351. /package/{bin/Git → Git}/index.js +0 -0
  352. /package/{bin/Git → Git}/index.min.js +0 -0
  353. /package/{bin/Graph → Graph}/Graph.d.ts +0 -0
  354. /package/{bin/Graph → Graph}/Graph.js +0 -0
  355. /package/{bin/Graph → Graph}/Graph.min.js +0 -0
  356. /package/{bin/Graph → Graph}/GraphClient.d.ts +0 -0
  357. /package/{bin/Graph → Graph}/GraphClient.js +0 -0
  358. /package/{bin/Graph → Graph}/GraphClient.min.js +0 -0
  359. /package/{bin/Graph → Graph}/index.d.ts +0 -0
  360. /package/{bin/Graph → Graph}/index.js +0 -0
  361. /package/{bin/Graph → Graph}/index.min.js +0 -0
  362. /package/{bin/Identities → Identities}/Identities.d.ts +0 -0
  363. /package/{bin/Identities → Identities}/Identities.js +0 -0
  364. /package/{bin/Identities → Identities}/Identities.min.js +0 -0
  365. /package/{bin/Identities → Identities}/IdentityProvider.d.ts +0 -0
  366. /package/{bin/Identities → Identities}/IdentityProvider.js +0 -0
  367. /package/{bin/Identities → Identities}/IdentityProvider.min.js +0 -0
  368. /package/{bin/Identities → Identities}/IdentityService.d.ts +0 -0
  369. /package/{bin/Identities → Identities}/IdentityService.js +0 -0
  370. /package/{bin/Identities → Identities}/IdentityService.min.js +0 -0
  371. /package/{bin/Identities → Identities}/index.d.ts +0 -0
  372. /package/{bin/Identities → Identities}/index.js +0 -0
  373. /package/{bin/Identities → Identities}/index.min.js +0 -0
  374. /package/{bin/Locations → Locations}/Locations.d.ts +0 -0
  375. /package/{bin/Locations → Locations}/Locations.js +0 -0
  376. /package/{bin/Locations → Locations}/Locations.min.js +0 -0
  377. /package/{bin/Locations → Locations}/LocationsClient.d.ts +0 -0
  378. /package/{bin/Locations → Locations}/LocationsClient.js +0 -0
  379. /package/{bin/Locations → Locations}/LocationsClient.min.js +0 -0
  380. /package/{bin/Locations → Locations}/index.d.ts +0 -0
  381. /package/{bin/Locations → Locations}/index.js +0 -0
  382. /package/{bin/Locations → Locations}/index.min.js +0 -0
  383. /package/{bin/Management → Management}/Management.js +0 -0
  384. /package/{bin/Management → Management}/Management.min.js +0 -0
  385. /package/{bin/Management → Management}/ManagementClient.d.ts +0 -0
  386. /package/{bin/Management → Management}/ManagementClient.js +0 -0
  387. /package/{bin/Management → Management}/ManagementClient.min.js +0 -0
  388. /package/{bin/Notification → Notification}/Notification.d.ts +0 -0
  389. /package/{bin/Notification → Notification}/Notification.js +0 -0
  390. /package/{bin/Notification → Notification}/Notification.min.js +0 -0
  391. /package/{bin/Notification → Notification}/NotificationClient.d.ts +0 -0
  392. /package/{bin/Notification → Notification}/NotificationClient.js +0 -0
  393. /package/{bin/Notification → Notification}/NotificationClient.min.js +0 -0
  394. /package/{bin/Notification → Notification}/index.d.ts +0 -0
  395. /package/{bin/Notification → Notification}/index.js +0 -0
  396. /package/{bin/Notification → Notification}/index.min.js +0 -0
  397. /package/{bin/Operations → Operations}/Operations.d.ts +0 -0
  398. /package/{bin/Operations → Operations}/Operations.js +0 -0
  399. /package/{bin/Operations → Operations}/Operations.min.js +0 -0
  400. /package/{bin/Operations → Operations}/OperationsClient.d.ts +0 -0
  401. /package/{bin/Operations → Operations}/OperationsClient.js +0 -0
  402. /package/{bin/Operations → Operations}/OperationsClient.min.js +0 -0
  403. /package/{bin/Operations → Operations}/index.d.ts +0 -0
  404. /package/{bin/Operations → Operations}/index.js +0 -0
  405. /package/{bin/Operations → Operations}/index.min.js +0 -0
  406. /package/{bin/Pipelines → Pipelines}/Pipelines.d.ts +0 -0
  407. /package/{bin/Pipelines → Pipelines}/Pipelines.js +0 -0
  408. /package/{bin/Pipelines → Pipelines}/Pipelines.min.js +0 -0
  409. /package/{bin/Pipelines → Pipelines}/PipelinesClient.d.ts +0 -0
  410. /package/{bin/Pipelines → Pipelines}/PipelinesClient.js +0 -0
  411. /package/{bin/Pipelines → Pipelines}/PipelinesClient.min.js +0 -0
  412. /package/{bin/Policy → Policy}/Policy.d.ts +0 -0
  413. /package/{bin/Policy → Policy}/Policy.js +0 -0
  414. /package/{bin/Policy → Policy}/Policy.min.js +0 -0
  415. /package/{bin/Policy → Policy}/PolicyClient.d.ts +0 -0
  416. /package/{bin/Policy → Policy}/PolicyClient.js +0 -0
  417. /package/{bin/Policy → Policy}/PolicyClient.min.js +0 -0
  418. /package/{bin/Policy → Policy}/index.d.ts +0 -0
  419. /package/{bin/Policy → Policy}/index.js +0 -0
  420. /package/{bin/Policy → Policy}/index.min.js +0 -0
  421. /package/{bin/Profile → Profile}/Profile.d.ts +0 -0
  422. /package/{bin/Profile → Profile}/Profile.js +0 -0
  423. /package/{bin/Profile → Profile}/Profile.min.js +0 -0
  424. /package/{bin/Profile → Profile}/ProfileClient.d.ts +0 -0
  425. /package/{bin/Profile → Profile}/ProfileClient.js +0 -0
  426. /package/{bin/Profile → Profile}/ProfileClient.min.js +0 -0
  427. /package/{bin/Profile → Profile}/index.d.ts +0 -0
  428. /package/{bin/Profile → Profile}/index.js +0 -0
  429. /package/{bin/Profile → Profile}/index.min.js +0 -0
  430. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
  431. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.js +0 -0
  432. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
  433. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
  434. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
  435. /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
  436. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.d.ts +0 -0
  437. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.js +0 -0
  438. /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.min.js +0 -0
  439. /package/{bin/Release → Release}/Release.d.ts +0 -0
  440. /package/{bin/Release → Release}/Release.js +0 -0
  441. /package/{bin/Release → Release}/Release.min.js +0 -0
  442. /package/{bin/Release → Release}/index.d.ts +0 -0
  443. /package/{bin/Release → Release}/index.js +0 -0
  444. /package/{bin/Release → Release}/index.min.js +0 -0
  445. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.d.ts +0 -0
  446. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.js +0 -0
  447. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.min.js +0 -0
  448. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.d.ts +0 -0
  449. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.js +0 -0
  450. /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.min.js +0 -0
  451. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.js +0 -0
  452. /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
  453. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.d.ts +0 -0
  454. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.js +0 -0
  455. /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.min.js +0 -0
  456. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.d.ts +0 -0
  457. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.js +0 -0
  458. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.min.js +0 -0
  459. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.d.ts +0 -0
  460. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.js +0 -0
  461. /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.min.js +0 -0
  462. /package/{bin/ServiceHooks → ServiceHooks}/index.d.ts +0 -0
  463. /package/{bin/ServiceHooks → ServiceHooks}/index.js +0 -0
  464. /package/{bin/ServiceHooks → ServiceHooks}/index.min.js +0 -0
  465. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.d.ts +0 -0
  466. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.js +0 -0
  467. /package/{bin/TaskAgent → TaskAgent}/TaskAgent.min.js +0 -0
  468. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.d.ts +0 -0
  469. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.js +0 -0
  470. /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.min.js +0 -0
  471. /package/{bin/TaskAgent → TaskAgent}/index.d.ts +0 -0
  472. /package/{bin/TaskAgent → TaskAgent}/index.js +0 -0
  473. /package/{bin/TaskAgent → TaskAgent}/index.min.js +0 -0
  474. /package/{bin/Test → Test}/Test.d.ts +0 -0
  475. /package/{bin/Test → Test}/Test.js +0 -0
  476. /package/{bin/Test → Test}/Test.min.js +0 -0
  477. /package/{bin/Test → Test}/TestClient.d.ts +0 -0
  478. /package/{bin/Test → Test}/TestClient.js +0 -0
  479. /package/{bin/Test → Test}/TestClient.min.js +0 -0
  480. /package/{bin/Test → Test}/index.d.ts +0 -0
  481. /package/{bin/Test → Test}/index.js +0 -0
  482. /package/{bin/Test → Test}/index.min.js +0 -0
  483. /package/{bin/TestPlan → TestPlan}/TestPlan.d.ts +0 -0
  484. /package/{bin/TestPlan → TestPlan}/TestPlan.js +0 -0
  485. /package/{bin/TestPlan → TestPlan}/TestPlan.min.js +0 -0
  486. /package/{bin/TestPlan → TestPlan}/TestPlanClient.d.ts +0 -0
  487. /package/{bin/TestPlan → TestPlan}/TestPlanClient.js +0 -0
  488. /package/{bin/TestPlan → TestPlan}/TestPlanClient.min.js +0 -0
  489. /package/{bin/TestPlan → TestPlan}/index.d.ts +0 -0
  490. /package/{bin/TestPlan → TestPlan}/index.js +0 -0
  491. /package/{bin/TestPlan → TestPlan}/index.min.js +0 -0
  492. /package/{bin/TestResults → TestResults}/TestResults.d.ts +0 -0
  493. /package/{bin/TestResults → TestResults}/TestResults.js +0 -0
  494. /package/{bin/TestResults → TestResults}/TestResults.min.js +0 -0
  495. /package/{bin/TestResults → TestResults}/index.d.ts +0 -0
  496. /package/{bin/TestResults → TestResults}/index.js +0 -0
  497. /package/{bin/TestResults → TestResults}/index.min.js +0 -0
  498. /package/{bin/Tfvc → Tfvc}/Tfvc.d.ts +0 -0
  499. /package/{bin/Tfvc → Tfvc}/Tfvc.js +0 -0
  500. /package/{bin/Tfvc → Tfvc}/Tfvc.min.js +0 -0
  501. /package/{bin/Tfvc → Tfvc}/TfvcClient.d.ts +0 -0
  502. /package/{bin/Tfvc → Tfvc}/TfvcClient.js +0 -0
  503. /package/{bin/Tfvc → Tfvc}/TfvcClient.min.js +0 -0
  504. /package/{bin/Tfvc → Tfvc}/index.d.ts +0 -0
  505. /package/{bin/Tfvc → Tfvc}/index.js +0 -0
  506. /package/{bin/Tfvc → Tfvc}/index.min.js +0 -0
  507. /package/{bin/WebApi → WebApi}/WebApi.d.ts +0 -0
  508. /package/{bin/WebApi → WebApi}/WebApi.js +0 -0
  509. /package/{bin/WebApi → WebApi}/WebApi.min.js +0 -0
  510. /package/{bin/WebApi → WebApi}/index.d.ts +0 -0
  511. /package/{bin/WebApi → WebApi}/index.js +0 -0
  512. /package/{bin/WebApi → WebApi}/index.min.js +0 -0
  513. /package/{bin/Wiki → Wiki}/Wiki.d.ts +0 -0
  514. /package/{bin/Wiki → Wiki}/Wiki.js +0 -0
  515. /package/{bin/Wiki → Wiki}/Wiki.min.js +0 -0
  516. /package/{bin/Wiki → Wiki}/WikiClient.d.ts +0 -0
  517. /package/{bin/Wiki → Wiki}/WikiClient.js +0 -0
  518. /package/{bin/Wiki → Wiki}/WikiClient.min.js +0 -0
  519. /package/{bin/Wiki → Wiki}/index.d.ts +0 -0
  520. /package/{bin/Wiki → Wiki}/index.js +0 -0
  521. /package/{bin/Wiki → Wiki}/index.min.js +0 -0
  522. /package/{bin/Work → Work}/Work.d.ts +0 -0
  523. /package/{bin/Work → Work}/Work.js +0 -0
  524. /package/{bin/Work → Work}/Work.min.js +0 -0
  525. /package/{bin/Work → Work}/WorkClient.d.ts +0 -0
  526. /package/{bin/Work → Work}/WorkClient.js +0 -0
  527. /package/{bin/Work → Work}/WorkClient.min.js +0 -0
  528. /package/{bin/Work → Work}/index.d.ts +0 -0
  529. /package/{bin/Work → Work}/index.js +0 -0
  530. /package/{bin/Work → Work}/index.min.js +0 -0
  531. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.d.ts +0 -0
  532. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.js +0 -0
  533. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.min.js +0 -0
  534. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
  535. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.js +0 -0
  536. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
  537. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
  538. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.js +0 -0
  539. /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
  540. /package/{bin/WorkItemTracking → WorkItemTracking}/index.d.ts +0 -0
  541. /package/{bin/WorkItemTracking → WorkItemTracking}/index.js +0 -0
  542. /package/{bin/WorkItemTracking → WorkItemTracking}/index.min.js +0 -0
  543. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
  544. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
  545. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
  546. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
  547. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
  548. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
  549. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.d.ts +0 -0
  550. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.js +0 -0
  551. /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.min.js +0 -0
  552. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
  553. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
  554. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
  555. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
  556. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
  557. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
  558. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
  559. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.js +0 -0
  560. /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
  561. /package/{bin/index.d.ts → index.d.ts} +0 -0
  562. /package/{bin/index.js → index.js} +0 -0
  563. /package/{bin/index.min.js → index.min.js} +0 -0
@@ -1,3450 +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 top - Maximum number of results to return
1358
- * @param continuationToken - Header to pass the continuationToken
1359
- */
1360
- public async getTestResultsByPipeline(
1361
- project: string,
1362
- pipelineId: number,
1363
- stageName?: string,
1364
- phaseName?: string,
1365
- jobName?: string,
1366
- outcomes?: Test.TestOutcome[],
1367
- top?: number,
1368
- continuationToken?: String
1369
- ): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
1370
-
1371
- const queryValues: any = {
1372
- pipelineId: pipelineId,
1373
- stageName: stageName,
1374
- phaseName: phaseName,
1375
- jobName: jobName,
1376
- outcomes: outcomes && outcomes.join(","),
1377
- '$top': top
1378
- };
1379
-
1380
- return this.beginRequest<Response>({
1381
- apiVersion: "7.2-preview.1",
1382
- routeTemplate: "{project}/_apis/testresults/resultsbypipeline",
1383
- routeValues: {
1384
- project: project
1385
- },
1386
- customHeaders: {
1387
- "x-ms-continuationtoken": continuationToken,
1388
- },
1389
- queryParams: queryValues,
1390
- returnRawResponse: true
1391
- }).then(async response => {
1392
- const body = <WebApi.PagedList<Test.ShallowTestCaseResult>>await response.text().then(deserializeVssJsonObject);
1393
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1394
- return body;
1395
- });
1396
- }
1397
-
1398
- /**
1399
- * @param project - Project ID or project name
1400
- * @param releaseId -
1401
- * @param releaseEnvid -
1402
- * @param publishContext -
1403
- * @param outcomes -
1404
- * @param top -
1405
- * @param continuationToken -
1406
- */
1407
- public async getTestResultsByRelease(
1408
- project: string,
1409
- releaseId: number,
1410
- releaseEnvid?: number,
1411
- publishContext?: string,
1412
- outcomes?: Test.TestOutcome[],
1413
- top?: number,
1414
- continuationToken?: string
1415
- ): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
1416
-
1417
- const queryValues: any = {
1418
- releaseId: releaseId,
1419
- releaseEnvid: releaseEnvid,
1420
- publishContext: publishContext,
1421
- outcomes: outcomes && outcomes.join(","),
1422
- '$top': top,
1423
- continuationToken: continuationToken
1424
- };
1425
-
1426
- return this.beginRequest<Response>({
1427
- apiVersion: "7.2-preview.1",
1428
- routeTemplate: "{project}/_apis/testresults/resultsbyrelease",
1429
- routeValues: {
1430
- project: project
1431
- },
1432
- queryParams: queryValues,
1433
- returnRawResponse: true
1434
- }).then(async response => {
1435
- const body = <WebApi.PagedList<Test.ShallowTestCaseResult>>await response.text().then(deserializeVssJsonObject);
1436
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1437
- return body;
1438
- });
1439
- }
1440
-
1441
- /**
1442
- * Get all the available groups details and for these groups get failed and aborted results.
1443
- *
1444
- * @param project - Project ID or project name
1445
- * @param pipelineId - Pipeline Id. This is same as build Id.
1446
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
1447
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
1448
- * @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.
1449
- * @param shouldIncludeFailedAndAbortedResults - If true, it will return Ids of failed and aborted results for each test group
1450
- * @param queryGroupSummaryForInProgress - If true, it will calculate summary for InProgress runs as well.
1451
- */
1452
- public async testResultsGroupDetails(
1453
- project: string,
1454
- pipelineId: number,
1455
- stageName?: string,
1456
- phaseName?: string,
1457
- jobName?: string,
1458
- shouldIncludeFailedAndAbortedResults?: boolean,
1459
- queryGroupSummaryForInProgress?: boolean
1460
- ): Promise<Test.TestResultsDetails> {
1461
-
1462
- const queryValues: any = {
1463
- pipelineId: pipelineId,
1464
- stageName: stageName,
1465
- phaseName: phaseName,
1466
- jobName: jobName,
1467
- shouldIncludeFailedAndAbortedResults: shouldIncludeFailedAndAbortedResults,
1468
- queryGroupSummaryForInProgress: queryGroupSummaryForInProgress
1469
- };
1470
-
1471
- return this.beginRequest<Test.TestResultsDetails>({
1472
- apiVersion: "7.2-preview.1",
1473
- routeTemplate: "{project}/_apis/testresults/resultsgroupDetails",
1474
- routeValues: {
1475
- project: project
1476
- },
1477
- queryParams: queryValues
1478
- });
1479
- }
1480
-
1481
- /**
1482
- * @param project - Project ID or project name
1483
- * @param buildId -
1484
- * @param publishContext -
1485
- * @param includeFailureDetails -
1486
- * @param buildToCompare -
1487
- */
1488
- public async queryTestResultsReportForBuild(
1489
- project: string,
1490
- buildId: number,
1491
- publishContext?: string,
1492
- includeFailureDetails?: boolean,
1493
- buildToCompare?: Test.BuildReference
1494
- ): Promise<Test.TestResultSummary> {
1495
-
1496
- const queryValues: any = {
1497
- buildId: buildId,
1498
- publishContext: publishContext,
1499
- includeFailureDetails: includeFailureDetails,
1500
- buildToCompare: buildToCompare
1501
- };
1502
-
1503
- return this.beginRequest<Test.TestResultSummary>({
1504
- apiVersion: "7.2-preview.1",
1505
- routeTemplate: "{project}/_apis/testresults/resultsummarybybuild",
1506
- routeValues: {
1507
- project: project
1508
- },
1509
- queryParams: queryValues
1510
- });
1511
- }
1512
-
1513
- /**
1514
- * Get summary of test results.
1515
- *
1516
- * @param project - Project ID or project name
1517
- * @param pipelineId - Pipeline Id. This is same as build Id.
1518
- * @param stageName - Name of the stage. Maximum supported length for name is 256 character.
1519
- * @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
1520
- * @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.
1521
- * @param includeFailureDetails - If true returns failure insights
1522
- */
1523
- public async queryTestResultsReportForPipeline(
1524
- project: string,
1525
- pipelineId: number,
1526
- stageName?: string,
1527
- phaseName?: string,
1528
- jobName?: string,
1529
- includeFailureDetails?: boolean
1530
- ): Promise<Test.TestResultSummary> {
1531
-
1532
- const queryValues: any = {
1533
- pipelineId: pipelineId,
1534
- stageName: stageName,
1535
- phaseName: phaseName,
1536
- jobName: jobName,
1537
- includeFailureDetails: includeFailureDetails
1538
- };
1539
-
1540
- return this.beginRequest<Test.TestResultSummary>({
1541
- apiVersion: "7.2-preview.1",
1542
- routeTemplate: "{project}/_apis/testresults/resultsummarybypipeline",
1543
- routeValues: {
1544
- project: project
1545
- },
1546
- queryParams: queryValues
1547
- });
1548
- }
1549
-
1550
- /**
1551
- * @param project - Project ID or project name
1552
- * @param releaseId -
1553
- * @param releaseEnvId -
1554
- * @param publishContext -
1555
- * @param includeFailureDetails -
1556
- * @param releaseToCompare -
1557
- */
1558
- public async queryTestResultsReportForRelease(
1559
- project: string,
1560
- releaseId: number,
1561
- releaseEnvId: number,
1562
- publishContext?: string,
1563
- includeFailureDetails?: boolean,
1564
- releaseToCompare?: Test.ReleaseReference
1565
- ): Promise<Test.TestResultSummary> {
1566
-
1567
- const queryValues: any = {
1568
- releaseId: releaseId,
1569
- releaseEnvId: releaseEnvId,
1570
- publishContext: publishContext,
1571
- includeFailureDetails: includeFailureDetails,
1572
- releaseToCompare: releaseToCompare
1573
- };
1574
-
1575
- return this.beginRequest<Test.TestResultSummary>({
1576
- apiVersion: "7.2-preview.1",
1577
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
1578
- routeValues: {
1579
- project: project
1580
- },
1581
- queryParams: queryValues
1582
- });
1583
- }
1584
-
1585
- /**
1586
- * @param releases -
1587
- * @param project - Project ID or project name
1588
- */
1589
- public async queryTestResultsSummaryForReleases(
1590
- releases: Test.ReleaseReference[],
1591
- project: string
1592
- ): Promise<Test.TestResultSummary[]> {
1593
-
1594
- return this.beginRequest<Test.TestResultSummary[]>({
1595
- apiVersion: "7.2-preview.1",
1596
- method: "POST",
1597
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrelease",
1598
- routeValues: {
1599
- project: project
1600
- },
1601
- body: releases
1602
- });
1603
- }
1604
-
1605
- /**
1606
- * @param resultsContext -
1607
- * @param project - Project ID or project name
1608
- * @param workItemIds -
1609
- */
1610
- public async queryTestSummaryByRequirement(
1611
- resultsContext: Test.TestResultsContext,
1612
- project: string,
1613
- workItemIds?: number[]
1614
- ): Promise<Test.TestSummaryForWorkItem[]> {
1615
-
1616
- const queryValues: any = {
1617
- workItemIds: workItemIds && workItemIds.join(",")
1618
- };
1619
-
1620
- return this.beginRequest<Test.TestSummaryForWorkItem[]>({
1621
- apiVersion: "7.2-preview.1",
1622
- method: "POST",
1623
- routeTemplate: "{project}/_apis/testresults/resultsummarybyrequirement",
1624
- routeValues: {
1625
- project: project
1626
- },
1627
- queryParams: queryValues,
1628
- body: resultsContext
1629
- });
1630
- }
1631
-
1632
- /**
1633
- * @param filter -
1634
- * @param project - Project ID or project name
1635
- */
1636
- public async queryResultTrendForBuild(
1637
- filter: Test.TestResultTrendFilter,
1638
- project: string
1639
- ): Promise<Test.AggregatedDataForResultTrend[]> {
1640
-
1641
- return this.beginRequest<Test.AggregatedDataForResultTrend[]>({
1642
- apiVersion: "7.2-preview.1",
1643
- method: "POST",
1644
- routeTemplate: "{project}/_apis/testresults/ResultTrendByBuild",
1645
- routeValues: {
1646
- project: project
1647
- },
1648
- body: filter
1649
- });
1650
- }
1651
-
1652
- /**
1653
- * @param filter -
1654
- * @param project - Project ID or project name
1655
- */
1656
- public async queryResultTrendForRelease(
1657
- filter: Test.TestResultTrendFilter,
1658
- project: string
1659
- ): Promise<Test.AggregatedDataForResultTrend[]> {
1660
-
1661
- return this.beginRequest<Test.AggregatedDataForResultTrend[]>({
1662
- apiVersion: "7.2-preview.1",
1663
- method: "POST",
1664
- routeTemplate: "{project}/_apis/testresults/ResultTrendByRelease",
1665
- routeValues: {
1666
- project: project
1667
- },
1668
- body: filter
1669
- });
1670
- }
1671
-
1672
- /**
1673
- * @param testRun -
1674
- * @param project - Project ID or project name
1675
- */
1676
- public async createTestRun(
1677
- testRun: Test.RunCreateModel,
1678
- project: string
1679
- ): Promise<Test.TestRun> {
1680
-
1681
- return this.beginRequest<Test.TestRun>({
1682
- apiVersion: "7.2-preview.1",
1683
- method: "POST",
1684
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1685
- routeValues: {
1686
- project: project
1687
- },
1688
- body: testRun
1689
- });
1690
- }
1691
-
1692
- /**
1693
- * @param project - Project ID or project name
1694
- * @param runId -
1695
- */
1696
- public async deleteTestRun(
1697
- project: string,
1698
- runId: number
1699
- ): Promise<void> {
1700
-
1701
- return this.beginRequest<void>({
1702
- apiVersion: "7.2-preview.1",
1703
- method: "DELETE",
1704
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1705
- routeValues: {
1706
- project: project,
1707
- runId: runId
1708
- }
1709
- });
1710
- }
1711
-
1712
- /**
1713
- * @param project - Project ID or project name
1714
- * @param runId -
1715
- * @param includeDetails -
1716
- * @param includeTags -
1717
- */
1718
- public async getTestRunById(
1719
- project: string,
1720
- runId: number,
1721
- includeDetails?: boolean,
1722
- includeTags?: boolean
1723
- ): Promise<Test.TestRun> {
1724
-
1725
- const queryValues: any = {
1726
- includeDetails: includeDetails,
1727
- includeTags: includeTags
1728
- };
1729
-
1730
- return this.beginRequest<Test.TestRun>({
1731
- apiVersion: "7.2-preview.1",
1732
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1733
- routeValues: {
1734
- project: project,
1735
- runId: runId
1736
- },
1737
- queryParams: queryValues
1738
- });
1739
- }
1740
-
1741
- /**
1742
- * @param project - Project ID or project name
1743
- * @param buildUri -
1744
- * @param owner -
1745
- * @param tmiRunId -
1746
- * @param planId -
1747
- * @param includeRunDetails -
1748
- * @param automated -
1749
- * @param skip -
1750
- * @param top -
1751
- */
1752
- public async getTestRuns(
1753
- project: string,
1754
- buildUri?: string,
1755
- owner?: string,
1756
- tmiRunId?: string,
1757
- planId?: number,
1758
- includeRunDetails?: boolean,
1759
- automated?: boolean,
1760
- skip?: number,
1761
- top?: number
1762
- ): Promise<Test.TestRun[]> {
1763
-
1764
- const queryValues: any = {
1765
- buildUri: buildUri,
1766
- owner: owner,
1767
- tmiRunId: tmiRunId,
1768
- planId: planId,
1769
- includeRunDetails: includeRunDetails,
1770
- automated: automated,
1771
- '$skip': skip,
1772
- '$top': top
1773
- };
1774
-
1775
- return this.beginRequest<Test.TestRun[]>({
1776
- apiVersion: "7.2-preview.1",
1777
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1778
- routeValues: {
1779
- project: project
1780
- },
1781
- queryParams: queryValues
1782
- });
1783
- }
1784
-
1785
- /**
1786
- * Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
1787
- *
1788
- * @param project - Project ID or project name
1789
- * @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
1790
- * @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
1791
- * @param state - Current state of the Runs to be queried.
1792
- * @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids.
1793
- * @param isAutomated - Automation type of the Runs to be queried.
1794
- * @param publishContext - PublishContext of the Runs to be queried.
1795
- * @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids.
1796
- * @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids.
1797
- * @param branchName - Source Branch name of the Runs to be queried.
1798
- * @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids.
1799
- * @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids.
1800
- * @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids.
1801
- * @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.
1802
- * @param runTitle - Run Title of the Runs to be queried.
1803
- * @param top - Number of runs to be queried. Limit is 100
1804
- * @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.
1805
- */
1806
- public async queryTestRuns(
1807
- project: string,
1808
- minLastUpdatedDate: Date,
1809
- maxLastUpdatedDate: Date,
1810
- state?: Test.TestRunState,
1811
- planIds?: number[],
1812
- isAutomated?: boolean,
1813
- publishContext?: Test.TestRunPublishContext,
1814
- buildIds?: number[],
1815
- buildDefIds?: number[],
1816
- branchName?: string,
1817
- releaseIds?: number[],
1818
- releaseDefIds?: number[],
1819
- releaseEnvIds?: number[],
1820
- releaseEnvDefIds?: number[],
1821
- runTitle?: string,
1822
- top?: number,
1823
- continuationToken?: string
1824
- ): Promise<WebApi.PagedList<Test.TestRun>> {
1825
-
1826
- const queryValues: any = {
1827
- minLastUpdatedDate: minLastUpdatedDate,
1828
- maxLastUpdatedDate: maxLastUpdatedDate,
1829
- state: state,
1830
- planIds: planIds && planIds.join(","),
1831
- isAutomated: isAutomated,
1832
- publishContext: publishContext,
1833
- buildIds: buildIds && buildIds.join(","),
1834
- buildDefIds: buildDefIds && buildDefIds.join(","),
1835
- branchName: branchName,
1836
- releaseIds: releaseIds && releaseIds.join(","),
1837
- releaseDefIds: releaseDefIds && releaseDefIds.join(","),
1838
- releaseEnvIds: releaseEnvIds && releaseEnvIds.join(","),
1839
- releaseEnvDefIds: releaseEnvDefIds && releaseEnvDefIds.join(","),
1840
- runTitle: runTitle,
1841
- '$top': top,
1842
- continuationToken: continuationToken
1843
- };
1844
-
1845
- return this.beginRequest<Response>({
1846
- apiVersion: "7.2-preview.1",
1847
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1848
- routeValues: {
1849
- project: project
1850
- },
1851
- queryParams: queryValues,
1852
- returnRawResponse: true
1853
- }).then(async response => {
1854
- const body = <WebApi.PagedList<Test.TestRun>>await response.text().then(deserializeVssJsonObject);
1855
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
1856
- return body;
1857
- });
1858
- }
1859
-
1860
- /**
1861
- * @param runUpdateModel -
1862
- * @param project - Project ID or project name
1863
- * @param runId -
1864
- */
1865
- public async updateTestRun(
1866
- runUpdateModel: Test.RunUpdateModel,
1867
- project: string,
1868
- runId: number
1869
- ): Promise<Test.TestRun> {
1870
-
1871
- return this.beginRequest<Test.TestRun>({
1872
- apiVersion: "7.2-preview.1",
1873
- method: "PATCH",
1874
- routeTemplate: "{project}/_apis/testresults/runs/{runId}",
1875
- routeValues: {
1876
- project: project,
1877
- runId: runId
1878
- },
1879
- body: runUpdateModel
1880
- });
1881
- }
1882
-
1883
- /**
1884
- * Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state.
1885
- *
1886
- * @param project - Project ID or project name
1887
- * @param runId - ID of the run to get.
1888
- */
1889
- public async getTestRunSummaryByOutcome(
1890
- project: string,
1891
- runId: number
1892
- ): Promise<Test.TestRunStatistic> {
1893
-
1894
- return this.beginRequest<Test.TestRunStatistic>({
1895
- apiVersion: "7.2-preview.1",
1896
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/runsummary",
1897
- routeValues: {
1898
- project: project,
1899
- runId: runId
1900
- }
1901
- });
1902
- }
1903
-
1904
- /**
1905
- * Get TestResultsSettings data
1906
- *
1907
- * @param project - Project ID or project name
1908
- * @param settingsType -
1909
- */
1910
- public async getTestResultsSettings(
1911
- project: string,
1912
- settingsType?: Test.TestResultsSettingsType
1913
- ): Promise<Test.TestResultsSettings> {
1914
-
1915
- const queryValues: any = {
1916
- settingsType: settingsType
1917
- };
1918
-
1919
- return this.beginRequest<Test.TestResultsSettings>({
1920
- apiVersion: "7.2-preview.3",
1921
- routeTemplate: "{project}/_apis/testresults/settings",
1922
- routeValues: {
1923
- project: project
1924
- },
1925
- queryParams: queryValues
1926
- });
1927
- }
1928
-
1929
- /**
1930
- * Update project settings of test results
1931
- *
1932
- * @param testResultsUpdateSettings -
1933
- * @param project - Project ID or project name
1934
- */
1935
- public async updatePipelinesTestSettings(
1936
- testResultsUpdateSettings: Test.TestResultsUpdateSettings,
1937
- project: string
1938
- ): Promise<Test.TestResultsSettings> {
1939
-
1940
- return this.beginRequest<Test.TestResultsSettings>({
1941
- apiVersion: "7.2-preview.3",
1942
- method: "PATCH",
1943
- routeTemplate: "{project}/_apis/testresults/settings",
1944
- routeValues: {
1945
- project: project
1946
- },
1947
- body: testResultsUpdateSettings
1948
- });
1949
- }
1950
-
1951
- /**
1952
- * Gets the list of results whose failure matches with the provided one.
1953
- *
1954
- * @param project - Project ID or project name
1955
- * @param runId - id of test run
1956
- * @param testResultId - id of test result inside a test run
1957
- * @param testSubResultId - id of subresult inside a test result
1958
- * @param top - Maximum number of results to return
1959
- * @param continuationToken - Header to pass the continuationToken
1960
- */
1961
- public async getSimilarTestResults(
1962
- project: string,
1963
- runId: number,
1964
- testResultId: number,
1965
- testSubResultId: number,
1966
- top?: number,
1967
- continuationToken?: String
1968
- ): Promise<Test.TestCaseResult[]> {
1969
-
1970
- const queryValues: any = {
1971
- testSubResultId: testSubResultId,
1972
- '$top': top
1973
- };
1974
-
1975
- return this.beginRequest<Test.TestCaseResult[]>({
1976
- apiVersion: "7.2-preview.1",
1977
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",
1978
- routeValues: {
1979
- project: project,
1980
- runId: runId,
1981
- testResultId: testResultId
1982
- },
1983
- customHeaders: {
1984
- "x-ms-continuationtoken": continuationToken,
1985
- },
1986
- queryParams: queryValues
1987
- });
1988
- }
1989
-
1990
- /**
1991
- * Get test run statistics , used when we want to get summary of a run by outcome.
1992
- *
1993
- * @param project - Project ID or project name
1994
- * @param runId - ID of the run to get.
1995
- */
1996
- public async getTestRunStatistics(
1997
- project: string,
1998
- runId: number
1999
- ): Promise<Test.TestRunStatistic> {
2000
-
2001
- return this.beginRequest<Test.TestRunStatistic>({
2002
- apiVersion: "7.2-preview.2",
2003
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/statistics",
2004
- routeValues: {
2005
- project: project,
2006
- runId: runId
2007
- }
2008
- });
2009
- }
2010
-
2011
- /**
2012
- * \<p\>Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch\</p\>
2013
- *
2014
- * @param project - Project ID or project name
2015
- * @param definition - The ID or name of the definition.
2016
- * @param branchName - The branch name.
2017
- * @param label - The String to replace the default text on the left side of the badge.
2018
- */
2019
- public async getCoverageStatusBadge(
2020
- project: string,
2021
- definition: string,
2022
- branchName?: string,
2023
- label?: string
2024
- ): Promise<string> {
2025
-
2026
- const queryValues: any = {
2027
- branchName: branchName,
2028
- label: label
2029
- };
2030
-
2031
- return this.beginRequest<string>({
2032
- apiVersion: "7.2-preview.1",
2033
- routeTemplate: "{project}/_apis/testresults/codecoverage/status/{*definition}",
2034
- routeValues: {
2035
- project: project,
2036
- definition: definition
2037
- },
2038
- queryParams: queryValues
2039
- });
2040
- }
2041
-
2042
- /**
2043
- * Get all the tags in a build.
2044
- *
2045
- * @param project - Project ID or project name
2046
- * @param buildId - Build ID
2047
- */
2048
- public async getTestTagsForBuild(
2049
- project: string,
2050
- buildId: number
2051
- ): Promise<Test.TestTag[]> {
2052
-
2053
- const queryValues: any = {
2054
- buildId: buildId
2055
- };
2056
-
2057
- return this.beginRequest<Test.TestTag[]>({
2058
- apiVersion: "7.2-preview.1",
2059
- routeTemplate: "{project}/_apis/testresults/tags",
2060
- routeValues: {
2061
- project: project
2062
- },
2063
- queryParams: queryValues
2064
- });
2065
- }
2066
-
2067
- /**
2068
- * Get all the tags in a release.
2069
- *
2070
- * @param project - Project ID or project name
2071
- * @param releaseId - Release ID
2072
- * @param releaseEnvId - Release environment ID
2073
- */
2074
- public async getTestTagsForRelease(
2075
- project: string,
2076
- releaseId: number,
2077
- releaseEnvId: number
2078
- ): Promise<Test.TestTag[]> {
2079
-
2080
- const queryValues: any = {
2081
- releaseId: releaseId,
2082
- releaseEnvId: releaseEnvId
2083
- };
2084
-
2085
- return this.beginRequest<Test.TestTag[]>({
2086
- apiVersion: "7.2-preview.1",
2087
- routeTemplate: "{project}/_apis/testresults/tags",
2088
- routeValues: {
2089
- project: project
2090
- },
2091
- queryParams: queryValues
2092
- });
2093
- }
2094
-
2095
- /**
2096
- * Update tags of a run, Tags can be Added and Deleted
2097
- *
2098
- * @param testTagsUpdateModel - TestTagsUpdateModel
2099
- * @param project - Project ID or project name
2100
- * @param runId - RunId of the run
2101
- */
2102
- public async updateTestRunTags(
2103
- testTagsUpdateModel: Test.TestTagsUpdateModel,
2104
- project: string,
2105
- runId: number
2106
- ): Promise<Test.TestTag[]> {
2107
-
2108
- return this.beginRequest<Test.TestTag[]>({
2109
- apiVersion: "7.2-preview.1",
2110
- method: "PATCH",
2111
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/tags",
2112
- routeValues: {
2113
- project: project,
2114
- runId: runId
2115
- },
2116
- body: testTagsUpdateModel
2117
- });
2118
- }
2119
-
2120
- /**
2121
- * Get all the tags in a build.
2122
- *
2123
- * @param project - Project ID or project name
2124
- * @param buildId - Build ID
2125
- */
2126
- public async getTestTagSummaryForBuild(
2127
- project: string,
2128
- buildId: number
2129
- ): Promise<Test.TestTagSummary> {
2130
-
2131
- const queryValues: any = {
2132
- buildId: buildId
2133
- };
2134
-
2135
- return this.beginRequest<Test.TestTagSummary>({
2136
- apiVersion: "7.2-preview.1",
2137
- routeTemplate: "{project}/_apis/testresults/tagsummary",
2138
- routeValues: {
2139
- project: project
2140
- },
2141
- queryParams: queryValues
2142
- });
2143
- }
2144
-
2145
- /**
2146
- * Get all the tags in a release.
2147
- *
2148
- * @param project - Project ID or project name
2149
- * @param releaseId - Release ID
2150
- * @param releaseEnvId - Release environment ID
2151
- */
2152
- public async getTestTagSummaryForRelease(
2153
- project: string,
2154
- releaseId: number,
2155
- releaseEnvId: number
2156
- ): Promise<Test.TestTagSummary> {
2157
-
2158
- const queryValues: any = {
2159
- releaseId: releaseId,
2160
- releaseEnvId: releaseEnvId
2161
- };
2162
-
2163
- return this.beginRequest<Test.TestTagSummary>({
2164
- apiVersion: "7.2-preview.1",
2165
- routeTemplate: "{project}/_apis/testresults/tagsummary",
2166
- routeValues: {
2167
- project: project
2168
- },
2169
- queryParams: queryValues
2170
- });
2171
- }
2172
-
2173
- /**
2174
- * Creates an attachment in the LogStore for the specified buildId.
2175
- *
2176
- * @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
2177
- * @param project - Project ID or project name
2178
- * @param buildId - BuildId
2179
- */
2180
- public async createBuildAttachmentInLogStore(
2181
- attachmentRequestModel: Test.TestAttachmentRequestModel,
2182
- project: string,
2183
- buildId: number
2184
- ): Promise<void> {
2185
-
2186
- return this.beginRequest<void>({
2187
- apiVersion: "7.2-preview.1",
2188
- method: "POST",
2189
- routeTemplate: "{project}/_apis/testresults/uploadbuildattachments/{buildId}",
2190
- routeValues: {
2191
- project: project,
2192
- buildId: buildId
2193
- },
2194
- body: attachmentRequestModel
2195
- });
2196
- }
2197
-
2198
- /**
2199
- * Creates an attachment in the LogStore for the specified runId.
2200
- *
2201
- * @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
2202
- * @param project - Project ID or project name
2203
- * @param runId - Test RunId
2204
- */
2205
- public async createTestRunLogStoreAttachment(
2206
- attachmentRequestModel: Test.TestAttachmentRequestModel,
2207
- project: string,
2208
- runId: number
2209
- ): Promise<Test.TestLogStoreAttachmentReference> {
2210
-
2211
- return this.beginRequest<Test.TestLogStoreAttachmentReference>({
2212
- apiVersion: "7.2-preview.1",
2213
- method: "POST",
2214
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2215
- routeValues: {
2216
- project: project,
2217
- runId: runId
2218
- },
2219
- body: attachmentRequestModel
2220
- });
2221
- }
2222
-
2223
- /**
2224
- * Deletes the attachment with the specified filename for the specified runId from the LogStore.
2225
- *
2226
- * @param project - Project ID or project name
2227
- * @param runId - Test RunId
2228
- * @param filename - Attachment FileName
2229
- */
2230
- public async deleteTestRunLogStoreAttachment(
2231
- project: string,
2232
- runId: number,
2233
- filename: string
2234
- ): Promise<void> {
2235
-
2236
- const queryValues: any = {
2237
- filename: filename
2238
- };
2239
-
2240
- return this.beginRequest<void>({
2241
- apiVersion: "7.2-preview.1",
2242
- method: "DELETE",
2243
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2244
- routeValues: {
2245
- project: project,
2246
- runId: runId
2247
- },
2248
- queryParams: queryValues
2249
- });
2250
- }
2251
-
2252
- /**
2253
- * Returns the attachment with the specified filename for the specified runId from the LogStore.
2254
- *
2255
- * @param project - Project ID or project name
2256
- * @param runId - Test RunId
2257
- * @param filename - Attachment FileName
2258
- */
2259
- public async getTestRunLogStoreAttachmentContent(
2260
- project: string,
2261
- runId: number,
2262
- filename: string
2263
- ): Promise<ArrayBuffer> {
2264
-
2265
- const queryValues: any = {
2266
- filename: filename
2267
- };
2268
-
2269
- return this.beginRequest<ArrayBuffer>({
2270
- apiVersion: "7.2-preview.1",
2271
- httpResponseType: "application/octet-stream",
2272
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2273
- routeValues: {
2274
- project: project,
2275
- runId: runId
2276
- },
2277
- queryParams: queryValues
2278
- });
2279
- }
2280
-
2281
- /**
2282
- * Returns a list of attachments for the specified runId from the LogStore.
2283
- *
2284
- * @param project - Project ID or project name
2285
- * @param runId - Test RunId
2286
- */
2287
- public async getTestRunLogStoreAttachments(
2288
- project: string,
2289
- runId: number
2290
- ): Promise<Test.TestLogStoreAttachment[]> {
2291
-
2292
- return this.beginRequest<Test.TestLogStoreAttachment[]>({
2293
- apiVersion: "7.2-preview.1",
2294
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2295
- routeValues: {
2296
- project: project,
2297
- runId: runId
2298
- }
2299
- });
2300
- }
2301
-
2302
- /**
2303
- * Returns the attachment with the specified filename for the specified runId from the LogStore.
2304
- *
2305
- * @param project - Project ID or project name
2306
- * @param runId - Test RunId
2307
- * @param filename - Attachment FileName
2308
- */
2309
- public async getTestRunLogStoreAttachmentZip(
2310
- project: string,
2311
- runId: number,
2312
- filename: string
2313
- ): Promise<ArrayBuffer> {
2314
-
2315
- const queryValues: any = {
2316
- filename: filename
2317
- };
2318
-
2319
- return this.beginRequest<ArrayBuffer>({
2320
- apiVersion: "7.2-preview.1",
2321
- httpResponseType: "application/zip",
2322
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testattachments",
2323
- routeValues: {
2324
- project: project,
2325
- runId: runId
2326
- },
2327
- queryParams: queryValues
2328
- });
2329
- }
2330
-
2331
- /**
2332
- * Creates a new test failure type
2333
- *
2334
- * @param testResultFailureType -
2335
- * @param project - Project ID or project name
2336
- */
2337
- public async createFailureType(
2338
- testResultFailureType: Test.TestResultFailureTypeRequestModel,
2339
- project: string
2340
- ): Promise<Test.TestResultFailureType> {
2341
-
2342
- return this.beginRequest<Test.TestResultFailureType>({
2343
- apiVersion: "7.2-preview.1",
2344
- method: "POST",
2345
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2346
- routeValues: {
2347
- project: project
2348
- },
2349
- body: testResultFailureType
2350
- });
2351
- }
2352
-
2353
- /**
2354
- * Deletes a test failure type with specified failureTypeId
2355
- *
2356
- * @param project - Project ID or project name
2357
- * @param failureTypeId -
2358
- */
2359
- public async deleteFailureType(
2360
- project: string,
2361
- failureTypeId: number
2362
- ): Promise<void> {
2363
-
2364
- return this.beginRequest<void>({
2365
- apiVersion: "7.2-preview.1",
2366
- method: "DELETE",
2367
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2368
- routeValues: {
2369
- project: project,
2370
- failureTypeId: failureTypeId
2371
- }
2372
- });
2373
- }
2374
-
2375
- /**
2376
- * Returns the list of test failure types.
2377
- *
2378
- * @param project - Project ID or project name
2379
- */
2380
- public async getFailureTypes(
2381
- project: string
2382
- ): Promise<Test.TestResultFailureType[]> {
2383
-
2384
- return this.beginRequest<Test.TestResultFailureType[]>({
2385
- apiVersion: "7.2-preview.1",
2386
- routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}",
2387
- routeValues: {
2388
- project: project
2389
- }
2390
- });
2391
- }
2392
-
2393
- /**
2394
- * Get history of a test method using TestHistoryQuery
2395
- *
2396
- * @param filter - TestHistoryQuery to get history
2397
- * @param project - Project ID or project name
2398
- */
2399
- public async queryTestHistory(
2400
- filter: Test.TestHistoryQuery,
2401
- project: string
2402
- ): Promise<Test.TestHistoryQuery> {
2403
-
2404
- return this.beginRequest<Test.TestHistoryQuery>({
2405
- apiVersion: "7.2-preview.2",
2406
- method: "POST",
2407
- routeTemplate: "{project}/_apis/testresults/results/TestHistory",
2408
- routeValues: {
2409
- project: project
2410
- },
2411
- body: filter
2412
- });
2413
- }
2414
-
2415
- /**
2416
- * Get list of build attachments reference
2417
- *
2418
- * @param project - Project ID or project name
2419
- * @param buildId - Id of the build to get
2420
- * @param type - type of the attachment to get
2421
- * @param directoryPath - directory path for which attachments are needed
2422
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2423
- * @param fetchMetaData - Default is false, set if metadata is needed
2424
- * @param top - Number of test attachments reference to return
2425
- * @param continuationToken - Header to pass the continuationToken
2426
- */
2427
- public async getTestLogsForBuild(
2428
- project: string,
2429
- buildId: number,
2430
- type: Test.TestLogType,
2431
- directoryPath?: string,
2432
- fileNamePrefix?: string,
2433
- fetchMetaData?: boolean,
2434
- top?: number,
2435
- continuationToken?: String
2436
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2437
-
2438
- const queryValues: any = {
2439
- buildId: buildId,
2440
- type: type,
2441
- directoryPath: directoryPath,
2442
- fileNamePrefix: fileNamePrefix,
2443
- fetchMetaData: fetchMetaData,
2444
- top: top
2445
- };
2446
-
2447
- return this.beginRequest<Response>({
2448
- apiVersion: "7.2-preview.1",
2449
- routeTemplate: "{project}/_apis/testresults/testlog",
2450
- routeValues: {
2451
- project: project
2452
- },
2453
- customHeaders: {
2454
- "x-ms-continuationtoken": continuationToken,
2455
- },
2456
- queryParams: queryValues,
2457
- returnRawResponse: true
2458
- }).then(async response => {
2459
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2460
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2461
- return body;
2462
- });
2463
- }
2464
-
2465
- /**
2466
- * Get list of test result attachments reference
2467
- *
2468
- * @param project - Project ID or project name
2469
- * @param runId - Id of the test run that contains the result
2470
- * @param resultId - Id of the test result
2471
- * @param type - type of attachments to get
2472
- * @param directoryPath - directory path of attachments to get
2473
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2474
- * @param fetchMetaData - Default is false, set if metadata is needed
2475
- * @param top - Numbe of attachments reference to return
2476
- * @param continuationToken - Header to pass the continuationToken
2477
- */
2478
- public async getTestResultLogs(
2479
- project: string,
2480
- runId: number,
2481
- resultId: number,
2482
- type: Test.TestLogType,
2483
- directoryPath?: string,
2484
- fileNamePrefix?: string,
2485
- fetchMetaData?: boolean,
2486
- top?: number,
2487
- continuationToken?: String
2488
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2489
-
2490
- const queryValues: any = {
2491
- type: type,
2492
- directoryPath: directoryPath,
2493
- fileNamePrefix: fileNamePrefix,
2494
- fetchMetaData: fetchMetaData,
2495
- top: top
2496
- };
2497
-
2498
- return this.beginRequest<Response>({
2499
- apiVersion: "7.2-preview.1",
2500
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
2501
- routeValues: {
2502
- project: project,
2503
- runId: runId,
2504
- resultId: resultId
2505
- },
2506
- customHeaders: {
2507
- "x-ms-continuationtoken": continuationToken,
2508
- },
2509
- queryParams: queryValues,
2510
- returnRawResponse: true
2511
- }).then(async response => {
2512
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2513
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2514
- return body;
2515
- });
2516
- }
2517
-
2518
- /**
2519
- * Get list of test subresult attachments reference
2520
- *
2521
- * @param project - Project ID or project name
2522
- * @param runId - Id of the test run that contains the results
2523
- * @param resultId - Id of the test result that contains subresult
2524
- * @param subResultId - Id of the test subresult
2525
- * @param type - type of the attachments to get
2526
- * @param directoryPath - directory path of the attachment to get
2527
- * @param fileNamePrefix - file name prefix to filter the list of attachments
2528
- * @param fetchMetaData - Default is false, set if metadata is needed
2529
- * @param top - Number of attachments reference to return
2530
- * @param continuationToken - Header to pass the continuationToken
2531
- */
2532
- public async getTestSubResultLogs(
2533
- project: string,
2534
- runId: number,
2535
- resultId: number,
2536
- subResultId: number,
2537
- type: Test.TestLogType,
2538
- directoryPath?: string,
2539
- fileNamePrefix?: string,
2540
- fetchMetaData?: boolean,
2541
- top?: number,
2542
- continuationToken?: String
2543
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2544
-
2545
- const queryValues: any = {
2546
- subResultId: subResultId,
2547
- type: type,
2548
- directoryPath: directoryPath,
2549
- fileNamePrefix: fileNamePrefix,
2550
- fetchMetaData: fetchMetaData,
2551
- top: top
2552
- };
2553
-
2554
- return this.beginRequest<Response>({
2555
- apiVersion: "7.2-preview.1",
2556
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",
2557
- routeValues: {
2558
- project: project,
2559
- runId: runId,
2560
- resultId: resultId
2561
- },
2562
- customHeaders: {
2563
- "x-ms-continuationtoken": continuationToken,
2564
- },
2565
- queryParams: queryValues,
2566
- returnRawResponse: true
2567
- }).then(async response => {
2568
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2569
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2570
- return body;
2571
- });
2572
- }
2573
-
2574
- /**
2575
- * Get list of test run attachments reference
2576
- *
2577
- * @param project - Project ID or project name
2578
- * @param runId - Id of the test run
2579
- * @param type - type of the attachments to get
2580
- * @param directoryPath - directory path for which attachments are needed
2581
- * @param fileNamePrefix - file name prefix to filter the list of attachment
2582
- * @param fetchMetaData - Default is false, set if metadata is needed
2583
- * @param top - Number of attachments reference to return
2584
- * @param continuationToken - Header to pass the continuationToken
2585
- */
2586
- public async getTestRunLogs(
2587
- project: string,
2588
- runId: number,
2589
- type: Test.TestLogType,
2590
- directoryPath?: string,
2591
- fileNamePrefix?: string,
2592
- fetchMetaData?: boolean,
2593
- top?: number,
2594
- continuationToken?: String
2595
- ): Promise<WebApi.PagedList<Test.TestLog>> {
2596
-
2597
- const queryValues: any = {
2598
- type: type,
2599
- directoryPath: directoryPath,
2600
- fileNamePrefix: fileNamePrefix,
2601
- fetchMetaData: fetchMetaData,
2602
- top: top
2603
- };
2604
-
2605
- return this.beginRequest<Response>({
2606
- apiVersion: "7.2-preview.1",
2607
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlog",
2608
- routeValues: {
2609
- project: project,
2610
- runId: runId
2611
- },
2612
- customHeaders: {
2613
- "x-ms-continuationtoken": continuationToken,
2614
- },
2615
- queryParams: queryValues,
2616
- returnRawResponse: true
2617
- }).then(async response => {
2618
- const body = <WebApi.PagedList<Test.TestLog>>await response.text().then(deserializeVssJsonObject);
2619
- body.continuationToken = response.headers.get("x-ms-continuationtoken");
2620
- return body;
2621
- });
2622
- }
2623
-
2624
- /**
2625
- * Get SAS Uri of a build attachment
2626
- *
2627
- * @param project - Project ID or project name
2628
- * @param build - Id of the build to get
2629
- * @param type - type of the file
2630
- * @param filePath - filePath for which sas uri is needed
2631
- */
2632
- public async getTestLogStoreEndpointDetailsForBuildLog(
2633
- project: string,
2634
- build: number,
2635
- type: Test.TestLogType,
2636
- filePath: string
2637
- ): Promise<Test.TestLogStoreEndpointDetails> {
2638
-
2639
- const queryValues: any = {
2640
- build: build,
2641
- type: type,
2642
- filePath: filePath
2643
- };
2644
-
2645
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2646
- apiVersion: "7.2-preview.1",
2647
- routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
2648
- routeValues: {
2649
- project: project
2650
- },
2651
- queryParams: queryValues
2652
- });
2653
- }
2654
-
2655
- /**
2656
- * Create and Get sas uri of the build container
2657
- *
2658
- * @param project - Project ID or project name
2659
- * @param buildId - Id of the build to get
2660
- * @param testLogStoreOperationType - Type of operation to perform using sas uri
2661
- */
2662
- public async testLogStoreEndpointDetailsForBuild(
2663
- project: string,
2664
- buildId: number,
2665
- testLogStoreOperationType: Test.TestLogStoreOperationType
2666
- ): Promise<Test.TestLogStoreEndpointDetails> {
2667
-
2668
- const queryValues: any = {
2669
- buildId: buildId,
2670
- testLogStoreOperationType: testLogStoreOperationType
2671
- };
2672
-
2673
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2674
- apiVersion: "7.2-preview.1",
2675
- method: "POST",
2676
- routeTemplate: "{project}/_apis/testresults/testlogstoreendpoint",
2677
- routeValues: {
2678
- project: project
2679
- },
2680
- queryParams: queryValues
2681
- });
2682
- }
2683
-
2684
- /**
2685
- * Get SAS Uri of a test results attachment
2686
- *
2687
- * @param project - Project ID or project name
2688
- * @param runId - Id of the test run that contains result
2689
- * @param resultId - Id of the test result whose files need to be downloaded
2690
- * @param type - type of the file
2691
- * @param filePath - filePath for which sas uri is needed
2692
- */
2693
- public async getTestLogStoreEndpointDetailsForResultLog(
2694
- project: string,
2695
- runId: number,
2696
- resultId: number,
2697
- type: Test.TestLogType,
2698
- filePath: string
2699
- ): Promise<Test.TestLogStoreEndpointDetails> {
2700
-
2701
- const queryValues: any = {
2702
- type: type,
2703
- filePath: filePath
2704
- };
2705
-
2706
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2707
- apiVersion: "7.2-preview.1",
2708
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2709
- routeValues: {
2710
- project: project,
2711
- runId: runId,
2712
- resultId: resultId
2713
- },
2714
- queryParams: queryValues
2715
- });
2716
- }
2717
-
2718
- /**
2719
- * Get SAS Uri of a test subresults attachment
2720
- *
2721
- * @param project - Project ID or project name
2722
- * @param runId - Id of the test run that contains result
2723
- * @param resultId - Id of the test result that contains subresult
2724
- * @param subResultId - Id of the test subresult whose file sas uri is needed
2725
- * @param type - type of the file
2726
- * @param filePath - filePath for which sas uri is needed
2727
- */
2728
- public async getTestLogStoreEndpointDetailsForSubResultLog(
2729
- project: string,
2730
- runId: number,
2731
- resultId: number,
2732
- subResultId: number,
2733
- type: Test.TestLogType,
2734
- filePath: string
2735
- ): Promise<Test.TestLogStoreEndpointDetails> {
2736
-
2737
- const queryValues: any = {
2738
- subResultId: subResultId,
2739
- type: type,
2740
- filePath: filePath
2741
- };
2742
-
2743
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2744
- apiVersion: "7.2-preview.1",
2745
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2746
- routeValues: {
2747
- project: project,
2748
- runId: runId,
2749
- resultId: resultId
2750
- },
2751
- queryParams: queryValues
2752
- });
2753
- }
2754
-
2755
- /**
2756
- * Create empty file for a result and Get Sas uri for the file
2757
- *
2758
- * @param project - Project ID or project name
2759
- * @param runId - Id of the test run that contains the result
2760
- * @param resultId - Id of the test results that contains sub result
2761
- * @param subResultId - Id of the test sub result whose file sas uri is needed
2762
- * @param filePath - file path inside the sub result for which sas uri is needed
2763
- * @param type - Type of the file for download
2764
- */
2765
- public async testLogStoreEndpointDetailsForResult(
2766
- project: string,
2767
- runId: number,
2768
- resultId: number,
2769
- subResultId: number,
2770
- filePath: string,
2771
- type: Test.TestLogType
2772
- ): Promise<Test.TestLogStoreEndpointDetails> {
2773
-
2774
- const queryValues: any = {
2775
- subResultId: subResultId,
2776
- filePath: filePath,
2777
- type: type
2778
- };
2779
-
2780
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2781
- apiVersion: "7.2-preview.1",
2782
- method: "POST",
2783
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",
2784
- routeValues: {
2785
- project: project,
2786
- runId: runId,
2787
- resultId: resultId
2788
- },
2789
- queryParams: queryValues
2790
- });
2791
- }
2792
-
2793
- /**
2794
- * Get SAS Uri of a test run attachment
2795
- *
2796
- * @param project - Project ID or project name
2797
- * @param runId - Id of the test run whose file has to be downloaded
2798
- * @param type - type of the file
2799
- * @param filePath - filePath for which sas uri is needed
2800
- */
2801
- public async getTestLogStoreEndpointDetailsForRunLog(
2802
- project: string,
2803
- runId: number,
2804
- type: Test.TestLogType,
2805
- filePath: string
2806
- ): Promise<Test.TestLogStoreEndpointDetails> {
2807
-
2808
- const queryValues: any = {
2809
- type: type,
2810
- filePath: filePath
2811
- };
2812
-
2813
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2814
- apiVersion: "7.2-preview.1",
2815
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
2816
- routeValues: {
2817
- project: project,
2818
- runId: runId
2819
- },
2820
- queryParams: queryValues
2821
- });
2822
- }
2823
-
2824
- /**
2825
- * Create empty file for a run and Get Sas uri for the file
2826
- *
2827
- * @param project - Project ID or project name
2828
- * @param runId - Id of the run to get endpoint details
2829
- * @param testLogStoreOperationType - Type of operation to perform using sas uri
2830
- * @param filePath - file path to create an empty file
2831
- * @param type - Default is GeneralAttachment, type of empty file to be created
2832
- */
2833
- public async testLogStoreEndpointDetailsForRun(
2834
- project: string,
2835
- runId: number,
2836
- testLogStoreOperationType: Test.TestLogStoreOperationType,
2837
- filePath?: string,
2838
- type?: Test.TestLogType
2839
- ): Promise<Test.TestLogStoreEndpointDetails> {
2840
-
2841
- const queryValues: any = {
2842
- testLogStoreOperationType: testLogStoreOperationType,
2843
- filePath: filePath,
2844
- type: type
2845
- };
2846
-
2847
- return this.beginRequest<Test.TestLogStoreEndpointDetails>({
2848
- apiVersion: "7.2-preview.1",
2849
- method: "POST",
2850
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",
2851
- routeValues: {
2852
- project: project,
2853
- runId: runId
2854
- },
2855
- queryParams: queryValues
2856
- });
2857
- }
2858
-
2859
- /**
2860
- * Creates TestResultsSession object in TCM data store
2861
- *
2862
- * @param session - Received session object.
2863
- * @param project - Project ID or project name
2864
- */
2865
- public async createTestSession(
2866
- session: Test.TestResultsSession,
2867
- project: string
2868
- ): Promise<number> {
2869
-
2870
- return this.beginRequest<number>({
2871
- apiVersion: "7.2-preview.2",
2872
- method: "POST",
2873
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2874
- routeValues: {
2875
- project: project
2876
- },
2877
- body: session
2878
- });
2879
- }
2880
-
2881
- /**
2882
- * Retrieves TestResultsSession metadata object in TCM data store
2883
- *
2884
- * @param project - Project ID or project name
2885
- * @param buildId -
2886
- */
2887
- public async getTestSession(
2888
- project: string,
2889
- buildId: number
2890
- ): Promise<Test.TestResultsSession[]> {
2891
-
2892
- const queryValues: any = {
2893
- buildId: buildId
2894
- };
2895
-
2896
- return this.beginRequest<Test.TestResultsSession[]>({
2897
- apiVersion: "7.2-preview.2",
2898
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2899
- routeValues: {
2900
- project: project
2901
- },
2902
- queryParams: queryValues
2903
- });
2904
- }
2905
-
2906
- /**
2907
- * Retrieves TestResultsSession Layout object in TCM data store
2908
- *
2909
- * @param project - Project ID or project name
2910
- * @param sessionId -
2911
- */
2912
- public async getTestSessionLayout(
2913
- project: string,
2914
- sessionId: string
2915
- ): Promise<any[]> {
2916
-
2917
- const queryValues: any = {
2918
- sessionId: sessionId
2919
- };
2920
-
2921
- return this.beginRequest<any[]>({
2922
- apiVersion: "7.2-preview.2",
2923
- routeTemplate: "{project}/_apis/testresults/testsession/session",
2924
- routeValues: {
2925
- project: project
2926
- },
2927
- queryParams: queryValues
2928
- });
2929
- }
2930
-
2931
- /**
2932
- * Creates Session Analysis object in TCM data store for a given session
2933
- *
2934
- * @param analysis - Session Analysis details
2935
- * @param project - Project ID or project name
2936
- * @param sessionId - ID of Session to add Notification
2937
- */
2938
- public async createAnalysis(
2939
- analysis: Test.TestSessionAnalysis[],
2940
- project: string,
2941
- sessionId: number
2942
- ): Promise<Test.AnalysisFailureGroupReturn[]> {
2943
-
2944
- return this.beginRequest<Test.AnalysisFailureGroupReturn[]>({
2945
- apiVersion: "7.2-preview.2",
2946
- method: "POST",
2947
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/analysis",
2948
- routeValues: {
2949
- project: project,
2950
- sessionId: sessionId
2951
- },
2952
- body: analysis
2953
- });
2954
- }
2955
-
2956
- /**
2957
- * Creates Environment object in TCM data store
2958
- *
2959
- * @param environments - Received Environment object.
2960
- * @param project - Project ID or project name
2961
- */
2962
- public async createEnvironment(
2963
- environments: Test.TestSessionEnvironment[],
2964
- project: string
2965
- ): Promise<void> {
2966
-
2967
- return this.beginRequest<void>({
2968
- apiVersion: "7.2-preview.2",
2969
- method: "POST",
2970
- routeTemplate: "{project}/_apis/testresults/testsession/environment",
2971
- routeValues: {
2972
- project: project
2973
- },
2974
- body: environments
2975
- });
2976
- }
2977
-
2978
- /**
2979
- * For the provided sessionId, creates environment, configuration, and machine objects in TCM data store
2980
- *
2981
- * @param sessionEnvironmentAndMachine -
2982
- * @param project - Project ID or project name
2983
- * @param sessionId -
2984
- */
2985
- public async createEnvironmentAndMachine(
2986
- sessionEnvironmentAndMachine: Test.SessionEnvironmentAndMachine,
2987
- project: string,
2988
- sessionId: number
2989
- ): Promise<void> {
2990
-
2991
- return this.beginRequest<void>({
2992
- apiVersion: "7.2-preview.2",
2993
- method: "POST",
2994
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/machines",
2995
- routeValues: {
2996
- project: project,
2997
- sessionId: sessionId
2998
- },
2999
- body: sessionEnvironmentAndMachine
3000
- });
3001
- }
3002
-
3003
- /**
3004
- * Retrieves TestResultsSession Layout object in TCM data store
3005
- *
3006
- * @param project - Project ID or project name
3007
- * @param sessionId - Retrieve session object.
3008
- */
3009
- public async getTestSessionLayoutBySessionId(
3010
- project: string,
3011
- sessionId: number
3012
- ): Promise<any[]> {
3013
-
3014
- return this.beginRequest<any[]>({
3015
- apiVersion: "7.2-preview.2",
3016
- routeTemplate: "{project}/_apis/testresults/testsession/session/{sessionId}/layout",
3017
- routeValues: {
3018
- project: project,
3019
- sessionId: sessionId
3020
- }
3021
- });
3022
- }
3023
-
3024
- /**
3025
- * Creates Notification object in TCM data store for a given session
3026
- *
3027
- * @param notifications - Notification(s) to add for the specified sessionId
3028
- * @param project - Project ID or project name
3029
- * @param sessionId - ID of Session to add Notification
3030
- */
3031
- public async createNotification(
3032
- notifications: Test.TestSessionNotification[],
3033
- project: string,
3034
- sessionId: number
3035
- ): Promise<number[]> {
3036
-
3037
- return this.beginRequest<number[]>({
3038
- apiVersion: "7.2-preview.2",
3039
- method: "POST",
3040
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
3041
- routeValues: {
3042
- project: project,
3043
- sessionId: sessionId
3044
- },
3045
- body: notifications
3046
- });
3047
- }
3048
-
3049
- /**
3050
- * Retrieves TestResultsSession Notification objects in TCM data store
3051
- *
3052
- * @param project - Project ID or project name
3053
- * @param sessionId - Id of TestResults session to obtain Notifications for.
3054
- */
3055
- public async getSessionNotifications(
3056
- project: string,
3057
- sessionId: number
3058
- ): Promise<Test.TestSessionNotification[]> {
3059
-
3060
- return this.beginRequest<Test.TestSessionNotification[]>({
3061
- apiVersion: "7.2-preview.2",
3062
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/notifications",
3063
- routeValues: {
3064
- project: project,
3065
- sessionId: sessionId
3066
- }
3067
- });
3068
- }
3069
-
3070
- /**
3071
- * Add Test Results to test run session
3072
- *
3073
- * @param results -
3074
- * @param project - Project ID or project name
3075
- * @param runId - RunId of test run
3076
- */
3077
- public async addTestResultsToTestRunSession(
3078
- results: Test.TestCaseResult[],
3079
- project: string,
3080
- runId: number
3081
- ): Promise<Test.TestCaseResult[]> {
3082
-
3083
- return this.beginRequest<Test.TestCaseResult[]>({
3084
- apiVersion: "7.2-preview.2",
3085
- method: "POST",
3086
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3087
- routeValues: {
3088
- project: project,
3089
- runId: runId
3090
- },
3091
- body: results
3092
- });
3093
- }
3094
-
3095
- /**
3096
- * @param project - Project ID or project name
3097
- * @param runId -
3098
- * @param detailsToInclude -
3099
- * @param skip -
3100
- * @param top -
3101
- * @param outcomes -
3102
- * @param newTestsOnly -
3103
- */
3104
- public async getTestSessionResults(
3105
- project: string,
3106
- runId: number,
3107
- detailsToInclude?: Test.ResultDetails,
3108
- skip?: number,
3109
- top?: number,
3110
- outcomes?: Test.TestOutcome[],
3111
- newTestsOnly?: boolean
3112
- ): Promise<Test.TestCaseResult[]> {
3113
-
3114
- const queryValues: any = {
3115
- detailsToInclude: detailsToInclude,
3116
- '$skip': skip,
3117
- '$top': top,
3118
- outcomes: outcomes && outcomes.join(","),
3119
- '$newTestsOnly': newTestsOnly
3120
- };
3121
-
3122
- return this.beginRequest<Test.TestCaseResult[]>({
3123
- apiVersion: "7.2-preview.2",
3124
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3125
- routeValues: {
3126
- project: project,
3127
- runId: runId
3128
- },
3129
- queryParams: queryValues
3130
- });
3131
- }
3132
-
3133
- /**
3134
- * Creates TestResultsMRX objects in TCM data store for existing test results
3135
- *
3136
- * @param results - Results object with only test results MRX properties and existing testResultId
3137
- * @param project - Project ID or project name
3138
- * @param runId - RunId of test run
3139
- */
3140
- public async updateTestResultsToTestRunSession(
3141
- results: Test.TestCaseResult[],
3142
- project: string,
3143
- runId: number
3144
- ): Promise<number[]> {
3145
-
3146
- return this.beginRequest<number[]>({
3147
- apiVersion: "7.2-preview.2",
3148
- method: "PATCH",
3149
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",
3150
- routeValues: {
3151
- project: project,
3152
- runId: runId
3153
- },
3154
- body: results
3155
- });
3156
- }
3157
-
3158
- /**
3159
- * Creates test result machines for the provided TestRunId
3160
- *
3161
- * @param testResultMachines - List of machines for test results in the run
3162
- * @param project - Project ID or project name
3163
- * @param runId - ID of the TestRun to add machines for
3164
- */
3165
- public async createTestResultMachines(
3166
- testResultMachines: Test.TestResultMachine[],
3167
- project: string,
3168
- runId: number
3169
- ): Promise<void> {
3170
-
3171
- return this.beginRequest<void>({
3172
- apiVersion: "7.2-preview.2",
3173
- method: "POST",
3174
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/machines",
3175
- routeValues: {
3176
- project: project,
3177
- runId: runId
3178
- },
3179
- body: testResultMachines
3180
- });
3181
- }
3182
-
3183
- /**
3184
- * Gets test result machines for the provided TestRunId
3185
- *
3186
- * @param project - Project ID or project name
3187
- * @param runId - ID of the TestRun to add machines for
3188
- */
3189
- public async getTestResultMachines(
3190
- project: string,
3191
- runId: number
3192
- ): Promise<Test.TestResultMachine[]> {
3193
-
3194
- return this.beginRequest<Test.TestResultMachine[]>({
3195
- apiVersion: "7.2-preview.2",
3196
- routeTemplate: "{project}/_apis/testresults/testsession/runs/{runId}/machines",
3197
- routeValues: {
3198
- project: project,
3199
- runId: runId
3200
- }
3201
- });
3202
- }
3203
-
3204
- /**
3205
- * Retrieves Test runs associated to a session
3206
- *
3207
- * @param project - Project ID or project name
3208
- * @param sessionId - Id of TestResults session to obtain Test Runs for.
3209
- */
3210
- public async getTestRunsBySessionId(
3211
- project: string,
3212
- sessionId: number
3213
- ): Promise<number[]> {
3214
-
3215
- return this.beginRequest<number[]>({
3216
- apiVersion: "7.2-preview.2",
3217
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/runs",
3218
- routeValues: {
3219
- project: project,
3220
- sessionId: sessionId
3221
- }
3222
- });
3223
- }
3224
-
3225
- /**
3226
- * Updates Test runs associated to a session
3227
- *
3228
- * @param testRunIds -
3229
- * @param project - Project ID or project name
3230
- * @param sessionId - Id of TestResults session to update Test Runs for.
3231
- */
3232
- public async updateTestRunsBySessionId(
3233
- testRunIds: Test.TestSessionTestRun,
3234
- project: string,
3235
- sessionId: number
3236
- ): Promise<number[]> {
3237
-
3238
- return this.beginRequest<number[]>({
3239
- apiVersion: "7.2-preview.2",
3240
- method: "PATCH",
3241
- routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/runs",
3242
- routeValues: {
3243
- project: project,
3244
- sessionId: sessionId
3245
- },
3246
- body: testRunIds
3247
- });
3248
- }
3249
-
3250
- /**
3251
- * @param testSettings -
3252
- * @param project - Project ID or project name
3253
- */
3254
- public async createTestSettings(
3255
- testSettings: Test.TestSettings,
3256
- project: string
3257
- ): Promise<number> {
3258
-
3259
- return this.beginRequest<number>({
3260
- apiVersion: "7.2-preview.1",
3261
- method: "POST",
3262
- routeTemplate: "{project}/_apis/testresults/testsettings",
3263
- routeValues: {
3264
- project: project
3265
- },
3266
- body: testSettings
3267
- });
3268
- }
3269
-
3270
- /**
3271
- * @param project - Project ID or project name
3272
- * @param testSettingsId -
3273
- */
3274
- public async deleteTestSettings(
3275
- project: string,
3276
- testSettingsId: number
3277
- ): Promise<void> {
3278
-
3279
- const queryValues: any = {
3280
- testSettingsId: testSettingsId
3281
- };
3282
-
3283
- return this.beginRequest<void>({
3284
- apiVersion: "7.2-preview.1",
3285
- method: "DELETE",
3286
- routeTemplate: "{project}/_apis/testresults/testsettings",
3287
- routeValues: {
3288
- project: project
3289
- },
3290
- queryParams: queryValues
3291
- });
3292
- }
3293
-
3294
- /**
3295
- * @param project - Project ID or project name
3296
- * @param testSettingsId -
3297
- */
3298
- public async getTestSettingsById(
3299
- project: string,
3300
- testSettingsId: number
3301
- ): Promise<Test.TestSettings> {
3302
-
3303
- const queryValues: any = {
3304
- testSettingsId: testSettingsId
3305
- };
3306
-
3307
- return this.beginRequest<Test.TestSettings>({
3308
- apiVersion: "7.2-preview.1",
3309
- routeTemplate: "{project}/_apis/testresults/testsettings",
3310
- routeValues: {
3311
- project: project
3312
- },
3313
- queryParams: queryValues
3314
- });
3315
- }
3316
-
3317
- /**
3318
- * @param workItemToTestLinks -
3319
- * @param project - Project ID or project name
3320
- */
3321
- public async addWorkItemToTestLinks(
3322
- workItemToTestLinks: Test.WorkItemToTestLinks,
3323
- project: string
3324
- ): Promise<Test.WorkItemToTestLinks> {
3325
-
3326
- return this.beginRequest<Test.WorkItemToTestLinks>({
3327
- apiVersion: "7.2-preview.2",
3328
- method: "POST",
3329
- routeTemplate: "{project}/_apis/testresults/testmethods/workitems",
3330
- routeValues: {
3331
- project: project
3332
- },
3333
- body: workItemToTestLinks
3334
- });
3335
- }
3336
-
3337
- /**
3338
- * @param project - Project ID or project name
3339
- * @param testName -
3340
- * @param workItemId -
3341
- */
3342
- public async deleteTestMethodToWorkItemLink(
3343
- project: string,
3344
- testName: string,
3345
- workItemId: number
3346
- ): Promise<boolean> {
3347
-
3348
- const queryValues: any = {
3349
- testName: testName,
3350
- workItemId: workItemId
3351
- };
3352
-
3353
- return this.beginRequest<boolean>({
3354
- apiVersion: "7.2-preview.2",
3355
- method: "DELETE",
3356
- routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
3357
- routeValues: {
3358
- project: project
3359
- },
3360
- queryParams: queryValues
3361
- });
3362
- }
3363
-
3364
- /**
3365
- * @param project - Project ID or project name
3366
- * @param testName -
3367
- */
3368
- public async queryTestMethodLinkedWorkItems(
3369
- project: string,
3370
- testName: string
3371
- ): Promise<Test.TestToWorkItemLinks> {
3372
-
3373
- const queryValues: any = {
3374
- testName: testName
3375
- };
3376
-
3377
- return this.beginRequest<Test.TestToWorkItemLinks>({
3378
- apiVersion: "7.2-preview.2",
3379
- method: "POST",
3380
- routeTemplate: "{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",
3381
- routeValues: {
3382
- project: project
3383
- },
3384
- queryParams: queryValues
3385
- });
3386
- }
3387
-
3388
- /**
3389
- * @param project - Project ID or project name
3390
- * @param runId -
3391
- * @param testCaseResultId -
3392
- */
3393
- public async getTestResultWorkItemsById(
3394
- project: string,
3395
- runId: number,
3396
- testCaseResultId: number
3397
- ): Promise<Test.WorkItemReference[]> {
3398
-
3399
- return this.beginRequest<Test.WorkItemReference[]>({
3400
- apiVersion: "7.2-preview.2",
3401
- routeTemplate: "{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",
3402
- routeValues: {
3403
- project: project,
3404
- runId: runId,
3405
- testCaseResultId: testCaseResultId
3406
- }
3407
- });
3408
- }
3409
-
3410
- /**
3411
- * Query Test Result WorkItems based on filter
3412
- *
3413
- * @param project - Project ID or project name
3414
- * @param workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems)
3415
- * @param automatedTestName -
3416
- * @param testCaseId -
3417
- * @param maxCompleteDate -
3418
- * @param days -
3419
- * @param workItemCount -
3420
- */
3421
- public async queryTestResultWorkItems(
3422
- project: string,
3423
- workItemCategory: string,
3424
- automatedTestName?: string,
3425
- testCaseId?: number,
3426
- maxCompleteDate?: Date,
3427
- days?: number,
3428
- workItemCount?: number
3429
- ): Promise<Test.WorkItemReference[]> {
3430
-
3431
- const queryValues: any = {
3432
- workItemCategory: workItemCategory,
3433
- automatedTestName: automatedTestName,
3434
- testCaseId: testCaseId,
3435
- maxCompleteDate: maxCompleteDate,
3436
- days: days,
3437
- '$workItemCount': workItemCount
3438
- };
3439
-
3440
- return this.beginRequest<Test.WorkItemReference[]>({
3441
- apiVersion: "7.2-preview.2",
3442
- routeTemplate: "{project}/_apis/testresults/results/workitems",
3443
- routeValues: {
3444
- project: project
3445
- },
3446
- queryParams: queryValues
3447
- });
3448
- }
3449
-
3450
- }