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

You have a schema for your project.

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

  1. Select the type under which you want to add a subtype. For example, select "Root".
  2. 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.
  3. Save the changes.

Results

You can view the nested structure of types.

What to do next

You must define the properties of the types of the schema. For information about how to setup type properties, see related links at the end of this page.

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

  1. Select the type that you want to copy and click Copy from the menu.
  2. Select the target type—the type under which you want to copy the given type.
  3. Click Paste from the menu of the target type.

Results

You can view a new type with the properties similar to an existing type.

What to do next

You can modify the name, description, and the properties of the copied type.

Deleting a type

When you want to remove any type from the schema, you can delete it.

Procedure

  1. Select the type that you want to delete and click Delete from the menu.
  2. 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.

Results

The selected type is deleted.