DeploymentItemAttribute Constructor (String, String)

Initializes a new instance of the DeploymentItemAttribute class. Use the path parameter to specify the path to a file or directory to deploy, and the outputDirectory parameter to specify the path to the output directory.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Sub New ( _
    path As String, _
    outputDirectory As String _
)
public DeploymentItemAttribute(
    string path,
    string outputDirectory
)
public:
DeploymentItemAttribute(
    String^ path, 
    String^ outputDirectory
)
new : 
        path:string * 
        outputDirectory:string -> DeploymentItemAttribute
public function DeploymentItemAttribute(
    path : String, 
    outputDirectory : String
)

Parameters

  • path
    Type: System.String
    The relative or absolute path to the deployment item or directory to deploy.
  • outputDirectory
    Type: System.String
    The path to the output directory. This contains all items and directories identified by path. This directory will be relative to the directory that contains the deployed test assemblies.

Remarks

The relative path setting is found in the RelativePathRoot setting found in the .testrunconfig file.

For test deployment, deployment items are copied from the directory specified by path to the directory specified by outputDirectory.

.NET Framework Security

See Also

Reference

DeploymentItemAttribute Class

DeploymentItemAttribute Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Test Deployment