The Designer provides an alternative workspace for creating models from scratch without prior experience of creating models in the Modeler. On the Designer page, you create a model by capturing various aspects of the UI while still interacting with the screen of a system under test (SUT). For example, you can capture the interactive behaviors of screen elements such as buttons, tabs, checkboxes, and text boxes to add them as actions within a state while connected to a SUT.
Use the following tabs in Designer to perform a variety of tasks:
- Model Hub: Navigate to the Modeler page in Eggplant AI.
- Snippets: Edit scripts associated with the active model without opening Eggplant Functional.
- Capture: Easily create models within Designer.
- RCI: Import real user journeys using Eggplant Real Customer Insights.
Follow the steps below to create a new model using Designer > Capture tab. If you prefer building models in the Modeler UI, you can do so by returning to the Model Hub tab.
To build your model in Designer:
- Click Designer on the left side of the Eggplant DAI screen. The Modeler tab opens on the right.
- Switch to the Capture tab to create a new model.
- Enter the Model name and click Next. The Select Execution Environment page displays all the agents available to the group you belong to. In addition, it displays the newly created Model name. If required, you can rename the model at this point by clicking the model name.
- Select the Execution Environment to choose the connection that the model should run on. Click Next if you want to specify the details for starting and closing your app correctly. Alternatively, skip to step 6 to create a model from the current screen in the SUT by clicking Skip.
- (Optional) From the App details page, select the Platform that you want to test your app on. For testing a mobile app, select Android or iOS. Otherwise, select Windows. If you select Windows, you must also specify additional information:
tilde (~), and hyphen (-).
- App type: Specify the method to launch the app using the following options:
- Browser: Select the browser type: Chrome, Firefox, Edge.
- URL: Provide the URL to access the application. For example, to open the Eggplant website, enter https://www.eggplantsoftware.com here.
- Executable: Specify the executable file name, folder, resource, or path. For example, to open Notepad, type notepad.exe here.
- Browser: Select the browser type: Chrome, Firefox, Edge.
A spinner icon appears the agent connects to your SUT. After the agent establishes a successful connection with the SUT, the following two things happen:
- The SUT image appears, showing what you would see on the SUT display:
- The Run window appears, displaying the connection information of the SUT you're connected to:
Selecting a valid execution environment associates it with the newly created model and displays an image of the SUT screen
The Run window showing the script execution on the SUT
If you entered App details in step 5 and clicked Next, a Start action is added to the Initial state, linking the relevant script file to the action. In addition, a snippet is linked to the default Cleanup state to automatically close applications. You can view your app being opened in the SUT view by clicking Launch app on the App details page. For example, if your script includes launching of an app, such as the calculator, the SUT view will show the app launching using the SenseTalk script that was generated in the previous step.
- Text box
- Drop-down list
- Radio button
Note that every UI element you capture in Designer becomes an action for the selected state in Eggplant AI UI. A SenseTalk script is automatically generated for the highlighted UI element on the SUT screen and saved to the valid suite folder as you draw around the selected element. Any changes to the element location will then update the script accordingly.
- Click the State name to change it to something more descriptive for your model.
- You can use the keyboard shortcut keys displayed against each of the screen element types to speed up the flow of drawing boxes, instead of using the mouse to click a control for each element.
- Action name: A default name for the action is added, which is suffixed with a number that changes incrementally as a new action gets added. You can change the default name to something more descriptive based on your model.
- Description: Provides useful information about this action.
- Control type: (Read-only) Displays the selected control type.
- Default Value: (Optional) Defines a default value for the text and drop-down menu control types. Note that this field does not appear for other control types. For example, when entering the Action properties for a Dropdown control type, you set the hot spot and then enter the default value to specify the value that the script should select.
- Set Hot Spot: Click this button to mark a hot spot of the control type on the SUT view. A red crosshairs icon appears in the exact location where you clicked, which is what the script will use while executing this action. A typical use for this is when you select the Radio button control type: You draw around the label, and set the hot spot against your preferred option. This adds the offset coordinates to the script of the selected action. To move the hot spot to a new location, click Set Hot Spot again.
- Snippets: (Read-only) Displays the script name that is created for the current action. The script name follows a naming convention, which is, model name-state name -action name-timestamp.script for unique identification.
You might want to specify an exit state for the model by associating a valid action with the predefined Exit state in the Connections from action menu. You can also add previous actions, global actions, and sequent actions at this point in the same way as before.
The Script Editor lets you edit the existing Eggplant Functional snippets that are linked to your model. The primary benefit of the Script Editor is that you can edit SenseTalk scripts within Eggplant AI without having to switch to Eggplant Functional.
Editing a script in the Script Editor
The Script Editor displays all the script files and CSV files available for the associated Eggplant Functional suite in a tree view format in Designer.
- Configure the Eggplant Functional suite path for the agent in the Manage Execution Environment window. See Connecting an Eggplant Functional Suite for more information.
- The agent associated with the model must be connected and selected in the Eggplant AI UI.
Follow these steps to edit an existing snippet in your model:
- Select a script file from the tree view on the left. The SenseTalk code is displayed in the Script Editor.
- Make the required changes to the script and click Save. The changes are saved to the Eggplant Functional suite that your model is connected to.
Script Editor with the available scripts in the suite
To undo changes made to the selected script, click Discard.