Eggplant AI Integration with Eggplant Functional

Eggplant AI 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 AI models. The agent can run on the same machine on which you run Eggplant AI, or on a hosted machine that you access remotely. The agent is available for both Windows and Mac, as well as in a raw Python version.

For complete instructions on installing, configuring, and running the agent, see Configuring the Eggplant AI Agent.

Connecting an Eggplant Functional Suite

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

  1. Download and configure the Eggplant AI agent. Skip this step if your environment uses a hosted agent.
  2. Choose the agent you want to use from the Agent 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.

    The Agent drop-down menu in the Eggplant AI UI

  3. If needed, adjust other options in 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.
  4. Click OK to save your settings.

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.

The Snippets tab with a connected Eggplant Functional suite

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.

Next Steps

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.

 

This topic was last updated on August 19, 2021, at 03:30:47 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant