<Targets> element is a container element for
<Target> elements. Each
<Target> element defines a test target. Tests are executed for each target, and you can define different target environments for your test. For example, you can define a target for x64 and x86 environments. You can also apply filters to each target, e.g. to only execute tests tagged with
@cloud in browser environments. Tests that are executed for multiple targets are listed multiple times in the Test Explorer window, once for each target. See the SeleniumWebTest sample project for an example of using different targets.
The following attributes are available for the
|name||Required||Name of the target. This value can be accessed using the
|Filter||Optional||Filters the tests to execute by various attributes, such as tags or scenario. Boolean operators are supported and can be used to combine criteria. The following operators are supported:
Regular expression can be used in filters, e.g.
Note: Tags and filters are case-sensitive.
|DeploymentTransformationSteps||Optional||Deployment transformation steps defined for the target, see <DeploymentTransformation>.|
<Targets> <Target name="32bit"> <Filter>@32bit</Filter> <Environment platform="x86" apartmentState="STA" testThreadIsolation="Process"/> </Target> </Targets>