ITestExecutionPlugin.BeforeTestStarted 메서드
이 메서드는 테스트가 시작되기 전에 호출됩니다.
네임스페이스: Microsoft.VisualStudio.TestTools.Execution
어셈블리: Microsoft.VisualStudio.QualityTools.ExecutionCommon(Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
구문
‘선언
Function BeforeTestStarted ( _
runContext As IDataCollectionRunContext, _
id As TestExecId _
) As Boolean
bool BeforeTestStarted(
IDataCollectionRunContext runContext,
TestExecId id
)
bool BeforeTestStarted(
IDataCollectionRunContext^ runContext,
TestExecId^ id
)
abstract BeforeTestStarted :
runContext:IDataCollectionRunContext *
id:TestExecId -> bool
function BeforeTestStarted(
runContext : IDataCollectionRunContext,
id : TestExecId
) : boolean
매개 변수
- runContext
형식: Microsoft.VisualStudio.TestTools.Execution.IDataCollectionRunContext
테스트의 컨텍스트를 나타내는 IDataCollectionRunContext 개체입니다.
- id
형식: Microsoft.VisualStudio.TestTools.Common.TestExecId
테스트 ID입니다.
반환 값
형식: System.Boolean
에이전트에서 테스트를 계속 실행해야 하면 true이고, 에이전트에서 테스트를 실행하지 않아야 하면 false입니다.
참고
false 가 반환되면 에이전트는 플러그 인에서 해당 테스트에 대해 테스트 실패를 보고한 것으로 가정하고 결과를 기록하지 않습니다.false가 반환되더라도 플러그 인에서는 해당 테스트에 대해 TestEnd 이벤트를 발생시킵니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.