Skip to main content

Sending Commands to Eggplant Functional

Each Eggplant Functional virtual user (VU) in a test run must establish a connection to a different system under test (SUT) machine. You can do this using the Connect() method. You can use a data table to ensure that each VU connects to a different test machine.

Example 1

Connect(getString("sutMachine"));

Example 2

@Override
public void script() throws Exception
{
// Execute an entire eggPlant Functional script, within an Eggplant Performance transaction
startTransaction("myScriptTransaction");
Run("myScript");
endTransaction("myScriptTransaction");

// Execute individual eggPlant commands
DoubleClick("myImage01");
WaitFor(15.0, "myImage02");
}