Design actions

GetElements

The GetElements method retrieves the list of elements from a specified path. This call is synchronous - it blocks until all elements have been retrieved.

Parameters:

  • Path (required): A string representing the path of an element. Character ‘|’ is used as separator in the path string (for example UserPath|Actions|transaction|page|request).

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

Please note that use cases with Command Line Designer and C# Client are not available at this time.

AddElement

The AddElements method creates a design element (User Path, Transaction, Delay, etc.) and inserts it in a project. This call is synchronous - it blocks until the element is created and inserted.

Parameters:

  • Type (required): A string describing the type of element to create. List of supported types are declared in Java class com.neotys.rest.design.model.element.ElementType.
    For example, to create a User Path, the type must be filled with string “UserPath”. Type string is case insensitive.

  • Parent (optional): A string describing the UID of the parent element in which the element has to be inserted. If the element to create is a root element (User Path, Population, etc.), then no Parent needs to be specified.

  • Definition (optional): A string describing the JSON definition of the element to create.
    For example, to create element with name “myName” and description “myDescription”, the JSON string has to be {"Name":"myName", "Description":"myDescription"}.

  • Index (optional): An integer to specify the position to insert the element in the parent. If not specified, element is added at the last position.

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

Please note that use cases with Command Line Designer and C# Client are not available at this time.

GetChildren

The GetChildren method retrieves the list of children of an element specified by its UID. This call is synchronous - it blocks until all children have been retrieved.

Parameters:

  • Uid (required): A string specifying the UID of the element of which we need to retrieve the children.

  • ApiKey (optional): To authenticate the command. Required if enabled on the Controller.

Please note that use cases with Command Line Designer and C# Client are not available at this time.