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:
 
  1. Open a flow.
  2. Load an automation configuration.
  3. Go to 
    Connectors
    Automation
    .
  4. From the 
    Framework
     drop-down list, select 
    Automation Actions
    .
  5. Select the target 
    Layer
     from the drop-down list.
  6. Expand a 
    Configuration Object
     and add code snippets to the flow.
    • To create a new block:
      1. Drag the action onto an empty space on the canvas.
      2. Fill out the variables and object name of the Automation Step to be added.
      3. Click 
        OK
        .
        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:
      1. Drag the action onto an existing block on the canvas.
      2. If it is a decision block, select the outputs to which you want to add the action. 
      3. Fill out the variables and object name of Automation Step to be added.
      4. Click 
        OK
        .
        The automation step is added to the block.
  7. 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:
 
  1. Open a flow.
  2. Go to 
    Connectors
    Automation
    .
  3. From the 
    Framework
     drop-down list, select Ranorex.
  4. Browse for the Ranorex repository file that you want to import.
  5. 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.
    If the item is dragged onto the canvas, a block will be created when you select an action for the repository item. That block will then contain the corresponding parameter in its automation tab.
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
 
  1. Open a flow.
  2. Load a configuration for EggPlant (SenseTalk) scripting.
  3. Go to 
    Connectors
    Automation
    .
  4. From the 
    Framework
     drop-down list, select EggPlant.
  5. Browse for an EggPlant suite. Images from the EggPlant suite will be shown in the tree.
  6. 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.
  7. 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.
  8. Click 
    OK
    .
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. 
  1. Go to 
    File
    Configuration
    Automation
    .
  2. Create a new automation layer.
  3. 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~"); ".
  4. Save the configuration.
Now you can start adding the code.
  1. Double click a block or right-click and select 
    Edit Item
    .
  2. 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).
  3. 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.
  4. 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.
  5. 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.