How to Import an XSD File
An XML Schema Definition (XSD) can be imported into GenRocket to automatically create Domains, Attributes, and other necessary components that represent an XML document.
This allows you to quickly define and generate test data for complex nested Extensible Markup Language (XML) documents by importing an XML Schema Definition (XSD) that formally describes the elements and nesting in an XML Document.
By importing an XSD into the GenRocket web platform, you are just a few steps away from generating any of the XML test data necessary for your test cases.
How to import Domains from XSD
Step 1: Expand the New Domain drop-down menu within the Domains Pane and select the Import from XSD option.
Step 2: Click the Choose File button. This will bring up a dialog to select a file from your computer.
Step 3: Browse to and select the XSD file you want to import.
Note: The dialog will filter only the files with the .xsd extension.
Step 4: After selecting your XSD to download, click the Save button.
Step 5: You will see the following message. Click the OK button.
Note: An email notification will be sent once the import has completed. It should only take a few minutes.
GenRocket will utilize its data warehouse and do its best to assign an appropriate Generator to each Domain Attribute; however, you may need to modify a few of the Attribute Generators to generate the exact type of data you need for your test cases.
How to assign a Generator to an Attribute