Defining types
For optimum test data generation, you must define entire data of schema into types. Types are the components of schemas. After you design schema in the schema designer, you must define entire data as types by using type designer.
Adding types to a schema
The types in the schema are arranged in a hierarchy. A new schema by default has Root type. You can add subtypes to the Root type to define a schema.
Before you begin
About this task
Types are the set of data objects. A new schema has a single Root type. All types are added as subtypes of the Root type and then as subtypes of other types.
Procedure
- Select the type under which you want to add a subtype. For example, select "Root".
-
From the menu of the selected type, click Add.
The subtype is created of the similar type as of the selected type and it appears under the selected type.Note: You cannot add any type to a JSON or an XSD schema.
- Save the changes.
Results
What to do next
Copying a type
To create more types with similar properties, you can copy an existing type.
About this task
In addition to using the drag-and-drop method, you can use the menu to copy a type.
Procedure
- Select the type that you want to copy and click Copy from the menu.
- Select the target type—the type under which you want to copy the given type.
- Click Paste from the menu of the target type.
Results
What to do next
Deleting a type
When you want to remove any type from the schema, you can delete it.
Procedure
- Select the type that you want to delete and click Delete from the menu.
-
Click Yes to confirm and save the changes.
You can select more than one type simultaneously by using Multiselect option.
Note: You cannot delete any type of a JSON or an XSD schema.