Create List

Description

This operator is used to create a list with specified content. It provides two creation modes: one is to directly parse the user-input JSON format text to generate a list; the other is to generate a list containing repeated elements based on the specified length, element type, and element value.

Overview

Quickly creates list data, supporting specified content or specified length, used for batch generation of test data.

Scenarios

  • Data Initialization: Create a fixed list as initial data at the beginning of the algorithm flow.

  • Generate Placeholder Data: Create a list of a specified length filled with default values (such as 0 or empty strings) to serve as a container or mask for subsequent operators.

  • Manual Data Entry: Convenient for users to directly input a set of test data or parameter lists (such as a set of thresholds, a set of coordinate points, etc.) on the interface without reading from an external file.

Inputs and Outputs

Inputs

Empty Input: No external data input is required; the result can be output by configuring parameters. If triggering is required during graph execution, this parameter needs to be checked as a mapped parameter.

Outputs

List: The list generated based on parameter settings.

Parameters

Creation Mode

Description

Select the list construction method to generate the corresponding list.

Tuning Instructions

  • Specify Content: Generates a list by directly parsing user-input JSON format text.

  • Specify Length: Generates a list containing repeated elements based on the specified length, element type, and element value.

Parameter Range

Values/Range:

  • Specify Content

  • Specify Length

Default: Specify Content

List Length

Tuning Instructions

Specify how many elements are contained in the generated list. Enter a positive integer, and the operator will repeatedly fill the "Element Value" based on this length.

Input Content

Tuning Instructions

Input the specified list content, e.g., number list: [1, 2, 3], string list: [a, b, c], boolean type: [true, false], mixed list: [1, a, true].

Parameter Range

Default:

Element Value

Tuning Instructions

Specify the specific value or content used to fill the list.

Parameter Range

Default:

Element Type

Tuning Instructions

Specify the data type of the elements in the list.

Parameter Range

Values/Range:

  • String

  • Integer

  • Float

  • Boolean

  • List

Default: String