Condividi tramite


Metodo ITestBase.CreateSharedStepReference

Se l'oggetto è un test case, crea un nuovo riferimento del passo condiviso che consente di accedere a un altro set di azioni.

Spazio dei nomi:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Sintassi

'Dichiarazione
Function CreateSharedStepReference As ISharedStepReference
ISharedStepReference CreateSharedStepReference()
ISharedStepReference^ CreateSharedStepReference()
abstract CreateSharedStepReference : unit -> ISharedStepReference
function CreateSharedStepReference() : ISharedStepReference

Valore restituito

Tipo: Microsoft.TeamFoundation.TestManagement.Client.ISharedStepReference
Nuovo riferimento del passo condiviso.

Eccezioni

Eccezione Condizione
TestManagementInvalidOperationException

L'oggetto ITestBase non è un test case.

Note

I chiamanti devono aggiungere questo a ITestBase.Actions e chiamare ITestBase.Save per eseguirne il commit al server.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ITestBase Interfaccia

Spazio dei nomi Microsoft.TeamFoundation.TestManagement.Client

ISharedStepReference