Test Suite Clone - Clone Test Suite
複製測試套件
POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Suites/CloneOperation?api-version=7.1
POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Suites/CloneOperation?deepClone={deepClone}&api-version=7.1
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 組織的名稱。 |
|
project
|
path | True |
string |
項目識別碼或項目名稱 |
|
api-version
|
query | True |
string |
要使用的 API 版本。 這應該設定為 『7.1』 以使用此版本的 API。 |
|
deep
|
query |
boolean |
複製所有相關聯的測試案例 |
要求本文
| 名稱 | 類型 | Description |
|---|---|---|
| cloneOptions |
測試計劃複製建立參數 |
|
| destinationTestSuite |
目的地 Test Suite 的相關信息 |
|
| sourceTestSuite |
來源 Test Suite 的相關信息 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
成功作業 |
安全性
oauth2
類型:
oauth2
Flow:
accessCode
授權 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
權杖 URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
範圍
| 名稱 | Description |
|---|---|
| vso.test_write | 授與讀取、建立和更新測試計劃、案例、結果和其他測試管理相關成品的能力。 |
定義
| 名稱 | Description |
|---|---|
|
Clone |
複製作業的常見回應 |
|
Clone |
複製作業狀態 |
|
Clone |
複製測試套件的複製選項。 |
|
Clone |
複製統計數據詳細數據。 |
|
Clone |
測試套件複製作業的回應 |
|
Clone |
Test Suite 複製作業的參數 |
|
Destination |
Test Suite 複製作業的目的地 Test Suite 資訊 |
|
Project |
項目狀態。 |
|
Project |
項目可見度。 |
|
Reference |
表示 REST 參考連結集合的類別。 |
|
Source |
Test Suite 複製作業的來源 Test Suite 資訊 |
|
Team |
表示 TeamProject 的淺層參考。 |
|
Test |
測試套件參考與專案 |
CloneOperationCommonResponse
複製作業的常見回應
| 名稱 | 類型 | Description |
|---|---|---|
| cloneStatistics |
與複製作業相關的各種統計數據 |
|
| completionDate |
string (date-time) |
作業的完成數據 |
| creationDate |
string (date-time) |
作業的建立數據 |
| links |
參考連結 |
|
| message |
string |
與作業相關的訊息 |
| opId |
integer (int32) |
複製作業標識碼 |
| state |
複製作業狀態 |
CloneOperationState
複製作業狀態
| 值 | Description |
|---|---|
| failed |
失敗狀態的值 |
| inProgress |
輸入狀態的值 |
| queued |
佇列狀態的值 |
| succeeded |
成功狀態的值 |
CloneOptions
複製測試套件的複製選項。
| 名稱 | 類型 | Description |
|---|---|---|
| cloneRequirements |
boolean |
如果設定為 true 需求將會複製 |
| copyAllSuites |
boolean |
從來源方案複製所有套件 |
| copyAncestorHierarchy |
boolean |
複製上階層 |
| destinationWorkItemType |
string |
複製的工作項目類型名稱 |
| overrideParameters |
object |
索引鍵值組,其中索引鍵值會由 值覆寫。 |
| relatedLinkComment |
string |
將新的複製測試案例連結至原始的 Set null,不加上批注的連結批注 |
CloneStatistics
複製統計數據詳細數據。
| 名稱 | 類型 | Description |
|---|---|---|
| clonedRequirementsCount |
integer (int32) |
到目前為止複製的需求數目。 |
| clonedSharedStepsCount |
integer (int32) |
到目前為止複製的共用步驟數目。 |
| clonedTestCasesCount |
integer (int32) |
到目前為止複製的測試案例數目 |
| totalRequirementsCount |
integer (int32) |
要複製的需求總數 |
| totalTestCasesCount |
integer (int32) |
要複製的測試案例總數 |
CloneTestSuiteOperationInformation
測試套件複製作業的回應
| 名稱 | 類型 | Description |
|---|---|---|
| cloneOperationResponse |
與複製相關的各種資訊 |
|
| cloneOptions |
測試計劃複製建立參數 |
|
| clonedTestSuite |
新複製的測試套件資訊 |
|
| destinationTestSuite |
目的地 Test Suite 的資訊 |
|
| sourceTestSuite |
來源 Test Suite 的資訊 |
CloneTestSuiteParams
Test Suite 複製作業的參數
| 名稱 | 類型 | Description |
|---|---|---|
| cloneOptions |
測試計劃複製建立參數 |
|
| destinationTestSuite |
目的地 Test Suite 的相關信息 |
|
| sourceTestSuite |
來源 Test Suite 的相關信息 |
DestinationTestSuiteInfo
Test Suite 複製作業的目的地 Test Suite 資訊
| 名稱 | 類型 | Description |
|---|---|---|
| id |
integer (int32) |
目的地套件識別碼 |
| project |
string |
目的地項目名稱 |
ProjectState
項目狀態。
| 值 | Description |
|---|---|
| all |
所有專案,不論狀態為何,但已刪除除外。 |
| createPending |
Project 已排入佇列以建立,但程式尚未啟動。 |
| deleted |
項目已刪除。 |
| deleting |
Project 正在刪除。 |
| new |
Project 正在建立中。 |
| unchanged |
專案尚未變更。 |
| wellFormed |
專案已完全建立並可供使用。 |
ProjectVisibility
項目可見度。
| 值 | Description |
|---|---|
| private |
只有具有明確存取權的使用者才能看到專案。 |
| public |
所有專案都可以看到。 |
ReferenceLinks
表示 REST 參考連結集合的類別。
| 名稱 | 類型 | Description |
|---|---|---|
| links |
object |
連結的只讀檢視。 因為參考連結是只讀的,所以我們只想要將其公開為只讀。 |
SourceTestSuiteInfo
Test Suite 複製作業的來源 Test Suite 資訊
| 名稱 | 類型 | Description |
|---|---|---|
| id |
integer (int32) |
來源測試套件的標識碼 |
TeamProjectReference
表示 TeamProject 的淺層參考。
| 名稱 | 類型 | Description |
|---|---|---|
| abbreviation |
string |
項目縮寫。 |
| defaultTeamImageUrl |
string |
默認小組身分識別影像的 URL。 |
| description |
string |
專案的描述(如果有的話)。 |
| id |
string (uuid) |
項目標識碼。 |
| lastUpdateTime |
string (date-time) |
專案上次更新時間。 |
| name |
string |
專案名稱。 |
| revision |
integer (int64) |
專案修訂。 |
| state |
項目狀態。 |
|
| url |
string |
物件完整版本的 URL。 |
| visibility |
項目可見度。 |
TestSuiteReferenceWithProject
測試套件參考與專案
| 名稱 | 類型 | Description |
|---|---|---|
| id |
integer (int32) |
測試套件的標識碼。 |
| name |
string |
測試套件的名稱。 |
| project |
目的地項目的參考 |