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.
- package/{bin/Alert → Alert}/Alert.d.ts +12 -2
- package/{bin/Alert → Alert}/Alert.js +11 -0
- package/Alert/Alert.min.js +1 -0
- package/{bin/Alert → Alert}/AlertClient.d.ts +2 -1
- package/{bin/Alert → Alert}/AlertClient.js +3 -1
- package/Alert/AlertClient.min.js +1 -0
- package/{bin/Gallery → Gallery}/GalleryClient.d.ts +7 -5
- package/{bin/Gallery → Gallery}/GalleryClient.js +20 -19
- package/Gallery/GalleryClient.min.js +1 -0
- package/{bin/Git → Git}/Git.d.ts +4 -0
- package/{bin/Management → Management}/Management.d.ts +8 -0
- package/{bin/Release → Release}/ReleaseClient.d.ts +4 -2
- package/{bin/Release → Release}/ReleaseClient.js +8 -4
- package/Release/ReleaseClient.min.js +1 -0
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.d.ts +4 -0
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.d.ts +3 -2
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.js +5 -3
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
- package/{bin/TestResults → TestResults}/TestResultsClient.d.ts +24 -1
- package/{bin/TestResults → TestResults}/TestResultsClient.js +84 -10
- package/TestResults/TestResultsClient.min.js +1 -0
- package/package.json +1 -1
- package/SECURITY.md +0 -41
- package/bin/Alert/Alert.min.js +0 -1
- package/bin/Alert/AlertClient.min.js +0 -1
- package/bin/Gallery/GalleryClient.min.js +0 -1
- package/bin/LICENSE +0 -21
- package/bin/README.md +0 -2
- package/bin/Release/ReleaseClient.min.js +0 -1
- package/bin/ServiceEndpoint/ServiceEndpointClient.min.js +0 -1
- package/bin/TestResults/TestResultsClient.min.js +0 -1
- package/bin/package.json +0 -37
- package/buildpackage.js +0 -80
- package/src/Accounts/Accounts.ts +0 -134
- package/src/Accounts/AccountsClient.ts +0 -83
- package/src/Accounts/index.ts +0 -2
- package/src/AdvancedSecurity.Reporting/Reporting.ts +0 -180
- package/src/AdvancedSecurity.Reporting/ReportingClient.ts +0 -47
- package/src/Alert/Alert.ts +0 -1037
- package/src/Alert/AlertClient.ts +0 -330
- package/src/Boards/Boards.ts +0 -684
- package/src/Boards/BoardsClient.ts +0 -593
- package/src/Boards/index.ts +0 -2
- package/src/Build/Build.ts +0 -3416
- package/src/Build/BuildClient.ts +0 -2740
- package/src/Build/BuildServices.ts +0 -39
- package/src/Build/index.ts +0 -3
- package/src/Comments/Comments.ts +0 -330
- package/src/Comments/index.ts +0 -1
- package/src/Common/Client.ts +0 -37
- package/src/Common/CommonServices.ts +0 -853
- package/src/Common/Context.d.ts +0 -46
- package/src/Common/Fetch.ts +0 -239
- package/src/Common/RestClientBase.ts +0 -186
- package/src/Common/System.ts +0 -36
- package/src/Common/SystemData.ts +0 -135
- package/src/Common/Util/Serialization.ts +0 -59
- package/src/Common/Util/Url.ts +0 -773
- package/src/Common/index.ts +0 -3
- package/src/Contributions/Contributions.ts +0 -708
- package/src/Contributions/ContributionsClient.ts +0 -109
- package/src/Contributions/index.ts +0 -2
- package/src/Core/Core.ts +0 -579
- package/src/Core/CoreClient.ts +0 -765
- package/src/Core/index.ts +0 -2
- package/src/Dashboard/Dashboard.ts +0 -419
- package/src/Dashboard/DashboardClient.ts +0 -370
- package/src/Dashboard/WidgetConfigHelpers.ts +0 -43
- package/src/Dashboard/WidgetContracts.ts +0 -226
- package/src/Dashboard/WidgetHelpers.ts +0 -145
- package/src/Dashboard/index.ts +0 -5
- package/src/DistributedTaskCommon/DistributedTaskCommon.ts +0 -108
- package/src/DistributedTaskCommon/index.ts +0 -1
- package/src/ExtensionManagement/ExtensionManagement.ts +0 -1205
- package/src/ExtensionManagement/ExtensionManagementClient.ts +0 -646
- package/src/ExtensionManagement/index.ts +0 -2
- package/src/Favorite/Favorite.ts +0 -136
- package/src/Favorite/FavoriteClient.ts +0 -301
- package/src/FeatureAvailability/FeatureAvailability.ts +0 -20
- package/src/FeatureAvailability/FeatureAvailabilityClient.ts +0 -153
- package/src/FeatureAvailability/index.ts +0 -2
- package/src/FeatureManagement/FeatureManagement.ts +0 -166
- package/src/FeatureManagement/FeatureManagementClient.ts +0 -246
- package/src/FeatureManagement/index.ts +0 -2
- package/src/FileContainer/FileContainer.ts +0 -205
- package/src/FileContainer/FileContainerClient.ts +0 -154
- package/src/FileContainer/index.ts +0 -2
- package/src/FormInput/FormInput.ts +0 -288
- package/src/FormInput/index.ts +0 -1
- package/src/Gallery/Gallery.ts +0 -1977
- package/src/Gallery/GalleryClient.ts +0 -2251
- package/src/Gallery/index.ts +0 -2
- package/src/Git/CodeEditorTypes.ts +0 -335
- package/src/Git/Git.ts +0 -4058
- package/src/Git/GitClient.ts +0 -4750
- package/src/Git/GitServices.ts +0 -18
- package/src/Git/index.ts +0 -4
- package/src/Graph/Graph.ts +0 -572
- package/src/Graph/GraphClient.ts +0 -846
- package/src/Graph/index.ts +0 -2
- package/src/Identities/Identities.ts +0 -261
- package/src/Identities/IdentityProvider.ts +0 -90
- package/src/Identities/IdentityService.ts +0 -89
- package/src/Identities/index.ts +0 -3
- package/src/Locations/Locations.ts +0 -165
- package/src/Locations/LocationsClient.ts +0 -220
- package/src/Locations/index.ts +0 -2
- package/src/Management/Management.ts +0 -172
- package/src/Management/ManagementClient.ts +0 -348
- package/src/Notification/Notification.ts +0 -1460
- package/src/Notification/NotificationClient.ts +0 -477
- package/src/Notification/index.ts +0 -2
- package/src/Operations/Operations.ts +0 -86
- package/src/Operations/OperationsClient.ts +0 -42
- package/src/Operations/index.ts +0 -2
- package/src/Pipelines/Pipelines.ts +0 -354
- package/src/Pipelines/PipelinesClient.ts +0 -306
- package/src/Policy/Policy.ts +0 -173
- package/src/Policy/PolicyClient.ts +0 -315
- package/src/Policy/index.ts +0 -2
- package/src/Profile/Profile.ts +0 -187
- package/src/Profile/ProfileClient.ts +0 -328
- package/src/Profile/index.ts +0 -2
- package/src/ProjectAnalysis/ProjectAnalysis.ts +0 -74
- package/src/ProjectAnalysis/ProjectAnalysisClient.ts +0 -124
- package/src/ProjectAnalysis/index.ts +0 -2
- package/src/Release/Release.ts +0 -4237
- package/src/Release/ReleaseClient.ts +0 -2450
- package/src/Release/index.ts +0 -2
- package/src/ResourceUsage/ResourceUsage.ts +0 -19
- package/src/ResourceUsage/ResourceUsageClient.ts +0 -48
- package/src/ServiceEndpoint/ServiceEndpoint.ts +0 -930
- package/src/ServiceEndpoint/ServiceEndpointClient.ts +0 -617
- package/src/ServiceEndpoint/index.ts +0 -2
- package/src/ServiceHooks/ServiceHooks.ts +0 -759
- package/src/ServiceHooks/ServiceHooksClient.ts +0 -499
- package/src/ServiceHooks/index.ts +0 -2
- package/src/TaskAgent/TaskAgent.ts +0 -3896
- package/src/TaskAgent/TaskAgentClient.ts +0 -3918
- package/src/TaskAgent/index.ts +0 -2
- package/src/Test/Test.ts +0 -5853
- package/src/Test/TestClient.ts +0 -2201
- package/src/Test/index.ts +0 -2
- package/src/TestPlan/TestPlan.ts +0 -1384
- package/src/TestPlan/TestPlanClient.ts +0 -1367
- package/src/TestPlan/index.ts +0 -2
- package/src/TestResults/TestResults.ts +0 -11
- package/src/TestResults/TestResultsClient.ts +0 -3450
- package/src/TestResults/index.ts +0 -2
- package/src/Tfvc/Tfvc.ts +0 -770
- package/src/Tfvc/TfvcClient.ts +0 -757
- package/src/Tfvc/index.ts +0 -2
- package/src/WebApi/WebApi.ts +0 -452
- package/src/WebApi/index.ts +0 -1
- package/src/Wiki/Wiki.ts +0 -352
- package/src/Wiki/WikiClient.ts +0 -712
- package/src/Wiki/index.ts +0 -2
- package/src/Work/Work.ts +0 -1367
- package/src/Work/WorkClient.ts +0 -1489
- package/src/Work/index.ts +0 -2
- package/src/WorkItemTracking/WorkItemTracking.ts +0 -2215
- package/src/WorkItemTracking/WorkItemTrackingClient.ts +0 -2032
- package/src/WorkItemTracking/WorkItemTrackingServices.ts +0 -329
- package/src/WorkItemTracking/index.ts +0 -3
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +0 -1295
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +0 -1455
- package/src/WorkItemTrackingProcess/index.ts +0 -2
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +0 -606
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +0 -1175
- package/src/WorkItemTrackingProcessDefinitions/index.ts +0 -2
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -21
- /package/{bin/Accounts → Accounts}/Accounts.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/Accounts.js +0 -0
- /package/{bin/Accounts → Accounts}/Accounts.min.js +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.js +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.min.js +0 -0
- /package/{bin/Accounts → Accounts}/index.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/index.js +0 -0
- /package/{bin/Accounts → Accounts}/index.min.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.d.ts +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.min.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
- /package/{bin/Boards → Boards}/Boards.d.ts +0 -0
- /package/{bin/Boards → Boards}/Boards.js +0 -0
- /package/{bin/Boards → Boards}/Boards.min.js +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.d.ts +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.js +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.min.js +0 -0
- /package/{bin/Boards → Boards}/index.d.ts +0 -0
- /package/{bin/Boards → Boards}/index.js +0 -0
- /package/{bin/Boards → Boards}/index.min.js +0 -0
- /package/{bin/Build → Build}/Build.d.ts +0 -0
- /package/{bin/Build → Build}/Build.js +0 -0
- /package/{bin/Build → Build}/Build.min.js +0 -0
- /package/{bin/Build → Build}/BuildClient.d.ts +0 -0
- /package/{bin/Build → Build}/BuildClient.js +0 -0
- /package/{bin/Build → Build}/BuildClient.min.js +0 -0
- /package/{bin/Build → Build}/BuildServices.d.ts +0 -0
- /package/{bin/Build → Build}/BuildServices.js +0 -0
- /package/{bin/Build → Build}/BuildServices.min.js +0 -0
- /package/{bin/Build → Build}/index.d.ts +0 -0
- /package/{bin/Build → Build}/index.js +0 -0
- /package/{bin/Build → Build}/index.min.js +0 -0
- /package/{bin/Comments → Comments}/Comments.d.ts +0 -0
- /package/{bin/Comments → Comments}/Comments.js +0 -0
- /package/{bin/Comments → Comments}/Comments.min.js +0 -0
- /package/{bin/Comments → Comments}/index.d.ts +0 -0
- /package/{bin/Comments → Comments}/index.js +0 -0
- /package/{bin/Comments → Comments}/index.min.js +0 -0
- /package/{bin/Common → Common}/Client.d.ts +0 -0
- /package/{bin/Common → Common}/Client.js +0 -0
- /package/{bin/Common → Common}/Client.min.js +0 -0
- /package/{bin/Common → Common}/CommonServices.d.ts +0 -0
- /package/{bin/Common → Common}/CommonServices.js +0 -0
- /package/{bin/Common → Common}/CommonServices.min.js +0 -0
- /package/{bin/Common → Common}/Context.d.ts +0 -0
- /package/{bin/Common → Common}/Fetch.d.ts +0 -0
- /package/{bin/Common → Common}/Fetch.js +0 -0
- /package/{bin/Common → Common}/Fetch.min.js +0 -0
- /package/{bin/Common → Common}/RestClientBase.d.ts +0 -0
- /package/{bin/Common → Common}/RestClientBase.js +0 -0
- /package/{bin/Common → Common}/RestClientBase.min.js +0 -0
- /package/{bin/Common → Common}/System.d.ts +0 -0
- /package/{bin/Common → Common}/System.js +0 -0
- /package/{bin/Common → Common}/System.min.js +0 -0
- /package/{bin/Common → Common}/SystemData.d.ts +0 -0
- /package/{bin/Common → Common}/SystemData.js +0 -0
- /package/{bin/Common → Common}/SystemData.min.js +0 -0
- /package/{bin/Common → Common}/Util/Serialization.d.ts +0 -0
- /package/{bin/Common → Common}/Util/Serialization.js +0 -0
- /package/{bin/Common → Common}/Util/Serialization.min.js +0 -0
- /package/{bin/Common → Common}/Util/Url.d.ts +0 -0
- /package/{bin/Common → Common}/Util/Url.js +0 -0
- /package/{bin/Common → Common}/Util/Url.min.js +0 -0
- /package/{bin/Common → Common}/index.d.ts +0 -0
- /package/{bin/Common → Common}/index.js +0 -0
- /package/{bin/Common → Common}/index.min.js +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.js +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.min.js +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.js +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.min.js +0 -0
- /package/{bin/Contributions → Contributions}/index.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/index.js +0 -0
- /package/{bin/Contributions → Contributions}/index.min.js +0 -0
- /package/{bin/Core → Core}/Core.d.ts +0 -0
- /package/{bin/Core → Core}/Core.js +0 -0
- /package/{bin/Core → Core}/Core.min.js +0 -0
- /package/{bin/Core → Core}/CoreClient.d.ts +0 -0
- /package/{bin/Core → Core}/CoreClient.js +0 -0
- /package/{bin/Core → Core}/CoreClient.min.js +0 -0
- /package/{bin/Core → Core}/index.d.ts +0 -0
- /package/{bin/Core → Core}/index.js +0 -0
- /package/{bin/Core → Core}/index.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.js +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.js +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/index.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/index.js +0 -0
- /package/{bin/Dashboard → Dashboard}/index.min.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.d.ts +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.min.js +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.d.ts +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.js +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.min.js +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.d.ts +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.js +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/index.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/index.js +0 -0
- /package/{bin/FileContainer → FileContainer}/index.min.js +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.d.ts +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.js +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.min.js +0 -0
- /package/{bin/FormInput → FormInput}/index.d.ts +0 -0
- /package/{bin/FormInput → FormInput}/index.js +0 -0
- /package/{bin/FormInput → FormInput}/index.min.js +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.d.ts +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.js +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.min.js +0 -0
- /package/{bin/Gallery → Gallery}/index.d.ts +0 -0
- /package/{bin/Gallery → Gallery}/index.js +0 -0
- /package/{bin/Gallery → Gallery}/index.min.js +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.d.ts +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.js +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.min.js +0 -0
- /package/{bin/Git → Git}/Git.js +0 -0
- /package/{bin/Git → Git}/Git.min.js +0 -0
- /package/{bin/Git → Git}/GitClient.d.ts +0 -0
- /package/{bin/Git → Git}/GitClient.js +0 -0
- /package/{bin/Git → Git}/GitClient.min.js +0 -0
- /package/{bin/Git → Git}/GitServices.d.ts +0 -0
- /package/{bin/Git → Git}/GitServices.js +0 -0
- /package/{bin/Git → Git}/GitServices.min.js +0 -0
- /package/{bin/Git → Git}/index.d.ts +0 -0
- /package/{bin/Git → Git}/index.js +0 -0
- /package/{bin/Git → Git}/index.min.js +0 -0
- /package/{bin/Graph → Graph}/Graph.d.ts +0 -0
- /package/{bin/Graph → Graph}/Graph.js +0 -0
- /package/{bin/Graph → Graph}/Graph.min.js +0 -0
- /package/{bin/Graph → Graph}/GraphClient.d.ts +0 -0
- /package/{bin/Graph → Graph}/GraphClient.js +0 -0
- /package/{bin/Graph → Graph}/GraphClient.min.js +0 -0
- /package/{bin/Graph → Graph}/index.d.ts +0 -0
- /package/{bin/Graph → Graph}/index.js +0 -0
- /package/{bin/Graph → Graph}/index.min.js +0 -0
- /package/{bin/Identities → Identities}/Identities.d.ts +0 -0
- /package/{bin/Identities → Identities}/Identities.js +0 -0
- /package/{bin/Identities → Identities}/Identities.min.js +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.d.ts +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.js +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.min.js +0 -0
- /package/{bin/Identities → Identities}/IdentityService.d.ts +0 -0
- /package/{bin/Identities → Identities}/IdentityService.js +0 -0
- /package/{bin/Identities → Identities}/IdentityService.min.js +0 -0
- /package/{bin/Identities → Identities}/index.d.ts +0 -0
- /package/{bin/Identities → Identities}/index.js +0 -0
- /package/{bin/Identities → Identities}/index.min.js +0 -0
- /package/{bin/Locations → Locations}/Locations.d.ts +0 -0
- /package/{bin/Locations → Locations}/Locations.js +0 -0
- /package/{bin/Locations → Locations}/Locations.min.js +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.d.ts +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.js +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.min.js +0 -0
- /package/{bin/Locations → Locations}/index.d.ts +0 -0
- /package/{bin/Locations → Locations}/index.js +0 -0
- /package/{bin/Locations → Locations}/index.min.js +0 -0
- /package/{bin/Management → Management}/Management.js +0 -0
- /package/{bin/Management → Management}/Management.min.js +0 -0
- /package/{bin/Management → Management}/ManagementClient.d.ts +0 -0
- /package/{bin/Management → Management}/ManagementClient.js +0 -0
- /package/{bin/Management → Management}/ManagementClient.min.js +0 -0
- /package/{bin/Notification → Notification}/Notification.d.ts +0 -0
- /package/{bin/Notification → Notification}/Notification.js +0 -0
- /package/{bin/Notification → Notification}/Notification.min.js +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.d.ts +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.js +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.min.js +0 -0
- /package/{bin/Notification → Notification}/index.d.ts +0 -0
- /package/{bin/Notification → Notification}/index.js +0 -0
- /package/{bin/Notification → Notification}/index.min.js +0 -0
- /package/{bin/Operations → Operations}/Operations.d.ts +0 -0
- /package/{bin/Operations → Operations}/Operations.js +0 -0
- /package/{bin/Operations → Operations}/Operations.min.js +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.d.ts +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.js +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.min.js +0 -0
- /package/{bin/Operations → Operations}/index.d.ts +0 -0
- /package/{bin/Operations → Operations}/index.js +0 -0
- /package/{bin/Operations → Operations}/index.min.js +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.d.ts +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.js +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.min.js +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.d.ts +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.js +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.min.js +0 -0
- /package/{bin/Policy → Policy}/Policy.d.ts +0 -0
- /package/{bin/Policy → Policy}/Policy.js +0 -0
- /package/{bin/Policy → Policy}/Policy.min.js +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.d.ts +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.js +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.min.js +0 -0
- /package/{bin/Policy → Policy}/index.d.ts +0 -0
- /package/{bin/Policy → Policy}/index.js +0 -0
- /package/{bin/Policy → Policy}/index.min.js +0 -0
- /package/{bin/Profile → Profile}/Profile.d.ts +0 -0
- /package/{bin/Profile → Profile}/Profile.js +0 -0
- /package/{bin/Profile → Profile}/Profile.min.js +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.d.ts +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.js +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.min.js +0 -0
- /package/{bin/Profile → Profile}/index.d.ts +0 -0
- /package/{bin/Profile → Profile}/index.js +0 -0
- /package/{bin/Profile → Profile}/index.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.min.js +0 -0
- /package/{bin/Release → Release}/Release.d.ts +0 -0
- /package/{bin/Release → Release}/Release.js +0 -0
- /package/{bin/Release → Release}/Release.min.js +0 -0
- /package/{bin/Release → Release}/index.d.ts +0 -0
- /package/{bin/Release → Release}/index.js +0 -0
- /package/{bin/Release → Release}/index.min.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.d.ts +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.min.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.d.ts +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.min.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.d.ts +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.min.js +0 -0
- /package/{bin/Test → Test}/Test.d.ts +0 -0
- /package/{bin/Test → Test}/Test.js +0 -0
- /package/{bin/Test → Test}/Test.min.js +0 -0
- /package/{bin/Test → Test}/TestClient.d.ts +0 -0
- /package/{bin/Test → Test}/TestClient.js +0 -0
- /package/{bin/Test → Test}/TestClient.min.js +0 -0
- /package/{bin/Test → Test}/index.d.ts +0 -0
- /package/{bin/Test → Test}/index.js +0 -0
- /package/{bin/Test → Test}/index.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/index.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/index.js +0 -0
- /package/{bin/TestPlan → TestPlan}/index.min.js +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.d.ts +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.js +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.min.js +0 -0
- /package/{bin/TestResults → TestResults}/index.d.ts +0 -0
- /package/{bin/TestResults → TestResults}/index.js +0 -0
- /package/{bin/TestResults → TestResults}/index.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.js +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.js +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/index.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/index.js +0 -0
- /package/{bin/Tfvc → Tfvc}/index.min.js +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.d.ts +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.js +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.min.js +0 -0
- /package/{bin/WebApi → WebApi}/index.d.ts +0 -0
- /package/{bin/WebApi → WebApi}/index.js +0 -0
- /package/{bin/WebApi → WebApi}/index.min.js +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.js +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.min.js +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.js +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.min.js +0 -0
- /package/{bin/Wiki → Wiki}/index.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/index.js +0 -0
- /package/{bin/Wiki → Wiki}/index.min.js +0 -0
- /package/{bin/Work → Work}/Work.d.ts +0 -0
- /package/{bin/Work → Work}/Work.js +0 -0
- /package/{bin/Work → Work}/Work.min.js +0 -0
- /package/{bin/Work → Work}/WorkClient.d.ts +0 -0
- /package/{bin/Work → Work}/WorkClient.js +0 -0
- /package/{bin/Work → Work}/WorkClient.min.js +0 -0
- /package/{bin/Work → Work}/index.d.ts +0 -0
- /package/{bin/Work → Work}/index.js +0 -0
- /package/{bin/Work → Work}/index.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
- /package/{bin/index.d.ts → index.d.ts} +0 -0
- /package/{bin/index.js → index.js} +0 -0
- /package/{bin/index.min.js → index.min.js} +0 -0
|
@@ -1,1367 +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 TestPlan from "../TestPlan/TestPlan";
|
|
12
|
-
import * as WebApi from "../WebApi/WebApi";
|
|
13
|
-
|
|
14
|
-
export class TestPlanRestClient extends RestClientBase {
|
|
15
|
-
constructor(options: IVssRestClientOptions) {
|
|
16
|
-
super(options);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a test configuration.
|
|
21
|
-
*
|
|
22
|
-
* @param testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
|
|
23
|
-
* @param project - Project ID or project name
|
|
24
|
-
*/
|
|
25
|
-
public async createTestConfiguration(
|
|
26
|
-
testConfigurationCreateUpdateParameters: TestPlan.TestConfigurationCreateUpdateParameters,
|
|
27
|
-
project: string
|
|
28
|
-
): Promise<TestPlan.TestConfiguration> {
|
|
29
|
-
|
|
30
|
-
return this.beginRequest<TestPlan.TestConfiguration>({
|
|
31
|
-
apiVersion: "7.2-preview.1",
|
|
32
|
-
method: "POST",
|
|
33
|
-
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
34
|
-
routeValues: {
|
|
35
|
-
project: project
|
|
36
|
-
},
|
|
37
|
-
body: testConfigurationCreateUpdateParameters
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Delete a test configuration by its ID.
|
|
43
|
-
*
|
|
44
|
-
* @param project - Project ID or project name
|
|
45
|
-
* @param testConfiguartionId - ID of the test configuration to delete.
|
|
46
|
-
*/
|
|
47
|
-
public async deleteTestConfguration(
|
|
48
|
-
project: string,
|
|
49
|
-
testConfiguartionId: number
|
|
50
|
-
): Promise<void> {
|
|
51
|
-
|
|
52
|
-
const queryValues: any = {
|
|
53
|
-
testConfiguartionId: testConfiguartionId
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return this.beginRequest<void>({
|
|
57
|
-
apiVersion: "7.2-preview.1",
|
|
58
|
-
method: "DELETE",
|
|
59
|
-
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
60
|
-
routeValues: {
|
|
61
|
-
project: project
|
|
62
|
-
},
|
|
63
|
-
queryParams: queryValues
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Get a test configuration
|
|
69
|
-
*
|
|
70
|
-
* @param project - Project ID or project name
|
|
71
|
-
* @param testConfigurationId - ID of the test configuration to get.
|
|
72
|
-
*/
|
|
73
|
-
public async getTestConfigurationById(
|
|
74
|
-
project: string,
|
|
75
|
-
testConfigurationId: number
|
|
76
|
-
): Promise<TestPlan.TestConfiguration> {
|
|
77
|
-
|
|
78
|
-
return this.beginRequest<TestPlan.TestConfiguration>({
|
|
79
|
-
apiVersion: "7.2-preview.1",
|
|
80
|
-
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
81
|
-
routeValues: {
|
|
82
|
-
project: project,
|
|
83
|
-
testConfigurationId: testConfigurationId
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Get a list of test configurations.
|
|
90
|
-
*
|
|
91
|
-
* @param project - Project ID or project name
|
|
92
|
-
* @param continuationToken - If the list of configurations returned is not complete, a continuation token to query next batch of configurations is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test configurations.
|
|
93
|
-
*/
|
|
94
|
-
public async getTestConfigurations(
|
|
95
|
-
project: string,
|
|
96
|
-
continuationToken?: string
|
|
97
|
-
): Promise<WebApi.PagedList<TestPlan.TestConfiguration>> {
|
|
98
|
-
|
|
99
|
-
const queryValues: any = {
|
|
100
|
-
continuationToken: continuationToken
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
return this.beginRequest<Response>({
|
|
104
|
-
apiVersion: "7.2-preview.1",
|
|
105
|
-
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
106
|
-
routeValues: {
|
|
107
|
-
project: project
|
|
108
|
-
},
|
|
109
|
-
queryParams: queryValues,
|
|
110
|
-
returnRawResponse: true
|
|
111
|
-
}).then(async response => {
|
|
112
|
-
const body = <WebApi.PagedList<TestPlan.TestConfiguration>>await response.text().then(deserializeVssJsonObject);
|
|
113
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
114
|
-
return body;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Update a test configuration by its ID.
|
|
120
|
-
*
|
|
121
|
-
* @param testConfigurationCreateUpdateParameters - TestConfigurationCreateUpdateParameters
|
|
122
|
-
* @param project - Project ID or project name
|
|
123
|
-
* @param testConfiguartionId - ID of the test configuration to update.
|
|
124
|
-
*/
|
|
125
|
-
public async updateTestConfiguration(
|
|
126
|
-
testConfigurationCreateUpdateParameters: TestPlan.TestConfigurationCreateUpdateParameters,
|
|
127
|
-
project: string,
|
|
128
|
-
testConfiguartionId: number
|
|
129
|
-
): Promise<TestPlan.TestConfiguration> {
|
|
130
|
-
|
|
131
|
-
const queryValues: any = {
|
|
132
|
-
testConfiguartionId: testConfiguartionId
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
return this.beginRequest<TestPlan.TestConfiguration>({
|
|
136
|
-
apiVersion: "7.2-preview.1",
|
|
137
|
-
method: "PATCH",
|
|
138
|
-
routeTemplate: "{project}/_apis/testplan/Configurations/{testConfigurationId}",
|
|
139
|
-
routeValues: {
|
|
140
|
-
project: project
|
|
141
|
-
},
|
|
142
|
-
queryParams: queryValues,
|
|
143
|
-
body: testConfigurationCreateUpdateParameters
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @param project - Project ID or project name
|
|
149
|
-
* @param planId -
|
|
150
|
-
* @param states -
|
|
151
|
-
* @param outcome -
|
|
152
|
-
* @param configurations -
|
|
153
|
-
* @param testers -
|
|
154
|
-
* @param assignedTo -
|
|
155
|
-
* @param entity -
|
|
156
|
-
*/
|
|
157
|
-
public async getTestEntityCountByPlanId(
|
|
158
|
-
project: string,
|
|
159
|
-
planId: number,
|
|
160
|
-
states?: string,
|
|
161
|
-
outcome?: TestPlan.UserFriendlyTestOutcome,
|
|
162
|
-
configurations?: string,
|
|
163
|
-
testers?: string,
|
|
164
|
-
assignedTo?: string,
|
|
165
|
-
entity?: TestPlan.TestEntityTypes
|
|
166
|
-
): Promise<TestPlan.TestEntityCount[]> {
|
|
167
|
-
|
|
168
|
-
const queryValues: any = {
|
|
169
|
-
states: states,
|
|
170
|
-
outcome: outcome,
|
|
171
|
-
configurations: configurations,
|
|
172
|
-
testers: testers,
|
|
173
|
-
assignedTo: assignedTo,
|
|
174
|
-
entity: entity
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
return this.beginRequest<TestPlan.TestEntityCount[]>({
|
|
178
|
-
apiVersion: "7.2-preview.1",
|
|
179
|
-
routeTemplate: "{project}/_apis/testplan/Count/{planId}",
|
|
180
|
-
routeValues: {
|
|
181
|
-
project: project,
|
|
182
|
-
planId: planId
|
|
183
|
-
},
|
|
184
|
-
queryParams: queryValues
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Create a test plan.
|
|
190
|
-
*
|
|
191
|
-
* @param testPlanCreateParams - A testPlanCreateParams object.TestPlanCreateParams
|
|
192
|
-
* @param project - Project ID or project name
|
|
193
|
-
*/
|
|
194
|
-
public async createTestPlan(
|
|
195
|
-
testPlanCreateParams: TestPlan.TestPlanCreateParams,
|
|
196
|
-
project: string
|
|
197
|
-
): Promise<TestPlan.TestPlan> {
|
|
198
|
-
|
|
199
|
-
return this.beginRequest<TestPlan.TestPlan>({
|
|
200
|
-
apiVersion: "7.2-preview.1",
|
|
201
|
-
method: "POST",
|
|
202
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
203
|
-
routeValues: {
|
|
204
|
-
project: project
|
|
205
|
-
},
|
|
206
|
-
body: testPlanCreateParams
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Delete a test plan.
|
|
212
|
-
*
|
|
213
|
-
* @param project - Project ID or project name
|
|
214
|
-
* @param planId - ID of the test plan to be deleted.
|
|
215
|
-
*/
|
|
216
|
-
public async deleteTestPlan(
|
|
217
|
-
project: string,
|
|
218
|
-
planId: number
|
|
219
|
-
): Promise<void> {
|
|
220
|
-
|
|
221
|
-
return this.beginRequest<void>({
|
|
222
|
-
apiVersion: "7.2-preview.1",
|
|
223
|
-
method: "DELETE",
|
|
224
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
225
|
-
routeValues: {
|
|
226
|
-
project: project,
|
|
227
|
-
planId: planId
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Get a test plan by Id.
|
|
234
|
-
*
|
|
235
|
-
* @param project - Project ID or project name
|
|
236
|
-
* @param planId - ID of the test plan to get.
|
|
237
|
-
*/
|
|
238
|
-
public async getTestPlanById(
|
|
239
|
-
project: string,
|
|
240
|
-
planId: number
|
|
241
|
-
): Promise<TestPlan.TestPlan> {
|
|
242
|
-
|
|
243
|
-
return this.beginRequest<TestPlan.TestPlan>({
|
|
244
|
-
apiVersion: "7.2-preview.1",
|
|
245
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
246
|
-
routeValues: {
|
|
247
|
-
project: project,
|
|
248
|
-
planId: planId
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Get a list of test plans
|
|
255
|
-
*
|
|
256
|
-
* @param project - Project ID or project name
|
|
257
|
-
* @param owner - Filter for test plan by owner ID or name
|
|
258
|
-
* @param continuationToken - If the list of plans returned is not complete, a continuation token to query next batch of plans is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test plans.
|
|
259
|
-
* @param includePlanDetails - Get all properties of the test plan
|
|
260
|
-
* @param filterActivePlans - Get just the active plans
|
|
261
|
-
*/
|
|
262
|
-
public async getTestPlans(
|
|
263
|
-
project: string,
|
|
264
|
-
owner?: string,
|
|
265
|
-
continuationToken?: string,
|
|
266
|
-
includePlanDetails?: boolean,
|
|
267
|
-
filterActivePlans?: boolean
|
|
268
|
-
): Promise<WebApi.PagedList<TestPlan.TestPlan>> {
|
|
269
|
-
|
|
270
|
-
const queryValues: any = {
|
|
271
|
-
owner: owner,
|
|
272
|
-
continuationToken: continuationToken,
|
|
273
|
-
includePlanDetails: includePlanDetails,
|
|
274
|
-
filterActivePlans: filterActivePlans
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
return this.beginRequest<Response>({
|
|
278
|
-
apiVersion: "7.2-preview.1",
|
|
279
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
280
|
-
routeValues: {
|
|
281
|
-
project: project
|
|
282
|
-
},
|
|
283
|
-
queryParams: queryValues,
|
|
284
|
-
returnRawResponse: true
|
|
285
|
-
}).then(async response => {
|
|
286
|
-
const body = <WebApi.PagedList<TestPlan.TestPlan>>await response.text().then(deserializeVssJsonObject);
|
|
287
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
288
|
-
return body;
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Update a test plan.
|
|
294
|
-
*
|
|
295
|
-
* @param testPlanUpdateParams - A testPlanUpdateParams object.TestPlanUpdateParams
|
|
296
|
-
* @param project - Project ID or project name
|
|
297
|
-
* @param planId - ID of the test plan to be updated.
|
|
298
|
-
*/
|
|
299
|
-
public async updateTestPlan(
|
|
300
|
-
testPlanUpdateParams: TestPlan.TestPlanUpdateParams,
|
|
301
|
-
project: string,
|
|
302
|
-
planId: number
|
|
303
|
-
): Promise<TestPlan.TestPlan> {
|
|
304
|
-
|
|
305
|
-
return this.beginRequest<TestPlan.TestPlan>({
|
|
306
|
-
apiVersion: "7.2-preview.1",
|
|
307
|
-
method: "PATCH",
|
|
308
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}",
|
|
309
|
-
routeValues: {
|
|
310
|
-
project: project,
|
|
311
|
-
planId: planId
|
|
312
|
-
},
|
|
313
|
-
body: testPlanUpdateParams
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Get a list of test suite entries in the test suite.
|
|
319
|
-
*
|
|
320
|
-
* @param project - Project ID or project name
|
|
321
|
-
* @param suiteId - Id of the parent suite.
|
|
322
|
-
* @param suiteEntryType -
|
|
323
|
-
*/
|
|
324
|
-
public async getSuiteEntries(
|
|
325
|
-
project: string,
|
|
326
|
-
suiteId: number,
|
|
327
|
-
suiteEntryType?: TestPlan.SuiteEntryTypes
|
|
328
|
-
): Promise<TestPlan.SuiteEntry[]> {
|
|
329
|
-
|
|
330
|
-
const queryValues: any = {
|
|
331
|
-
suiteEntryType: suiteEntryType
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
return this.beginRequest<TestPlan.SuiteEntry[]>({
|
|
335
|
-
apiVersion: "7.2-preview.1",
|
|
336
|
-
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
|
|
337
|
-
routeValues: {
|
|
338
|
-
project: project,
|
|
339
|
-
suiteId: suiteId
|
|
340
|
-
},
|
|
341
|
-
queryParams: queryValues
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Reorder test suite entries in the test suite.
|
|
347
|
-
*
|
|
348
|
-
* @param suiteEntries - List of SuiteEntry to reorder.
|
|
349
|
-
* @param project - Project ID or project name
|
|
350
|
-
* @param suiteId - Id of the parent test suite.
|
|
351
|
-
*/
|
|
352
|
-
public async reorderSuiteEntries(
|
|
353
|
-
suiteEntries: TestPlan.SuiteEntryUpdateParams[],
|
|
354
|
-
project: string,
|
|
355
|
-
suiteId: number
|
|
356
|
-
): Promise<TestPlan.SuiteEntry[]> {
|
|
357
|
-
|
|
358
|
-
return this.beginRequest<TestPlan.SuiteEntry[]>({
|
|
359
|
-
apiVersion: "7.2-preview.1",
|
|
360
|
-
method: "PATCH",
|
|
361
|
-
routeTemplate: "{project}/_apis/testplan/SuiteEntry/{suiteId}",
|
|
362
|
-
routeValues: {
|
|
363
|
-
project: project,
|
|
364
|
-
suiteId: suiteId
|
|
365
|
-
},
|
|
366
|
-
body: suiteEntries
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Create bulk requirement based test suites.
|
|
372
|
-
*
|
|
373
|
-
* @param testSuiteCreateParams - Parameters for suite creation
|
|
374
|
-
* @param project - Project ID or project name
|
|
375
|
-
* @param planId - ID of the test plan where requirement based suites need to be created.
|
|
376
|
-
* @param parentSuiteId - ID of the parent suite under which requirement based suites will be created
|
|
377
|
-
*/
|
|
378
|
-
public async createBulkTestSuites(
|
|
379
|
-
testSuiteCreateParams: TestPlan.TestSuiteCreateParams[],
|
|
380
|
-
project: string,
|
|
381
|
-
planId: number,
|
|
382
|
-
parentSuiteId: number
|
|
383
|
-
): Promise<TestPlan.TestSuite[]> {
|
|
384
|
-
|
|
385
|
-
return this.beginRequest<TestPlan.TestSuite[]>({
|
|
386
|
-
apiVersion: "7.2-preview.1",
|
|
387
|
-
method: "POST",
|
|
388
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",
|
|
389
|
-
routeValues: {
|
|
390
|
-
project: project,
|
|
391
|
-
planId: planId,
|
|
392
|
-
parentSuiteId: parentSuiteId
|
|
393
|
-
},
|
|
394
|
-
body: testSuiteCreateParams
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Create test suite.
|
|
400
|
-
*
|
|
401
|
-
* @param testSuiteCreateParams - Parameters for suite creation
|
|
402
|
-
* @param project - Project ID or project name
|
|
403
|
-
* @param planId - ID of the test plan that contains the suites.
|
|
404
|
-
*/
|
|
405
|
-
public async createTestSuite(
|
|
406
|
-
testSuiteCreateParams: TestPlan.TestSuiteCreateParams,
|
|
407
|
-
project: string,
|
|
408
|
-
planId: number
|
|
409
|
-
): Promise<TestPlan.TestSuite> {
|
|
410
|
-
|
|
411
|
-
return this.beginRequest<TestPlan.TestSuite>({
|
|
412
|
-
apiVersion: "7.2-preview.1",
|
|
413
|
-
method: "POST",
|
|
414
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
415
|
-
routeValues: {
|
|
416
|
-
project: project,
|
|
417
|
-
planId: planId
|
|
418
|
-
},
|
|
419
|
-
body: testSuiteCreateParams
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Delete test suite.
|
|
425
|
-
*
|
|
426
|
-
* @param project - Project ID or project name
|
|
427
|
-
* @param planId - ID of the test plan that contains the suite.
|
|
428
|
-
* @param suiteId - ID of the test suite to delete.
|
|
429
|
-
*/
|
|
430
|
-
public async deleteTestSuite(
|
|
431
|
-
project: string,
|
|
432
|
-
planId: number,
|
|
433
|
-
suiteId: number
|
|
434
|
-
): Promise<void> {
|
|
435
|
-
|
|
436
|
-
return this.beginRequest<void>({
|
|
437
|
-
apiVersion: "7.2-preview.1",
|
|
438
|
-
method: "DELETE",
|
|
439
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
440
|
-
routeValues: {
|
|
441
|
-
project: project,
|
|
442
|
-
planId: planId,
|
|
443
|
-
suiteId: suiteId
|
|
444
|
-
}
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* Get test suite by suite id.
|
|
450
|
-
*
|
|
451
|
-
* @param project - Project ID or project name
|
|
452
|
-
* @param planId - ID of the test plan that contains the suites.
|
|
453
|
-
* @param suiteId - ID of the suite to get.
|
|
454
|
-
* @param expand - Include the children suites and testers details
|
|
455
|
-
*/
|
|
456
|
-
public async getTestSuiteById(
|
|
457
|
-
project: string,
|
|
458
|
-
planId: number,
|
|
459
|
-
suiteId: number,
|
|
460
|
-
expand?: TestPlan.SuiteExpand
|
|
461
|
-
): Promise<TestPlan.TestSuite> {
|
|
462
|
-
|
|
463
|
-
const queryValues: any = {
|
|
464
|
-
expand: expand
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
return this.beginRequest<TestPlan.TestSuite>({
|
|
468
|
-
apiVersion: "7.2-preview.1",
|
|
469
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
470
|
-
routeValues: {
|
|
471
|
-
project: project,
|
|
472
|
-
planId: planId,
|
|
473
|
-
suiteId: suiteId
|
|
474
|
-
},
|
|
475
|
-
queryParams: queryValues
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Get test suites for plan.
|
|
481
|
-
*
|
|
482
|
-
* @param project - Project ID or project name
|
|
483
|
-
* @param planId - ID of the test plan for which suites are requested.
|
|
484
|
-
* @param expand - Include the children suites and testers details.
|
|
485
|
-
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
|
|
486
|
-
* @param asTreeView - If the suites returned should be in a tree structure.
|
|
487
|
-
*/
|
|
488
|
-
public async getTestSuitesForPlan(
|
|
489
|
-
project: string,
|
|
490
|
-
planId: number,
|
|
491
|
-
expand?: TestPlan.SuiteExpand,
|
|
492
|
-
continuationToken?: string,
|
|
493
|
-
asTreeView?: boolean
|
|
494
|
-
): Promise<WebApi.PagedList<TestPlan.TestSuite>> {
|
|
495
|
-
|
|
496
|
-
const queryValues: any = {
|
|
497
|
-
expand: expand,
|
|
498
|
-
continuationToken: continuationToken,
|
|
499
|
-
asTreeView: asTreeView
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
return this.beginRequest<Response>({
|
|
503
|
-
apiVersion: "7.2-preview.1",
|
|
504
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
505
|
-
routeValues: {
|
|
506
|
-
project: project,
|
|
507
|
-
planId: planId
|
|
508
|
-
},
|
|
509
|
-
queryParams: queryValues,
|
|
510
|
-
returnRawResponse: true
|
|
511
|
-
}).then(async response => {
|
|
512
|
-
const body = <WebApi.PagedList<TestPlan.TestSuite>>await response.text().then(deserializeVssJsonObject);
|
|
513
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
514
|
-
return body;
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Update test suite.
|
|
520
|
-
*
|
|
521
|
-
* @param testSuiteUpdateParams - Parameters for suite updation
|
|
522
|
-
* @param project - Project ID or project name
|
|
523
|
-
* @param planId - ID of the test plan that contains the suites.
|
|
524
|
-
* @param suiteId - ID of the parent suite.
|
|
525
|
-
*/
|
|
526
|
-
public async updateTestSuite(
|
|
527
|
-
testSuiteUpdateParams: TestPlan.TestSuiteUpdateParams,
|
|
528
|
-
project: string,
|
|
529
|
-
planId: number,
|
|
530
|
-
suiteId: number
|
|
531
|
-
): Promise<TestPlan.TestSuite> {
|
|
532
|
-
|
|
533
|
-
return this.beginRequest<TestPlan.TestSuite>({
|
|
534
|
-
apiVersion: "7.2-preview.1",
|
|
535
|
-
method: "PATCH",
|
|
536
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",
|
|
537
|
-
routeValues: {
|
|
538
|
-
project: project,
|
|
539
|
-
planId: planId,
|
|
540
|
-
suiteId: suiteId
|
|
541
|
-
},
|
|
542
|
-
body: testSuiteUpdateParams
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Find the list of all test suites in which a given test case is present. This is helpful if you need to find out which test suites are using a test case, when you need to make changes to a test case.
|
|
548
|
-
*
|
|
549
|
-
* @param testCaseId - ID of the test case for which suites need to be fetched.
|
|
550
|
-
*/
|
|
551
|
-
public async getSuitesByTestCaseId(
|
|
552
|
-
testCaseId: number
|
|
553
|
-
): Promise<TestPlan.TestSuite[]> {
|
|
554
|
-
|
|
555
|
-
const queryValues: any = {
|
|
556
|
-
testCaseId: testCaseId
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
return this.beginRequest<TestPlan.TestSuite[]>({
|
|
560
|
-
apiVersion: "7.2-preview.1",
|
|
561
|
-
routeTemplate: "_apis/testplan/Suites",
|
|
562
|
-
queryParams: queryValues
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Add test cases to a suite with specified configurations
|
|
568
|
-
*
|
|
569
|
-
* @param suiteTestCaseCreateUpdateParameters - SuiteTestCaseCreateUpdateParameters object.
|
|
570
|
-
* @param project - Project ID or project name
|
|
571
|
-
* @param planId - ID of the test plan to which test cases are to be added.
|
|
572
|
-
* @param suiteId - ID of the test suite to which test cases are to be added.
|
|
573
|
-
*/
|
|
574
|
-
public async addTestCasesToSuite(
|
|
575
|
-
suiteTestCaseCreateUpdateParameters: TestPlan.SuiteTestCaseCreateUpdateParameters[],
|
|
576
|
-
project: string,
|
|
577
|
-
planId: number,
|
|
578
|
-
suiteId: number
|
|
579
|
-
): Promise<TestPlan.TestCase[]> {
|
|
580
|
-
|
|
581
|
-
return this.beginRequest<TestPlan.TestCase[]>({
|
|
582
|
-
apiVersion: "7.2-preview.3",
|
|
583
|
-
method: "POST",
|
|
584
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
585
|
-
routeValues: {
|
|
586
|
-
project: project,
|
|
587
|
-
planId: planId,
|
|
588
|
-
suiteId: suiteId
|
|
589
|
-
},
|
|
590
|
-
body: suiteTestCaseCreateUpdateParameters
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
/**
|
|
595
|
-
* Get a particular Test Case from a Suite.
|
|
596
|
-
*
|
|
597
|
-
* @param project - Project ID or project name
|
|
598
|
-
* @param planId - ID of the test plan for which test cases are requested.
|
|
599
|
-
* @param suiteId - ID of the test suite for which test cases are requested.
|
|
600
|
-
* @param testCaseId - Test Case Id to be fetched.
|
|
601
|
-
* @param witFields - Get the list of witFields.
|
|
602
|
-
* @param returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
|
|
603
|
-
*/
|
|
604
|
-
public async getTestCase(
|
|
605
|
-
project: string,
|
|
606
|
-
planId: number,
|
|
607
|
-
suiteId: number,
|
|
608
|
-
testCaseId: string,
|
|
609
|
-
witFields?: string,
|
|
610
|
-
returnIdentityRef?: boolean
|
|
611
|
-
): Promise<TestPlan.TestCase[]> {
|
|
612
|
-
|
|
613
|
-
const queryValues: any = {
|
|
614
|
-
witFields: witFields,
|
|
615
|
-
returnIdentityRef: returnIdentityRef
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
return this.beginRequest<TestPlan.TestCase[]>({
|
|
619
|
-
apiVersion: "7.2-preview.3",
|
|
620
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
621
|
-
routeValues: {
|
|
622
|
-
project: project,
|
|
623
|
-
planId: planId,
|
|
624
|
-
suiteId: suiteId,
|
|
625
|
-
testCaseId: testCaseId
|
|
626
|
-
},
|
|
627
|
-
queryParams: queryValues
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Get Test Case List return those test cases which have all the configuration Ids as mentioned in the optional parameter. If configuration Ids is null, it return all the test cases
|
|
633
|
-
*
|
|
634
|
-
* @param project - Project ID or project name
|
|
635
|
-
* @param planId - ID of the test plan for which test cases are requested.
|
|
636
|
-
* @param suiteId - ID of the test suite for which test cases are requested.
|
|
637
|
-
* @param testIds - Test Case Ids to be fetched.
|
|
638
|
-
* @param configurationIds - Fetch Test Cases which contains all the configuration Ids specified.
|
|
639
|
-
* @param witFields - Get the list of witFields.
|
|
640
|
-
* @param continuationToken - If the list of test cases returned is not complete, a continuation token to query next batch of test cases is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test cases.
|
|
641
|
-
* @param returnIdentityRef - If set to true, returns all identity fields, like AssignedTo, ActivatedBy etc., as IdentityRef objects. If set to false, these fields are returned as unique names in string format. This is false by default.
|
|
642
|
-
* @param expand - If set to false, will get a smaller payload containing only basic details about the suite test case object
|
|
643
|
-
* @param excludeFlags - Flag to exclude various values from payload. For example to remove point assignments pass exclude = 1. To remove extra information (links, test plan , test suite) pass exclude = 2. To remove both extra information and point assignments pass exclude = 3 (1 + 2).
|
|
644
|
-
* @param isRecursive -
|
|
645
|
-
*/
|
|
646
|
-
public async getTestCaseList(
|
|
647
|
-
project: string,
|
|
648
|
-
planId: number,
|
|
649
|
-
suiteId: number,
|
|
650
|
-
testIds?: string,
|
|
651
|
-
configurationIds?: string,
|
|
652
|
-
witFields?: string,
|
|
653
|
-
continuationToken?: string,
|
|
654
|
-
returnIdentityRef?: boolean,
|
|
655
|
-
expand?: boolean,
|
|
656
|
-
excludeFlags?: TestPlan.ExcludeFlags,
|
|
657
|
-
isRecursive?: boolean
|
|
658
|
-
): Promise<WebApi.PagedList<TestPlan.TestCase>> {
|
|
659
|
-
|
|
660
|
-
const queryValues: any = {
|
|
661
|
-
testIds: testIds,
|
|
662
|
-
configurationIds: configurationIds,
|
|
663
|
-
witFields: witFields,
|
|
664
|
-
continuationToken: continuationToken,
|
|
665
|
-
returnIdentityRef: returnIdentityRef,
|
|
666
|
-
expand: expand,
|
|
667
|
-
excludeFlags: excludeFlags,
|
|
668
|
-
isRecursive: isRecursive
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
return this.beginRequest<Response>({
|
|
672
|
-
apiVersion: "7.2-preview.3",
|
|
673
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
674
|
-
routeValues: {
|
|
675
|
-
project: project,
|
|
676
|
-
planId: planId,
|
|
677
|
-
suiteId: suiteId
|
|
678
|
-
},
|
|
679
|
-
queryParams: queryValues,
|
|
680
|
-
returnRawResponse: true
|
|
681
|
-
}).then(async response => {
|
|
682
|
-
const body = <WebApi.PagedList<TestPlan.TestCase>>await response.text().then(deserializeVssJsonObject);
|
|
683
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
684
|
-
return body;
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Removes test cases from a suite based on the list of test case Ids provided.
|
|
690
|
-
*
|
|
691
|
-
* @param project - Project ID or project name
|
|
692
|
-
* @param planId - ID of the test plan from which test cases are to be removed.
|
|
693
|
-
* @param suiteId - ID of the test suite from which test cases are to be removed.
|
|
694
|
-
* @param testCaseIds - Test Case Ids to be removed.
|
|
695
|
-
*/
|
|
696
|
-
public async removeTestCasesFromSuite(
|
|
697
|
-
project: string,
|
|
698
|
-
planId: number,
|
|
699
|
-
suiteId: number,
|
|
700
|
-
testCaseIds: string
|
|
701
|
-
): Promise<void> {
|
|
702
|
-
|
|
703
|
-
const queryValues: any = {
|
|
704
|
-
testCaseIds: testCaseIds
|
|
705
|
-
};
|
|
706
|
-
|
|
707
|
-
return this.beginRequest<void>({
|
|
708
|
-
apiVersion: "7.2-preview.3",
|
|
709
|
-
method: "DELETE",
|
|
710
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
711
|
-
routeValues: {
|
|
712
|
-
project: project,
|
|
713
|
-
planId: planId,
|
|
714
|
-
suiteId: suiteId
|
|
715
|
-
},
|
|
716
|
-
queryParams: queryValues
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* Removes test cases from a suite based on the list of test case Ids provided. This API can be used to remove a larger number of test cases.
|
|
722
|
-
*
|
|
723
|
-
* @param project - Project ID or project name
|
|
724
|
-
* @param planId - ID of the test plan from which test cases are to be removed.
|
|
725
|
-
* @param suiteId - ID of the test suite from which test cases are to be removed.
|
|
726
|
-
* @param testIds - Comma separated string of Test Case Ids to be removed.
|
|
727
|
-
*/
|
|
728
|
-
public async removeTestCasesListFromSuite(
|
|
729
|
-
project: string,
|
|
730
|
-
planId: number,
|
|
731
|
-
suiteId: number,
|
|
732
|
-
testIds: string
|
|
733
|
-
): Promise<void> {
|
|
734
|
-
|
|
735
|
-
const queryValues: any = {
|
|
736
|
-
testIds: testIds
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
return this.beginRequest<void>({
|
|
740
|
-
apiVersion: "7.2-preview.3",
|
|
741
|
-
method: "DELETE",
|
|
742
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
743
|
-
routeValues: {
|
|
744
|
-
project: project,
|
|
745
|
-
planId: planId,
|
|
746
|
-
suiteId: suiteId
|
|
747
|
-
},
|
|
748
|
-
queryParams: queryValues
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* Update the configurations for test cases
|
|
754
|
-
*
|
|
755
|
-
* @param suiteTestCaseCreateUpdateParameters - A SuiteTestCaseCreateUpdateParameters object.
|
|
756
|
-
* @param project - Project ID or project name
|
|
757
|
-
* @param planId - ID of the test plan to which test cases are to be updated.
|
|
758
|
-
* @param suiteId - ID of the test suite to which test cases are to be updated.
|
|
759
|
-
*/
|
|
760
|
-
public async updateSuiteTestCases(
|
|
761
|
-
suiteTestCaseCreateUpdateParameters: TestPlan.SuiteTestCaseCreateUpdateParameters[],
|
|
762
|
-
project: string,
|
|
763
|
-
planId: number,
|
|
764
|
-
suiteId: number
|
|
765
|
-
): Promise<TestPlan.TestCase[]> {
|
|
766
|
-
|
|
767
|
-
return this.beginRequest<TestPlan.TestCase[]>({
|
|
768
|
-
apiVersion: "7.2-preview.3",
|
|
769
|
-
method: "PATCH",
|
|
770
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",
|
|
771
|
-
routeValues: {
|
|
772
|
-
project: project,
|
|
773
|
-
planId: planId,
|
|
774
|
-
suiteId: suiteId
|
|
775
|
-
},
|
|
776
|
-
body: suiteTestCaseCreateUpdateParameters
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* @param cloneRequestBody -
|
|
782
|
-
* @param project - Project ID or project name
|
|
783
|
-
*/
|
|
784
|
-
public async cloneTestCase(
|
|
785
|
-
cloneRequestBody: TestPlan.CloneTestCaseParams,
|
|
786
|
-
project: string
|
|
787
|
-
): Promise<TestPlan.CloneTestCaseOperationInformation> {
|
|
788
|
-
|
|
789
|
-
return this.beginRequest<TestPlan.CloneTestCaseOperationInformation>({
|
|
790
|
-
apiVersion: "7.2-preview.2",
|
|
791
|
-
method: "POST",
|
|
792
|
-
routeTemplate: "{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",
|
|
793
|
-
routeValues: {
|
|
794
|
-
project: project
|
|
795
|
-
},
|
|
796
|
-
body: cloneRequestBody
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* Get clone information.
|
|
802
|
-
*
|
|
803
|
-
* @param project - Project ID or project name
|
|
804
|
-
* @param cloneOperationId - Operation ID returned when we queue a clone operation
|
|
805
|
-
*/
|
|
806
|
-
public async getTestCaseCloneInformation(
|
|
807
|
-
project: string,
|
|
808
|
-
cloneOperationId: number
|
|
809
|
-
): Promise<TestPlan.CloneTestCaseOperationInformation> {
|
|
810
|
-
|
|
811
|
-
return this.beginRequest<TestPlan.CloneTestCaseOperationInformation>({
|
|
812
|
-
apiVersion: "7.2-preview.2",
|
|
813
|
-
routeTemplate: "{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",
|
|
814
|
-
routeValues: {
|
|
815
|
-
project: project,
|
|
816
|
-
cloneOperationId: cloneOperationId
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* Exports a set of test cases from a suite to a file. Currently supported formats: xlsx
|
|
823
|
-
*
|
|
824
|
-
* @param exportTestCaseRequestBody - A ExportTestCaseParams object.ExportTestCaseParams
|
|
825
|
-
* @param project - Project ID or project name
|
|
826
|
-
*/
|
|
827
|
-
public async exportTestCases(
|
|
828
|
-
exportTestCaseRequestBody: TestPlan.ExportTestCaseParams,
|
|
829
|
-
project: string
|
|
830
|
-
): Promise<ArrayBuffer> {
|
|
831
|
-
|
|
832
|
-
return this.beginRequest<ArrayBuffer>({
|
|
833
|
-
apiVersion: "7.2-preview.1",
|
|
834
|
-
method: "POST",
|
|
835
|
-
httpResponseType: "application/octet-stream",
|
|
836
|
-
routeTemplate: "{project}/_apis/testplan/TestCases/TestCaseFile",
|
|
837
|
-
routeValues: {
|
|
838
|
-
project: project
|
|
839
|
-
},
|
|
840
|
-
body: exportTestCaseRequestBody
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Delete a test case.
|
|
846
|
-
*
|
|
847
|
-
* @param project - Project ID or project name
|
|
848
|
-
* @param testCaseId - Id of test case to be deleted.
|
|
849
|
-
*/
|
|
850
|
-
public async deleteTestCase(
|
|
851
|
-
project: string,
|
|
852
|
-
testCaseId: number
|
|
853
|
-
): Promise<void> {
|
|
854
|
-
|
|
855
|
-
return this.beginRequest<void>({
|
|
856
|
-
apiVersion: "7.2-preview.1",
|
|
857
|
-
method: "DELETE",
|
|
858
|
-
routeTemplate: "{project}/_apis/testplan/TestCases/{testCaseId}",
|
|
859
|
-
routeValues: {
|
|
860
|
-
project: project,
|
|
861
|
-
testCaseId: testCaseId
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/**
|
|
867
|
-
* Get a list of deleted test plans
|
|
868
|
-
*
|
|
869
|
-
* @param project - Project ID or project name
|
|
870
|
-
* @param continuationToken - If the list of plans returned is not complete, a continuation token to query next batch of plans is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test plans.
|
|
871
|
-
*/
|
|
872
|
-
public async getDeletedTestPlans(
|
|
873
|
-
project: string,
|
|
874
|
-
continuationToken?: string
|
|
875
|
-
): Promise<WebApi.PagedList<TestPlan.TestPlan>> {
|
|
876
|
-
|
|
877
|
-
const queryValues: any = {
|
|
878
|
-
continuationToken: continuationToken
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
return this.beginRequest<Response>({
|
|
882
|
-
apiVersion: "7.2-preview.1",
|
|
883
|
-
routeTemplate: "{project}/_apis/testplan/recycleBin/TestPlan/{planId}",
|
|
884
|
-
routeValues: {
|
|
885
|
-
project: project
|
|
886
|
-
},
|
|
887
|
-
queryParams: queryValues,
|
|
888
|
-
returnRawResponse: true
|
|
889
|
-
}).then(async response => {
|
|
890
|
-
const body = <WebApi.PagedList<TestPlan.TestPlan>>await response.text().then(deserializeVssJsonObject);
|
|
891
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
892
|
-
return body;
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Restores the deleted test plan
|
|
898
|
-
*
|
|
899
|
-
* @param restoreModel - The model containing the restore information
|
|
900
|
-
* @param project - Project ID or project name
|
|
901
|
-
* @param planId - The ID of the test plan to restore
|
|
902
|
-
*/
|
|
903
|
-
public async restoreDeletedTestPlan(
|
|
904
|
-
restoreModel: TestPlan.TestPlanAndSuiteRestoreModel,
|
|
905
|
-
project: string,
|
|
906
|
-
planId: number
|
|
907
|
-
): Promise<void> {
|
|
908
|
-
|
|
909
|
-
return this.beginRequest<void>({
|
|
910
|
-
apiVersion: "7.2-preview.1",
|
|
911
|
-
method: "PATCH",
|
|
912
|
-
routeTemplate: "{project}/_apis/testplan/recycleBin/TestPlan/{planId}",
|
|
913
|
-
routeValues: {
|
|
914
|
-
project: project,
|
|
915
|
-
planId: planId
|
|
916
|
-
},
|
|
917
|
-
body: restoreModel
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
* Clone test plan
|
|
923
|
-
*
|
|
924
|
-
* @param cloneRequestBody - Plan Clone Request Body detail TestPlanCloneRequest
|
|
925
|
-
* @param project - Project ID or project name
|
|
926
|
-
* @param deepClone - Clones all the associated test cases as well
|
|
927
|
-
*/
|
|
928
|
-
public async cloneTestPlan(
|
|
929
|
-
cloneRequestBody: TestPlan.CloneTestPlanParams,
|
|
930
|
-
project: string,
|
|
931
|
-
deepClone?: boolean
|
|
932
|
-
): Promise<TestPlan.CloneTestPlanOperationInformation> {
|
|
933
|
-
|
|
934
|
-
const queryValues: any = {
|
|
935
|
-
deepClone: deepClone
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
return this.beginRequest<TestPlan.CloneTestPlanOperationInformation>({
|
|
939
|
-
apiVersion: "7.2-preview.2",
|
|
940
|
-
method: "POST",
|
|
941
|
-
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
|
|
942
|
-
routeValues: {
|
|
943
|
-
project: project
|
|
944
|
-
},
|
|
945
|
-
queryParams: queryValues,
|
|
946
|
-
body: cloneRequestBody
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Get clone information.
|
|
952
|
-
*
|
|
953
|
-
* @param project - Project ID or project name
|
|
954
|
-
* @param cloneOperationId - Operation ID returned when we queue a clone operation
|
|
955
|
-
*/
|
|
956
|
-
public async getCloneInformation(
|
|
957
|
-
project: string,
|
|
958
|
-
cloneOperationId: number
|
|
959
|
-
): Promise<TestPlan.CloneTestPlanOperationInformation> {
|
|
960
|
-
|
|
961
|
-
return this.beginRequest<TestPlan.CloneTestPlanOperationInformation>({
|
|
962
|
-
apiVersion: "7.2-preview.2",
|
|
963
|
-
routeTemplate: "{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",
|
|
964
|
-
routeValues: {
|
|
965
|
-
project: project,
|
|
966
|
-
cloneOperationId: cloneOperationId
|
|
967
|
-
}
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
/**
|
|
972
|
-
* Get a particular Test Point from a suite.
|
|
973
|
-
*
|
|
974
|
-
* @param project - Project ID or project name
|
|
975
|
-
* @param planId - ID of the test plan for which test points are requested.
|
|
976
|
-
* @param suiteId - ID of the test suite for which test points are requested.
|
|
977
|
-
* @param pointId - ID of test point to be fetched.
|
|
978
|
-
* @param returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
|
|
979
|
-
* @param includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
|
|
980
|
-
*/
|
|
981
|
-
public async getPoints(
|
|
982
|
-
project: string,
|
|
983
|
-
planId: number,
|
|
984
|
-
suiteId: number,
|
|
985
|
-
pointId: string,
|
|
986
|
-
returnIdentityRef?: boolean,
|
|
987
|
-
includePointDetails?: boolean
|
|
988
|
-
): Promise<TestPlan.TestPoint[]> {
|
|
989
|
-
|
|
990
|
-
const queryValues: any = {
|
|
991
|
-
pointId: pointId,
|
|
992
|
-
returnIdentityRef: returnIdentityRef,
|
|
993
|
-
includePointDetails: includePointDetails
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
return this.beginRequest<TestPlan.TestPoint[]>({
|
|
997
|
-
apiVersion: "7.2-preview.2",
|
|
998
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
999
|
-
routeValues: {
|
|
1000
|
-
project: project,
|
|
1001
|
-
planId: planId,
|
|
1002
|
-
suiteId: suiteId
|
|
1003
|
-
},
|
|
1004
|
-
queryParams: queryValues
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* Get all the points inside a suite based on some filters
|
|
1010
|
-
*
|
|
1011
|
-
* @param project - Project ID or project name
|
|
1012
|
-
* @param planId - ID of the test plan for which test points are requested.
|
|
1013
|
-
* @param suiteId - ID of the test suite for which test points are requested
|
|
1014
|
-
* @param testPointIds - ID of test points to fetch.
|
|
1015
|
-
* @param testCaseId - Get Test Points for specific test case Ids.
|
|
1016
|
-
* @param continuationToken - If the list of test point returned is not complete, a continuation token to query next batch of test points is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test points.
|
|
1017
|
-
* @param returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
|
|
1018
|
-
* @param includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
|
|
1019
|
-
* @param isRecursive - If set to true, will also fetch test points belonging to child suites recursively.
|
|
1020
|
-
*/
|
|
1021
|
-
public async getPointsList(
|
|
1022
|
-
project: string,
|
|
1023
|
-
planId: number,
|
|
1024
|
-
suiteId: number,
|
|
1025
|
-
testPointIds?: string,
|
|
1026
|
-
testCaseId?: string,
|
|
1027
|
-
continuationToken?: string,
|
|
1028
|
-
returnIdentityRef?: boolean,
|
|
1029
|
-
includePointDetails?: boolean,
|
|
1030
|
-
isRecursive?: boolean
|
|
1031
|
-
): Promise<WebApi.PagedList<TestPlan.TestPoint>> {
|
|
1032
|
-
|
|
1033
|
-
const queryValues: any = {
|
|
1034
|
-
testPointIds: testPointIds,
|
|
1035
|
-
testCaseId: testCaseId,
|
|
1036
|
-
continuationToken: continuationToken,
|
|
1037
|
-
returnIdentityRef: returnIdentityRef,
|
|
1038
|
-
includePointDetails: includePointDetails,
|
|
1039
|
-
isRecursive: isRecursive
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
return this.beginRequest<Response>({
|
|
1043
|
-
apiVersion: "7.2-preview.2",
|
|
1044
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
1045
|
-
routeValues: {
|
|
1046
|
-
project: project,
|
|
1047
|
-
planId: planId,
|
|
1048
|
-
suiteId: suiteId
|
|
1049
|
-
},
|
|
1050
|
-
queryParams: queryValues,
|
|
1051
|
-
returnRawResponse: true
|
|
1052
|
-
}).then(async response => {
|
|
1053
|
-
const body = <WebApi.PagedList<TestPlan.TestPoint>>await response.text().then(deserializeVssJsonObject);
|
|
1054
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1055
|
-
return body;
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* Update Test Points. This is used to Reset test point to active, update the outcome of a test point or update the tester of a test point
|
|
1061
|
-
*
|
|
1062
|
-
* @param testPointUpdateParams - A TestPointUpdateParams Object.
|
|
1063
|
-
* @param project - Project ID or project name
|
|
1064
|
-
* @param planId - ID of the test plan for which test points are requested.
|
|
1065
|
-
* @param suiteId - ID of the test suite for which test points are requested.
|
|
1066
|
-
* @param includePointDetails - If set to false, will get a smaller payload containing only basic details about the test point object
|
|
1067
|
-
* @param returnIdentityRef - If set to true, returns the AssignedTo field in TestCaseReference as IdentityRef object.
|
|
1068
|
-
*/
|
|
1069
|
-
public async updateTestPoints(
|
|
1070
|
-
testPointUpdateParams: TestPlan.TestPointUpdateParams[],
|
|
1071
|
-
project: string,
|
|
1072
|
-
planId: number,
|
|
1073
|
-
suiteId: number,
|
|
1074
|
-
includePointDetails?: boolean,
|
|
1075
|
-
returnIdentityRef?: boolean
|
|
1076
|
-
): Promise<TestPlan.TestPoint[]> {
|
|
1077
|
-
|
|
1078
|
-
const queryValues: any = {
|
|
1079
|
-
includePointDetails: includePointDetails,
|
|
1080
|
-
returnIdentityRef: returnIdentityRef
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
return this.beginRequest<TestPlan.TestPoint[]>({
|
|
1084
|
-
apiVersion: "7.2-preview.2",
|
|
1085
|
-
method: "PATCH",
|
|
1086
|
-
routeTemplate: "{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",
|
|
1087
|
-
routeValues: {
|
|
1088
|
-
project: project,
|
|
1089
|
-
planId: planId,
|
|
1090
|
-
suiteId: suiteId
|
|
1091
|
-
},
|
|
1092
|
-
queryParams: queryValues,
|
|
1093
|
-
body: testPointUpdateParams
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* Get Deleted Test Suites for a Test Plan.
|
|
1099
|
-
*
|
|
1100
|
-
* @param project - Project ID or project name
|
|
1101
|
-
* @param planId - ID of the test plan for which suites are requested.
|
|
1102
|
-
* @param expand - Include the children suites and testers details.
|
|
1103
|
-
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
|
|
1104
|
-
* @param asTreeView - If the suites returned should be in a tree structure.
|
|
1105
|
-
*/
|
|
1106
|
-
public async getDeletedTestSuitesForPlan(
|
|
1107
|
-
project: string,
|
|
1108
|
-
planId: number,
|
|
1109
|
-
expand?: TestPlan.SuiteExpand,
|
|
1110
|
-
continuationToken?: string,
|
|
1111
|
-
asTreeView?: boolean
|
|
1112
|
-
): Promise<WebApi.PagedList<TestPlan.TestSuite>> {
|
|
1113
|
-
|
|
1114
|
-
const queryValues: any = {
|
|
1115
|
-
expand: expand,
|
|
1116
|
-
continuationToken: continuationToken,
|
|
1117
|
-
asTreeView: asTreeView
|
|
1118
|
-
};
|
|
1119
|
-
|
|
1120
|
-
return this.beginRequest<Response>({
|
|
1121
|
-
apiVersion: "7.2-preview.1",
|
|
1122
|
-
routeTemplate: "{project}/_apis/testplan/recycleBin/TestPlan/{planId}/TestSuite/{suiteId}",
|
|
1123
|
-
routeValues: {
|
|
1124
|
-
project: project,
|
|
1125
|
-
planId: planId
|
|
1126
|
-
},
|
|
1127
|
-
queryParams: queryValues,
|
|
1128
|
-
returnRawResponse: true
|
|
1129
|
-
}).then(async response => {
|
|
1130
|
-
const body = <WebApi.PagedList<TestPlan.TestSuite>>await response.text().then(deserializeVssJsonObject);
|
|
1131
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1132
|
-
return body;
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Get Deleted Test Suites within a Project.
|
|
1138
|
-
*
|
|
1139
|
-
* @param project - Project ID or project name
|
|
1140
|
-
* @param expand - Include the children suites and testers details.
|
|
1141
|
-
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
|
|
1142
|
-
* @param asTreeView - If the suites returned should be in a tree structure.
|
|
1143
|
-
*/
|
|
1144
|
-
public async getDeletedTestSuitesForProject(
|
|
1145
|
-
project: string,
|
|
1146
|
-
expand?: TestPlan.SuiteExpand,
|
|
1147
|
-
continuationToken?: string,
|
|
1148
|
-
asTreeView?: boolean
|
|
1149
|
-
): Promise<WebApi.PagedList<TestPlan.TestSuite>> {
|
|
1150
|
-
|
|
1151
|
-
const queryValues: any = {
|
|
1152
|
-
expand: expand,
|
|
1153
|
-
continuationToken: continuationToken,
|
|
1154
|
-
asTreeView: asTreeView
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
return this.beginRequest<Response>({
|
|
1158
|
-
apiVersion: "7.2-preview.1",
|
|
1159
|
-
routeTemplate: "{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",
|
|
1160
|
-
routeValues: {
|
|
1161
|
-
project: project
|
|
1162
|
-
},
|
|
1163
|
-
queryParams: queryValues,
|
|
1164
|
-
returnRawResponse: true
|
|
1165
|
-
}).then(async response => {
|
|
1166
|
-
const body = <WebApi.PagedList<TestPlan.TestSuite>>await response.text().then(deserializeVssJsonObject);
|
|
1167
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1168
|
-
return body;
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* Restores the deleted test suite
|
|
1174
|
-
*
|
|
1175
|
-
* @param payload - The model containing the restore information
|
|
1176
|
-
* @param project - Project ID or project name
|
|
1177
|
-
* @param suiteId - The ID of the test suite to restore
|
|
1178
|
-
*/
|
|
1179
|
-
public async restoreDeletedTestSuite(
|
|
1180
|
-
payload: TestPlan.TestPlanAndSuiteRestoreModel,
|
|
1181
|
-
project: string,
|
|
1182
|
-
suiteId: number
|
|
1183
|
-
): Promise<void> {
|
|
1184
|
-
|
|
1185
|
-
return this.beginRequest<void>({
|
|
1186
|
-
apiVersion: "7.2-preview.1",
|
|
1187
|
-
method: "PATCH",
|
|
1188
|
-
routeTemplate: "{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",
|
|
1189
|
-
routeValues: {
|
|
1190
|
-
project: project,
|
|
1191
|
-
suiteId: suiteId
|
|
1192
|
-
},
|
|
1193
|
-
body: payload
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* Clone test suite
|
|
1199
|
-
*
|
|
1200
|
-
* @param cloneRequestBody - Suite Clone Request Body detail TestSuiteCloneRequest
|
|
1201
|
-
* @param project - Project ID or project name
|
|
1202
|
-
* @param deepClone - Clones all the associated test cases as well
|
|
1203
|
-
*/
|
|
1204
|
-
public async cloneTestSuite(
|
|
1205
|
-
cloneRequestBody: TestPlan.CloneTestSuiteParams,
|
|
1206
|
-
project: string,
|
|
1207
|
-
deepClone?: boolean
|
|
1208
|
-
): Promise<TestPlan.CloneTestSuiteOperationInformation> {
|
|
1209
|
-
|
|
1210
|
-
const queryValues: any = {
|
|
1211
|
-
deepClone: deepClone
|
|
1212
|
-
};
|
|
1213
|
-
|
|
1214
|
-
return this.beginRequest<TestPlan.CloneTestSuiteOperationInformation>({
|
|
1215
|
-
apiVersion: "7.2-preview.2",
|
|
1216
|
-
method: "POST",
|
|
1217
|
-
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
|
|
1218
|
-
routeValues: {
|
|
1219
|
-
project: project
|
|
1220
|
-
},
|
|
1221
|
-
queryParams: queryValues,
|
|
1222
|
-
body: cloneRequestBody
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* Get clone information.
|
|
1228
|
-
*
|
|
1229
|
-
* @param project - Project ID or project name
|
|
1230
|
-
* @param cloneOperationId - Operation ID returned when we queue a clone operation
|
|
1231
|
-
*/
|
|
1232
|
-
public async getSuiteCloneInformation(
|
|
1233
|
-
project: string,
|
|
1234
|
-
cloneOperationId: number
|
|
1235
|
-
): Promise<TestPlan.CloneTestSuiteOperationInformation> {
|
|
1236
|
-
|
|
1237
|
-
return this.beginRequest<TestPlan.CloneTestSuiteOperationInformation>({
|
|
1238
|
-
apiVersion: "7.2-preview.2",
|
|
1239
|
-
routeTemplate: "{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",
|
|
1240
|
-
routeValues: {
|
|
1241
|
-
project: project,
|
|
1242
|
-
cloneOperationId: cloneOperationId
|
|
1243
|
-
}
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Create a test variable.
|
|
1249
|
-
*
|
|
1250
|
-
* @param testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
|
|
1251
|
-
* @param project - Project ID or project name
|
|
1252
|
-
*/
|
|
1253
|
-
public async createTestVariable(
|
|
1254
|
-
testVariableCreateUpdateParameters: TestPlan.TestVariableCreateUpdateParameters,
|
|
1255
|
-
project: string
|
|
1256
|
-
): Promise<TestPlan.TestVariable> {
|
|
1257
|
-
|
|
1258
|
-
return this.beginRequest<TestPlan.TestVariable>({
|
|
1259
|
-
apiVersion: "7.2-preview.1",
|
|
1260
|
-
method: "POST",
|
|
1261
|
-
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
1262
|
-
routeValues: {
|
|
1263
|
-
project: project
|
|
1264
|
-
},
|
|
1265
|
-
body: testVariableCreateUpdateParameters
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* Delete a test variable by its ID.
|
|
1271
|
-
*
|
|
1272
|
-
* @param project - Project ID or project name
|
|
1273
|
-
* @param testVariableId - ID of the test variable to delete.
|
|
1274
|
-
*/
|
|
1275
|
-
public async deleteTestVariable(
|
|
1276
|
-
project: string,
|
|
1277
|
-
testVariableId: number
|
|
1278
|
-
): Promise<void> {
|
|
1279
|
-
|
|
1280
|
-
return this.beginRequest<void>({
|
|
1281
|
-
apiVersion: "7.2-preview.1",
|
|
1282
|
-
method: "DELETE",
|
|
1283
|
-
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
1284
|
-
routeValues: {
|
|
1285
|
-
project: project,
|
|
1286
|
-
testVariableId: testVariableId
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* Get a test variable by its ID.
|
|
1293
|
-
*
|
|
1294
|
-
* @param project - Project ID or project name
|
|
1295
|
-
* @param testVariableId - ID of the test variable to get.
|
|
1296
|
-
*/
|
|
1297
|
-
public async getTestVariableById(
|
|
1298
|
-
project: string,
|
|
1299
|
-
testVariableId: number
|
|
1300
|
-
): Promise<TestPlan.TestVariable> {
|
|
1301
|
-
|
|
1302
|
-
return this.beginRequest<TestPlan.TestVariable>({
|
|
1303
|
-
apiVersion: "7.2-preview.1",
|
|
1304
|
-
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
1305
|
-
routeValues: {
|
|
1306
|
-
project: project,
|
|
1307
|
-
testVariableId: testVariableId
|
|
1308
|
-
}
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
/**
|
|
1313
|
-
* Get a list of test variables.
|
|
1314
|
-
*
|
|
1315
|
-
* @param project - Project ID or project name
|
|
1316
|
-
* @param continuationToken - If the list of variables returned is not complete, a continuation token to query next batch of variables is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test variables.
|
|
1317
|
-
*/
|
|
1318
|
-
public async getTestVariables(
|
|
1319
|
-
project: string,
|
|
1320
|
-
continuationToken?: string
|
|
1321
|
-
): Promise<WebApi.PagedList<TestPlan.TestVariable>> {
|
|
1322
|
-
|
|
1323
|
-
const queryValues: any = {
|
|
1324
|
-
continuationToken: continuationToken
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
return this.beginRequest<Response>({
|
|
1328
|
-
apiVersion: "7.2-preview.1",
|
|
1329
|
-
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
1330
|
-
routeValues: {
|
|
1331
|
-
project: project
|
|
1332
|
-
},
|
|
1333
|
-
queryParams: queryValues,
|
|
1334
|
-
returnRawResponse: true
|
|
1335
|
-
}).then(async response => {
|
|
1336
|
-
const body = <WebApi.PagedList<TestPlan.TestVariable>>await response.text().then(deserializeVssJsonObject);
|
|
1337
|
-
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
1338
|
-
return body;
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* Update a test variable by its ID.
|
|
1344
|
-
*
|
|
1345
|
-
* @param testVariableCreateUpdateParameters - TestVariableCreateUpdateParameters
|
|
1346
|
-
* @param project - Project ID or project name
|
|
1347
|
-
* @param testVariableId - ID of the test variable to update.
|
|
1348
|
-
*/
|
|
1349
|
-
public async updateTestVariable(
|
|
1350
|
-
testVariableCreateUpdateParameters: TestPlan.TestVariableCreateUpdateParameters,
|
|
1351
|
-
project: string,
|
|
1352
|
-
testVariableId: number
|
|
1353
|
-
): Promise<TestPlan.TestVariable> {
|
|
1354
|
-
|
|
1355
|
-
return this.beginRequest<TestPlan.TestVariable>({
|
|
1356
|
-
apiVersion: "7.2-preview.1",
|
|
1357
|
-
method: "PATCH",
|
|
1358
|
-
routeTemplate: "{project}/_apis/testplan/Variables/{testVariableId}",
|
|
1359
|
-
routeValues: {
|
|
1360
|
-
project: project,
|
|
1361
|
-
testVariableId: testVariableId
|
|
1362
|
-
},
|
|
1363
|
-
body: testVariableCreateUpdateParameters
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
}
|