C# Class Microsoft.Protocols.TestManager.Kernel.TestEngine

显示文件 Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
AbortExecution ( ) : void

Aborts the test execution.

BeginRunByCase ( Stack caseStack ) : void

Begins to run the specified test cases in the test suite.

BeginRunByFilter ( string filterExpression ) : void

Begins to run the test suite using the specified filter expression.

FilterByKeyword ( string keyword ) : void

Filters test cases by keyword in name.

GetLogger ( ) : Logger

Retrieves the Logger object.

InitializeLogger ( List testcases ) : void
RemoveFilter ( ) : void

Removes the filter.

RunByCase ( Stack caseStack ) : void

Runs the specified test cases in the test suite.

RunByFilter ( string filterExpr ) : void

Runs the test suite using the given filter expression.

TestEngine ( string enginePath ) : System

Private Methods

Method Description
ConstructVstestArgs ( Stack caseStack = null ) : StringBuilder

Build vstest arguments. If caseStack is null, build common arguments only.

ExecutionFinished ( Exception e ) : void
ParseLogMessage ( string message ) : void
Run ( string runArgs ) : Exception

Method Details

AbortExecution() public method

Aborts the test execution.
public AbortExecution ( ) : void
return void

BeginRunByCase() public method

Begins to run the specified test cases in the test suite.
public BeginRunByCase ( Stack caseStack ) : void
caseStack Stack Test Cases
return void

BeginRunByFilter() public method

Begins to run the test suite using the specified filter expression.
public BeginRunByFilter ( string filterExpression ) : void
filterExpression string
return void

FilterByKeyword() public method

Filters test cases by keyword in name.
public FilterByKeyword ( string keyword ) : void
keyword string Keyword
return void

GetLogger() public method

Retrieves the Logger object.
public GetLogger ( ) : Logger
return Logger

InitializeLogger() public method

public InitializeLogger ( List testcases ) : void
testcases List
return void

RemoveFilter() public method

Removes the filter.
public RemoveFilter ( ) : void
return void

RunByCase() public method

Runs the specified test cases in the test suite.
public RunByCase ( Stack caseStack ) : void
caseStack Stack Test Cases
return void

RunByFilter() public method

Runs the test suite using the given filter expression.
public RunByFilter ( string filterExpr ) : void
filterExpr string
return void

TestEngine() public method

public TestEngine ( string enginePath ) : System
enginePath string
return System