Importing XSD or JSON files from 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 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 which is in XSD or JSON format from your local file system.

Procedure

  1. Select your project in HCL OneTest 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 appears.
  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 achieved the following results:
  • 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.

What to do next

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