C# 클래스 Microsoft.Protocols.TestManager.Kernel.Utility

Utility for the test suite manager.
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LastRuleSelectionFilename string

공개 메소드들

메소드 설명
AbortExecution ( ) : void
ApplyAdaptersConfig ( ) : void

Applies the changes in the PtfAdapterView in the ptfconfig XML Documents.

ApplyDetectedRules ( ) : void

Apply the test case selection rules detected by the plug-in.

ApplyDetectedValues ( ) : void

Apply the property values detected by the plug-in.

ApplyPlaylist ( int &numberOfChecked, int &numberOfNotfound ) : void

Check the test cases in the playlist.

CreatePtfPropertyView ( ) : PtfPropertyView

Creates a PtfPropertyView for the UI.

ExportPlaylist ( Stream stream, bool checkedOnly ) : void

Export test cases to a Visual Studio playlist.

ExportPlaylist ( string filename, bool checkedOnly ) : void

Export test cases to a Visual Studio playlist.

FilterByKeyword ( string keyword ) : void

Filters test cases by keyword in name.

GeneratePlainTextReport ( List items, bool showOutcome, SortBy sortby, CaseListItem separator ) : string

Convert the list to plain text report

GenerateTextCaseListItems ( bool passed, bool failed, bool inconclusive, bool notrun ) : List

Generates plain text case list.

GetAdaptersView ( ) : List

Gets PtfAdapterView for the UI.

GetDetectSteps ( ) : List

Gets the auto-detection steps.

GetDetectionSummary ( ) : object

Get a object to show on the UI as the detection summary.

GetFilter ( ) : TestCaseFilter

Gets the TestCaseFilter object for current test suite.

GetLogger ( ) : Logger

Retrives the object of the logger.

GetPrerequisits ( ) : Microsoft.Protocols.TestManager.Kernel.PrerequisitView

Gets properties required for auto-detection.

GetSelectedCaseList ( ) : List

Gets a filtered test case list.

HideProperties ( ) : void

Gets the properties to hide from the plug-in.

ImportPlaylist ( Stream stream ) : void

Import a Play List

ImportPlaylist ( string filename ) : void

Import a Play List

InitializeDetector ( ) : void

Initializes the auto-detection plug-in.

InitializeTestEngine ( ) : void

Initializes the test engine

LoadProfileSettings ( string filename ) : void

Loads the configurations from a saved profile.

LoadPtfconfig ( ) : void

Loads PTF configuration.

LoadTestSuiteAssembly ( ) : void

Loads test suite assembly.

LoadTestSuiteConfig ( Microsoft.Protocols.TestManager.Kernel.TestSuiteInfo testSuiteInfo ) : void

Loads test suite configuration.

OpenDetectionLog ( ) : void

Opens the auto-detection log

ParseFileGetStatus ( string filePath, TestCaseStatus &status ) : bool

Parse the file content to get the case status Result format in file: "Result":"Result: Passed"

RemoveFilter ( ) : void

Removes the filter and show all selected test cases.

RemoveReadonly ( string file ) : void

Changes the read only attribute of a file.

RunAllTestCases ( ) : void

Runs all filtered test cases.

RunByCases ( List testcases ) : void

Runs specific test cases.

SaveLastProfile ( ) : void

Save the rule selection of current run.

SaveProfileSettings ( string filename ) : void

Saves the configurations as a profile.

SavePtfconfigToBinFolder ( ) : void

Saves the ptfconfig file back to the bin folder.

SavePtfconfigToSourceCode ( ) : void

Saves the ptfconfig files back to the source code folder.

SetPrerequisits ( ) : bool

Sets the property values required for auto-detection.

StartDetection ( DetectionCallback callback ) : void

Start the auto-detection

SyncRunByCases ( List testcases ) : void
Utility ( ) : System

비공개 메소드들

메소드 설명
SetAdapterConfig ( ) : void

메소드 상세

AbortExecution() 공개 메소드

public AbortExecution ( ) : void
리턴 void

ApplyAdaptersConfig() 공개 메소드

Applies the changes in the PtfAdapterView in the ptfconfig XML Documents.
public ApplyAdaptersConfig ( ) : void
리턴 void

ApplyDetectedRules() 공개 메소드

Apply the test case selection rules detected by the plug-in.
public ApplyDetectedRules ( ) : void
리턴 void

ApplyDetectedValues() 공개 메소드

Apply the property values detected by the plug-in.
public ApplyDetectedValues ( ) : void
리턴 void

ApplyPlaylist() 공개 메소드

Check the test cases in the playlist.
public ApplyPlaylist ( int &numberOfChecked, int &numberOfNotfound ) : void
numberOfChecked int Number of checked cases.
numberOfNotfound int Number of not found test cases in the list.
리턴 void

CreatePtfPropertyView() 공개 메소드

Creates a PtfPropertyView for the UI.
public CreatePtfPropertyView ( ) : PtfPropertyView
리턴 PtfPropertyView

ExportPlaylist() 공개 메소드

Export test cases to a Visual Studio playlist.
public ExportPlaylist ( Stream stream, bool checkedOnly ) : void
stream Stream A Stream
checkedOnly bool True if only export checked cases. False export all test cases.
리턴 void

ExportPlaylist() 공개 메소드

Export test cases to a Visual Studio playlist.
public ExportPlaylist ( string filename, bool checkedOnly ) : void
filename string The filename.
checkedOnly bool True if only export checked cases. False export all test cases.
리턴 void

FilterByKeyword() 공개 메소드

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

GeneratePlainTextReport() 공개 정적인 메소드

Convert the list to plain text report
public static GeneratePlainTextReport ( List items, bool showOutcome, SortBy sortby, CaseListItem separator ) : string
items List Case list
showOutcome bool shows test case outcome in the list
sortby SortBy The way of sorting items in the test case list
separator CaseListItem The style of the text file
리턴 string

GenerateTextCaseListItems() 공개 메소드

Generates plain text case list.
public GenerateTextCaseListItems ( bool passed, bool failed, bool inconclusive, bool notrun ) : List
passed bool Include passed test cases
failed bool Include failed test cases
inconclusive bool Include inconclusive test cases
notrun bool Include not run test cases
리턴 List

GetAdaptersView() 공개 메소드

Gets PtfAdapterView for the UI.
public GetAdaptersView ( ) : List
리턴 List

GetDetectSteps() 공개 메소드

Gets the auto-detection steps.
public GetDetectSteps ( ) : List
리턴 List

GetDetectionSummary() 공개 메소드

Get a object to show on the UI as the detection summary.
public GetDetectionSummary ( ) : object
리턴 object

GetFilter() 공개 메소드

Gets the TestCaseFilter object for current test suite.
public GetFilter ( ) : TestCaseFilter
리턴 TestCaseFilter

GetLogger() 공개 메소드

Retrives the object of the logger.
public GetLogger ( ) : Logger
리턴 Logger

GetPrerequisits() 공개 메소드

Gets properties required for auto-detection.
public GetPrerequisits ( ) : Microsoft.Protocols.TestManager.Kernel.PrerequisitView
리턴 Microsoft.Protocols.TestManager.Kernel.PrerequisitView

GetSelectedCaseList() 공개 메소드

Gets a filtered test case list.
public GetSelectedCaseList ( ) : List
리턴 List

HideProperties() 공개 메소드

Gets the properties to hide from the plug-in.
public HideProperties ( ) : void
리턴 void

ImportPlaylist() 공개 메소드

Import a Play List
public ImportPlaylist ( Stream stream ) : void
stream Stream A Stream
리턴 void

ImportPlaylist() 공개 메소드

Import a Play List
public ImportPlaylist ( string filename ) : void
filename string Filename
리턴 void

InitializeDetector() 공개 메소드

Initializes the auto-detection plug-in.
public InitializeDetector ( ) : void
리턴 void

InitializeTestEngine() 공개 메소드

Initializes the test engine
public InitializeTestEngine ( ) : void
리턴 void

LoadProfileSettings() 공개 메소드

Loads the configurations from a saved profile.
public LoadProfileSettings ( string filename ) : void
filename string File name
리턴 void

LoadPtfconfig() 공개 메소드

Loads PTF configuration.
public LoadPtfconfig ( ) : void
리턴 void

LoadTestSuiteAssembly() 공개 메소드

Loads test suite assembly.
public LoadTestSuiteAssembly ( ) : void
리턴 void

LoadTestSuiteConfig() 공개 메소드

Loads test suite configuration.
public LoadTestSuiteConfig ( Microsoft.Protocols.TestManager.Kernel.TestSuiteInfo testSuiteInfo ) : void
testSuiteInfo Microsoft.Protocols.TestManager.Kernel.TestSuiteInfo The information of a test suite
리턴 void

OpenDetectionLog() 공개 메소드

Opens the auto-detection log
public OpenDetectionLog ( ) : void
리턴 void

ParseFileGetStatus() 공개 정적인 메소드

Parse the file content to get the case status Result format in file: "Result":"Result: Passed"
public static ParseFileGetStatus ( string filePath, TestCaseStatus &status ) : bool
filePath string
status TestCaseStatus
리턴 bool

RemoveFilter() 공개 메소드

Removes the filter and show all selected test cases.
public RemoveFilter ( ) : void
리턴 void

RemoveReadonly() 공개 정적인 메소드

Changes the read only attribute of a file.
public static RemoveReadonly ( string file ) : void
file string The file to be removed the read only attribute
리턴 void

RunAllTestCases() 공개 메소드

Runs all filtered test cases.
public RunAllTestCases ( ) : void
리턴 void

RunByCases() 공개 메소드

Runs specific test cases.
public RunByCases ( List testcases ) : void
testcases List Test case
리턴 void

SaveLastProfile() 공개 메소드

Save the rule selection of current run.
public SaveLastProfile ( ) : void
리턴 void

SaveProfileSettings() 공개 메소드

Saves the configurations as a profile.
public SaveProfileSettings ( string filename ) : void
filename string File name
리턴 void

SavePtfconfigToBinFolder() 공개 메소드

Saves the ptfconfig file back to the bin folder.
public SavePtfconfigToBinFolder ( ) : void
리턴 void

SavePtfconfigToSourceCode() 공개 메소드

Saves the ptfconfig files back to the source code folder.
public SavePtfconfigToSourceCode ( ) : void
리턴 void

SetPrerequisits() 공개 메소드

Sets the property values required for auto-detection.
public SetPrerequisits ( ) : bool
리턴 bool

StartDetection() 공개 메소드

Start the auto-detection
public StartDetection ( DetectionCallback callback ) : void
callback DetectionCallback The call back function when the detection finished.
리턴 void

SyncRunByCases() 공개 메소드

public SyncRunByCases ( List testcases ) : void
testcases List
리턴 void

Utility() 공개 메소드

public Utility ( ) : System
리턴 System

프로퍼티 상세

LastRuleSelectionFilename 공개적으로 프로퍼티

public string LastRuleSelectionFilename
리턴 string