Bagikan melalui


UITestTraceUtility Class

Provides static helper properties and methods for tracing in UI tests and Test Runner.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.UITestTraceUtility

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public NotInheritable Class UITestTraceUtility
public static class UITestTraceUtility
public ref class UITestTraceUtility abstract sealed
[<AbstractClass>]
[<Sealed>]
type UITestTraceUtility =  class end
public final class UITestTraceUtility

The UITestTraceUtility type exposes the following members.

Properties

  Name Description
Public propertyStatic member LogFileDirectory Gets the folder where log files from UI modules are stored as configured in the app.config settings file.

Top

Methods

  Name Description
Public methodStatic member StartTracing() Returns a trace listener stream for tracing that saves log files in the folder that is specified in configuration.
Public methodStatic member StartTracing(String) Returns a trace listener stream for tracing that saves log files in the specified folder.
Public methodStatic member StartTracing(String, String) Returns a trace listener stream for tracing that saves log files in the specified folder.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace