Creating a Map File

Some tests require contextual information, such as the host name on which they are executed, before they can run. Because network file systems might be mounted differently on different systems, the path names used by the JT Harness harness might not be the same for the agent. The agent uses a map file to translate these strings into values it can use to run tests.

  1. Use a text editor to open a simple ASCII file and enter the following types of lines:
  2. Save the map file in the test suite root directory.

You can use any name and extension. If you are unable to use the root directory, you can use any writable directory on the test system. When starting an agent you must specify which map file, if any, to use.

Example of a map file:

#This is a sample map file
#Replace all /home/user1 with /user1

/home/user1 /user1

#Replace all /home/user2/JT Harness with /myhome/JT Harness
/home/user2/JT Harness /myhome/JT Harness


Copyright © 2001, 2010, Oracle and/or its affiliates. All rights reserved.