Test Plan Clone - Clone Test Plan

テスト計画の複製

POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Plans/CloneOperation?api-version=7.1-preview.2
POST https://dev.azure.com/{organization}/{project}/_apis/testplan/Plans/CloneOperation?deepClone={deepClone}&api-version=7.1-preview.2

URI パラメーター

名前 / 必須 説明
organization
path True

string

Azure DevOps 組織の名前です。

project
path True

string

プロジェクト ID またはプロジェクト名

api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.2' に設定する必要があります。

deepClone
query

boolean

関連するすべてのテスト ケースも複製します

要求本文

名前 説明
cloneOptions

CloneOptions

テスト 計画複製の作成パラメーター

destinationTestPlan

DestinationTestPlanCloneParams

移行先のテスト 計画に関する情報

sourceTestPlan

SourceTestPlanInfo

ソーステスト計画に関する情報

応答

名前 説明
200 OK

CloneTestPlanOperationInformation

成功した操作

セキュリティ

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token 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

Scopes

名前 説明
vso.test_write テスト計画、ケース、結果、その他のテスト管理関連の成果物を読み取り、作成、更新する機能を付与します。

定義

名前 説明
BuildDefinitionReference

ビルド定義参照リソース

CloneOperationCommonResponse

複製操作の一般的な応答

CloneOperationState

複製操作の状態

CloneOptions

テスト スイートを複製するためのクローン オプション。

CloneStatistics

統計の詳細を複製します。

CloneTestPlanOperationInformation

テスト 計画の複製操作に対する応答

CloneTestPlanParams

テスト 計画の複製操作のパラメーター

DestinationTestPlanCloneParams

変換先テスト 計画のパラメーターの作成

IdentityRef
ProjectState

プロジェクトの状態。

ProjectVisibility

プロジェクトの可視性。

ReferenceLinks

REST 参照リンクのコレクションを表す クラス。

ReleaseEnvironmentDefinitionReference

リリース環境リソースへの参照。

SourceTestPlanInfo

テスト 計画の複製操作のソース テスト 計画情報

SourceTestplanResponse

テスト 計画の複製操作のソース テスト 計画応答

TeamProjectReference

TeamProject への浅い参照を表します。

TestOutcomeSettings

テスト結果の設定

TestPlan

テスト 計画リソース。

TestSuiteReference

テスト スイート参照リソース。

BuildDefinitionReference

ビルド定義参照リソース

名前 説明
id

integer

ビルド定義の ID

name

string

ビルド定義の名前

CloneOperationCommonResponse

複製操作の一般的な応答

名前 説明
cloneStatistics

CloneStatistics

複製操作に関連するさまざまな統計

completionDate

string

操作の完了データ

creationDate

string

操作の作成データ

links

ReferenceLinks

リファレンスのリンク

message

string

ジョブに関連するメッセージ

opId

integer

複製操作 ID

state

CloneOperationState

複製操作の状態

CloneOperationState

複製操作の状態

名前 説明
failed

string

Failed State の値

inProgress

string

Inprogress 状態の値

queued

string

キュー状態の値

succeeded

string

成功状態の値

CloneOptions

テスト スイートを複製するためのクローン オプション。

名前 説明
cloneRequirements

boolean

true に設定すると、要件が複製されます

copyAllSuites

boolean

ソース プランからすべてのスイートをコピーする

copyAncestorHierarchy

boolean

先祖階層のコピー

destinationWorkItemType

string

複製の作業項目タイプの名前

overrideParameters

object

キー値が値によってオーバーライドされるキー値のペア。

relatedLinkComment

string

新しい複製テスト ケースを元の Set null にリンクするリンクにコメントを付けます。コメントなし

CloneStatistics

統計の詳細を複製します。

名前 説明
clonedRequirementsCount

integer

これまでに複製された要件の数。

clonedSharedStepsCount

integer

これまでに複製された共有ステップの数。

clonedTestCasesCount

integer

これまでに複製されたテスト ケースの数

totalRequirementsCount

integer

複製する要件の合計数

totalTestCasesCount

integer

複製するテスト ケースの合計数

CloneTestPlanOperationInformation

テスト 計画の複製操作に対する応答

名前 説明
cloneOperationResponse

CloneOperationCommonResponse

複製に関連するさまざまな情報

cloneOptions

CloneOptions

テスト 計画複製の作成パラメーター

destinationTestPlan

TestPlan

移行先テスト計画の情報

sourceTestPlan

SourceTestplanResponse

ソーステスト計画の情報

CloneTestPlanParams

テスト 計画の複製操作のパラメーター

名前 説明
cloneOptions

CloneOptions

テスト 計画複製の作成パラメーター

destinationTestPlan

DestinationTestPlanCloneParams

移行先のテスト 計画に関する情報

sourceTestPlan

SourceTestPlanInfo

ソーステスト計画に関する情報

DestinationTestPlanCloneParams

変換先テスト 計画のパラメーターの作成

名前 説明
areaPath

string

テスト計画の領域。

buildDefinition

BuildDefinitionReference

このテスト 計画に関連付けられたビルドを生成するビルド定義。

buildId

integer

テストするビルド。

description

string

テスト計画の説明。

endDate

string

テスト計画の終了日。

iteration

string

テスト計画のイテレーション パス。

name

string

テスト 計画の名前。

owner

IdentityRef

テスト計画の所有者。

project

string

変換先プロジェクト名

releaseEnvironmentDefinition

ReleaseEnvironmentDefinitionReference

ビルドをデプロイし、このテスト計画から自動テストを実行するために使用するリリース環境。

startDate

string

テスト計画の開始日。

state

string

テスト 計画の状態。

testOutcomeSettings

TestOutcomeSettings

テスト 計画の下でテスト スイート間で同じテストを動作させる方法を構成する値

IdentityRef

名前 説明
_links

ReferenceLinks

このフィールドには、グラフの件名に関する 0 個以上の興味深いリンクが含まれています。 これらのリンクを呼び出して、このグラフの件名に関する追加のリレーションシップまたは詳細情報を取得できます。

descriptor

string

記述子は、システムの実行中にグラフの件名を参照する主な方法です。 このフィールドは、アカウントと組織の両方で同じグラフの件名を一意に識別します。

directoryAlias

string

非推奨 - IdentityRef "_links" ディクショナリの "self" エントリで参照されている Graph ユーザーに対してクエリを実行することで取得できます

displayName

string

これは、グラフの件名の一意でない表示名です。 このフィールドを変更するには、ソース プロバイダーでその値を変更する必要があります。

id

string

imageUrl

string

非推奨 - IdentityRef "_links" 辞書の "アバター" エントリで使用できます

inactive

boolean

非推奨 - GraphUser "_links" ディクショナリの "membershipState" エントリで参照されている Graph メンバーシップの状態を照会することで取得できます

isAadIdentity

boolean

非推奨 - 記述子のサブジェクト型 (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) から推論できます

isContainer

boolean

非推奨 - 記述子のサブジェクト型 (Descriptor.IsGroupType) から推論できます

isDeletedInOrigin

boolean

profileUrl

string

非推奨 - ToIdentityRef の既存のほとんどの実装では使用されていません

uniqueName

string

非推奨 - 代わりに Domain+PrincipalName を使用する

url

string

この URL は、このグラフの件名のソース リソースへの完全なルートです。

ProjectState

プロジェクトの状態。

名前 説明
all

string

[削除済み] を除く状態に関係なく、すべてのプロジェクト。

createPending

string

プロジェクトは作成のためにキューに登録されていますが、プロセスはまだ開始されていません。

deleted

string

プロジェクトが削除されました。

deleting

string

プロジェクトは削除中です。

new

string

プロジェクトは作成中です。

unchanged

string

プロジェクトは変更されていません。

wellFormed

string

プロジェクトは完全に作成され、使用できる状態になります。

ProjectVisibility

プロジェクトの可視性。

名前 説明
private

string

プロジェクトは、明示的なアクセス権を持つユーザーにのみ表示されます。

public

string

プロジェクトはすべてのユーザーに表示されます。

REST 参照リンクのコレクションを表す クラス。

名前 説明
links

object

リンクの読み取り専用ビュー。 参照リンクは読み取り専用であるため、参照リンクは読み取り専用として公開する必要があります。

ReleaseEnvironmentDefinitionReference

リリース環境リソースへの参照。

名前 説明
definitionId

integer

リリース環境定義を含むリリース定義の ID。

environmentDefinitionId

integer

リリース環境定義の ID。

SourceTestPlanInfo

テスト 計画の複製操作のソース テスト 計画情報

名前 説明
id

integer

ソーステスト計画の ID

suiteIds

integer[]

ソース テスト プラン内で複製されるスイートの ID

SourceTestplanResponse

テスト 計画の複製操作のソース テスト 計画応答

名前 説明
id

integer

テスト 計画の ID。

name

string

テスト 計画の名前。

project

TeamProjectReference

プロジェクト リファレンス

suiteIds

integer[]

ソース テスト プラン内で複製されるスイートの ID

TeamProjectReference

TeamProject への浅い参照を表します。

名前 説明
abbreviation

string

プロジェクトの省略形。

defaultTeamImageUrl

string

既定のチーム ID イメージへの URL。

description

string

プロジェクトの説明 (存在する場合)。

id

string

プロジェクト識別子。

lastUpdateTime

string

プロジェクトの最終更新時刻。

name

string

プロジェクト名。

revision

integer

プロジェクトリビジョン。

state

ProjectState

プロジェクトの状態。

url

string

オブジェクトの完全なバージョンへの URL。

visibility

ProjectVisibility

プロジェクトの可視性。

TestOutcomeSettings

テスト結果の設定

名前 説明
syncOutcomeAcrossSuites

boolean

スイート間で同じテストのテスト結果を表示する方法を構成する値

TestPlan

テスト 計画リソース。

名前 説明
_links

ReferenceLinks

関連するリンク

areaPath

string

テスト計画の領域。

buildDefinition

BuildDefinitionReference

このテスト 計画に関連付けられたビルドを生成するビルド定義。

buildId

integer

テストするビルド。

description

string

テスト計画の説明。

endDate

string

テスト計画の終了日。

id

integer

テスト 計画の ID。

iteration

string

テスト計画のイテレーション パス。

name

string

テスト 計画の名前。

owner

IdentityRef

テスト計画の所有者。

previousBuildId

integer

テスト 計画に関連付けられている以前のビルド ID

project

TeamProjectReference

テスト計画を含むプロジェクト。

releaseEnvironmentDefinition

ReleaseEnvironmentDefinitionReference

ビルドをデプロイし、このテスト計画から自動テストを実行するために使用するリリース環境。

revision

integer

テスト計画の改訂。

rootSuite

TestSuiteReference

テスト計画のルート テスト スイート。

startDate

string

テスト計画の開始日。

state

string

テスト 計画の状態。

testOutcomeSettings

TestOutcomeSettings

テスト 計画の下でテスト スイート間で同じテストを動作させる方法を構成する値

updatedBy

IdentityRef

テスト計画の最後の更新に関する ID リファレンス

updatedDate

string

テスト計画の更新日

TestSuiteReference

テスト スイート参照リソース。

名前 説明
id

integer

テスト スイートの ID。

name

string

テスト スイートの名前。