Methods for Managing SUT Connections in Eggplant Test
Eggplant supports different methods for connecting to systems under test (SUTs) so you can optimize your test processes. You can create permanent, reusable, named connections, as well as temporary connections that you create and use just for the duration of your test runs.
The Three Methods for Connecting to Systems Under Test (SUTs)
There are three methods you can use to create and manage system under test (SUT) connections in Eggplant Test applications:
1. Create Connections within the Eggplant Test Applications
You can create, edit, delete, and establish SUT connections on connection configuration panels or pages within the Eggplant Test applications. These "connection definitions" you name and save are typically permanent, meaning you can reuse them until you explicitly delete them. See Adding Connections in Eggplant Applications for more information.
2. Create Connections within a SenseTalk Script
SenseTalk is the Eggplant Test scripting language. You can create and establish a connection in a SenseTalk script using the connect command by either creating the connection in the script as part of the command, or connecting to an existing SUT by specifying its name. The Eggplant Test application will connect to the SUT at runtime when the script runs the connect command, if it is not already connected. See Creating Connections from within a SenseTalk Script for more information.
3. Create Connections at Test Runtime through a Command-Line Interface (CLI)
You can create and establish a connection by passing parameters with tests when they are run through a command-line interface (CLI) with the runscript command. The runscript command invokes Eggplant Fusion Engine (Eggplant Functional without its GUI interface) to run a test script. Connections created with tests run at the CLI are temporary, persisting only for the duration of the test run. See Creating Connections at Runtime through the Command Line Interface (CLI) for more information.
Next Step: Add a Connection in Eggplant Test
Continue to the page that describes the method you want to use to create a connection for your test type:
- See Adding Connections in Eggplant Applications for information about creating permanent connections within an Eggplant Test application.
- See Creating Connections in a SenseTalk Script for information about creating connections using the
connectcommand within a SenseTalk script. - See Creating Connections through a Command-Line Interface (CLI) for information about creating a connection at test-run time when you run a test through a CLI.