Adding a schema
You can add a single schema or a directory that contains multiple schemas to the Schema Library view after which you can apply the schema to messages in your tests. You can specify the type of schema to add or use HCL OneTest™ API to determine the type.
Before you begin
Adding a schema explicitly
Procedure
- Click the arrow next to the Add button on the toolbar.
- Select a schema category from the displayed list.Only a subset of categories and schema types is available when you add a schema.
- Select a schema type from the category > subcategory that you want to add.
Results
What to do next
Category | Subcategory | More information... |
---|---|---|
Business & Finance |
|
|
Mainframe |
|
|
Objects |
|
|
Other |
|
|
Web |
|
|
Adding a schema without explicitly specifying the type
Procedure
-
Click Add on the toolbar.
The Open dialog is displayed.
-
Select a file or a directory that contains multiple source files that contain the schema by performing the following steps:
- Browse to the location where you have the schemas.
- Open the folder to select a file or select the folder that contains multiple files.
- Click Open.
Any of the following results can occur:- If the selected file has a supported type of file extension and the contents are correctly parsed, the schema is added under the recognized schema type to the Schema Library. You have no further action to perform.
- If the selected files or directory contains file extensions that are either not recognized or can apply to multiple schema, any of the following dialog boxes can be displayed. You can perform the action as indicated:
dialog Cause Action Unrecognized file extension
If the selected files cannot be recognized as any of the supported schema types by HCL OneTest™ API.
You must add the schemas explicitly by performing the following steps:- Click OK.
- Go to Adding a schema explicitly.
Cannot determine the extension type
If the selected files have file extensions that can apply to different schemas and HCL OneTest™ API cannot determine which schema to apply.
You must select the schema by performing the following steps:- Select the schema to which the file is to be applied.
- Click OK.
Note: Alternatively, you can click Skip to exclude the selected file. You can then add the schema explicitly.