Direct Connections
If you are testing a SUT that cannot be part of a larger network (usually for security or logistical purposes), this section explains how to create a closed, local connection with Eggplant Functional.
Step by Step: Setting up a Direct Connection Between Eggplant Functional and the SUT
This process is nearly identical for the Eggplant Functional computer and the SUT. (The only difference is the IP address in step three.)
The required settings are found in the computers' network preferences (not in the Eggplant Functionalapplication or the VNC server.)
- In network preferences, select (or create a new) connection. Select a "wired" or "ethernet" connection.
- Indicate that you are using a static IP address. This option may take several forms:
- Disable DHCP or Roaming Mode.
- Select Static or Manual IP address.
- Select Use the following IP address:
- Enter a private IP address. Use 10.0.0.1 for Eggplant Functional, and 10.0.0.2 for the SUT. (These IP addresses are "non-routable", or reserved for private networks.)
- Make the Eggplant Functional computer a router for the SUT.
- In the Gateway or Router field, enter the IP address of the Eggplant Functionalcomputer: 10.0.0.1 .
- Enter the subnet mask 255.255.255.0 . (On this network, only IP addresses that begin with 10.0.0 are considered local.)
- Connect the computers with an Ethernet cable.
Step by Step: Setting up a Direct Connection in Eggplant Functional
- Create a new network location on the Eggplant Functional computer. (For Mac OS X 10.4, see note below.)
- Open Mac OS X System Preferences > Network.
- In the Location pop-up menu, choose Edit Locations.
- In the location list, click the plus sign to add a new location.
- Give the new location a descriptive name, such as Direct Connection.
- In the list of network interfaces, select Ethernet.
- Give the computer a private IP address.
- In the Configure pop-up menu, choose Manually.
- In the IP Address field, enter 10.0.0.1 . (This IP address is "non-routable", or reserved for private networks.)
- Make the Eggplant Functional computer a router for the SUT.
- In the Router field, repeat the IP address you just entered: 10.0.0.1 . (You will also use this IP address as the SUT's router, so the Eggplant Functional computer will control traffic to the SUT.)
- In the Subnet Mask field, enter 255.255.255.0 . On this network, only IP addresses that begin with 10.0.0 are considered local.
Step by Step: Setting up a Direct Connection on the SUT
- In network preferences, select (or create a new) connection. Select a wired or ethernet connection.
- Indicate that you are using a static IP address. This setting may take several forms:
- Disable DHCP or Roaming Mode.
- Select Static or Manual IP address.
- Select Use the following IP address.
- Enter 10.0.0.2 as the SUT's IP address.
- Enter Eggplant Functional's IP address (10.0.0.1) as the gateway or router IP address for the SUT.
- Enter the subnet mask 255.255.255.0. (This is the same subnet mask you entered on the Eggplant Functionalcomputer.)
- Connect the computers with an ethernet cable.