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
- Select your project in HCL OneTest™ Server and go to the Data Fabrication page.
- Click the Schemas tab.
-
Click XSD/JSON from the .
The Import XSD/JSON dialog box is displayed.
- Select the JSON or XSD file that you want to import.
- Provide a schema name with a brief description and keywords as Tags.
- 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 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.