Eggplant DAI can run tests against your systems under test (SUTs) based on the model or models you build. In order for those models to interact with SUTs, you need to connect Eggplant AI to an instance of Eggplant Functional, then write SenseTalk code snippets in Eggplant Functional to perform the actions called for by the model.
Using the Agent
The agent creates the connection to an Eggplant Functional suite so that you can use SenseTalk code snippets to drive the actions of your Eggplant DAI models. The agent can run on the same machine on which you run Eggplant DAI, or on a hosted machine that you access remotely. The agent is available for both Windows and Mac, as well as to be used in raw Python format.
For complete instructions on installing, configuring, and running the agent, see Configuring the Eggplant DAI Execution Environment.
In order for a model to run tests on a SUT, that model must have a connection to the specific Eggplant Functional suite that contains the SenseTalk code snippets for its actions. Follow these steps to create a connection to a suite.
Step by Step: Establishing a Suite Connection for a Model
- Download and configure the Eggplant DAI agent. Skip this step if your environment uses a hosted agent.
- Select the agent you want to use from the Execution Environment drop-down menu in the toolbar in Eggplant AI UI. This menu shows all agents available to any groups you belong to.
The agents that appear in the drop-down menu might not be active; if the agent that you select is not active, the dot at the top of the Snippets tab will be red.
- Specify the Suite relative location in the Snippets tab.
- Click OK to save your settings.
Tip: If needed, you can disable snippets by going into the File > Settings dialog box. Select the Disable all snippets checkbox to temporarily disconnect the model from its suite so that you can run it without accessing the code snippets. This can be useful for debugging the model.
If your information is entered correctly (agent name, suite path), and the agent is running, you should see a green light indicator on the Snippets tab in the left sidebar. Any scripts in the attached suite display on that tab.
When no suite is connected, or if the agent isn't running, the indicator on the Snippets tab is red and no scripts show up.
When you have an agent connection, you can use attach the code snippets in the connected suite to actions in your model. For information about adding snippets to actions, see Snippets Called by Action.
You do not need to create any connection snippets, your SenseTalk scripts will work against the automatically connected SUT (e.g. over RDP or VNC).