Drag and Drop Automation Steps Onto the Canvas
Automation Actions is an accelerator that makes adding code snippets to blocks quicker. It also lets you start to think about constructing a flow from a concept of a script, using an existing configuration.
ard23
Automation Actions is an accelerator that makes adding code snippets to blocks quicker. It also lets you start to think about constructing a flow from a concept of a script, using an existing configuration.
Use the
Automation Actions
tree-view panel to quickly view the objects and actions in the configuration that is currently open.You can use Automation Actions in the following ways:
Drag and drop Automation Steps From Your Automation Configuration
Use the tree-view connector panel to add actions from an existing automation configuration into flow blocks.
Follow these steps:
- Open a flow.
- Load an automation configuration.
- Go toConnectors,Automation.
- From theFrameworkdrop-down list, selectAutomation Actions.
- Select the targetLayerfrom the drop-down list.
- Expand aConfiguration Objectand add code snippets to the flow.
- To create a new block:
- Drag the action onto an empty space on the canvas.
- Fill out the variables and object name of the Automation Step to be added.
- ClickOK.A process block is created, containing a single automation step with the corresponding details of the action.
- To add the action to an existing block:
- Drag the action onto an existing block on the canvas.
- If it is a decision block, select the outputs to which you want to add the action.
- Fill out the variables and object name of Automation Step to be added.
- ClickOK.The automation step is added to the block.
- Repeat step 6 until the flow is complete.
Drag and drop Automation Steps From Your Ranorex Integration
Ranorex is a GUI test automation framework for testing of desktop, web-based, and mobile applications.
Follow these steps:
- Open a flow.
- Go toConnectors,Automation.
- From theFrameworkdrop-down list, select Ranorex.
- Browse for the Ranorex repository file that you want to import.
- From the tree listing all the objects from the repository, drag and drop the objects that you want to use.When dragging a repository item onto a block:
- If the block is a process, it adds the corresponding parameter to the block and allows you to select an associated action.
- If the block is a decision, it does the same but allows you to select outputs first.
Update
You can verify if the objects you are using are up-to-date. The update process checks all automation parameters obtained from the object repository and finds corresponding objects in the repository. If the location of the object in the repository has changed, you are asked if you want to update the referenced locations in each block.
Export
When you export automation scripts (for a stored path in the Path Explorer), the framework-specific parameters are resolved. All parameters turn into code snippets, corresponding to their data and the language chosen in the configuration. The framework-specific code snippets come from the corresponding section in the automation configuration.
Drag and Drop Automation Steps From Your EggPlant Integration
EggPlant Functional is a test automation tool that uses Optical Character Recognition (OCR) to identify objects to interact with on mobile, desktop, or web applications. It runs scripts written in its own scripting language, SenseTalk.
The EggPlant connector allows you to take images from an EggPlant project and use them as variables in code snippets of SenseTalk scripts.
A tree-view connector panel for incorporating images found by TestPlant EggPlant Functional is available, allowing you to produce SenseTalk scripts.
There are two ways to add objects and actions to blocks:
- Dragging and dropping EggPlant images
- Typing code directly in the block using the autocomplete functionality
Add objects and actions by dragging and dropping images
- Open a flow.
- Load a configuration for EggPlant (SenseTalk) scripting.
- Go toConnectors,Automation.
- From theFrameworkdrop-down list, select EggPlant.
- Browse for an EggPlant suite. Images from the EggPlant suite will be shown in the tree.
- Drag an EggPlant image onto the canvas.A pop-up is created for choosing the Object and Action of the parameter you want to add.
- Select an action that uses an EggPlant image as a variable, or at least an action that has a variable.The name of the image should appear in the first variable of the current action.
- ClickOK.
Repeat this procedure to create a model that generates SenseTalk scripts.
Add objects and actions by typing code in block properties
First, create a code-completion-enabled configuration.
- Go toFile,Configuration,Automation.
- Create a new automation layer.
- In the Objects & Actions Tab, add an object and actions.When you add actions that have variables in them, include the variable in the name of the action. For example, you could have an action named " Enter Text "~TEXT~" " with a snippet: " App.WriteText("~TEXT~"); ".
- Save the configuration.
Now you can start adding the code.
- Double click a block or right-click and selectEdit Item.
- On the General tab, start typing the name of an action available in the currently loaded configuration, into a field that has been enabled for code completion (for example, Description).
- Select the desired Action from the drop-down list.If the Action has any variables identified by its name (marked between tildes), then they will be highlighted in yellow and the first variable in the completed action name will be selected.
- Start typing the EggPlant image name, select it from the completion list and press Enter. The image name should now have replaced the placeholder for the variable in the action name in the field.
- Go to the Automation tab. A corresponding action should have been created, with the image name as a variable in it.
Repeat this procedure to create a model that generates SenseTalk scripts.