C# Класс Microsoft.Protocols.TestManager.Kernel.Utility

Utility for the test suite manager.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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