Importing XSD or JSON files from the local file system

When you have an XSD or a JSON format file in your local file system, you can import the same files from the local file system into your HCL® OneTest Data project.

Before you begin

  • You must have created a project.
  • You must have an XSD or a JSON format file in your local file system.

About this task

XSD or JSON files are in schema format. To create a schema, you can import an existing schema that is in the XSD or JSON format from your local file system.

Restriction: You cannot modify all the properties of the types in an XSD or a JSON schema.

The following table shows the list of properties supported by JSON or XSD schema:

Properties JSON schema XSD schema

JavaScript rules

Yes

No

Regular expression

Yes

No

Restrictions

No

No

Default values

No

No

Procedure

  1. Select your project in Rational® Test Automation Server and go to the Data Fabrication page.
  2. Click the Schemas tab.
  3. Click XSD/JSON from the Schemas menu.
    The Import XSD/JSON dialog box is displayed.
  4. Select the JSON or XSD file that you want to import.
  5. Provide a schema name with a brief description and keywords as Tags.
  6. Click OK and save the changes.

Results

You have successfully imported XSD or JSON files from the local file system.

What to do next

You must define the types in the schema. See Defining Types.

You can also perform the following actions:

  • View the imported file listed under the Schemas tab.
  • Use the Search field to search for any schema from the existing schemas.
  • Sort the list of schemas by name, folder, and recently used schemas.