# Specifying a Test Environment [deprecated]

This command is only used for test suites with environment (`.jte`) files containing multiple environments. You can use the `env` command with the `envFiles` command to specify a specific test environment contained in an environment file:

> jtharness ... [initial set-up commands] ... `-envFile` path/filename `-env` environment-name ... [task command] ...

See About the Command-Line Examples for a description of the use of > jtharness in the following example.

When creating a command string to specify a specific test environment, include the commands in the following sequence:

1. Set up a configuration
2. Specify a test environment (`env` environment-name)
3. Include the `runtests` command (optional).

See Command-Line Overview for a description of the command line structure.

## Detailed Example of `envFile` Command

In the following example, path/filename represents a file name that might exist on your system and environment-name represents an environment name that exists in the environment file.

Command Options Format Example:

> jtharness `-envFile` path/filename `-env` environment-name `-runtests`

See Formatting a Command for descriptions and examples of other command formats that you can use.

Copyright © 2004, 2011, Oracle and/or its affiliates. All rights reserved.