How to Test an XQuery Map

You must be in the Source Editor view to test the XQuery map.

To Test an XQuery Map:

  1. Make sure that the XQuery main module is open in the XQuery Mapper.
  2. If you are not in the Source Editor view, click the XQuery Source tab at the bottom of the XQuery Mapper window to switch to the source editor.
  3. Right-click anywhere in the source editor. Select Run XQuery from the context menu that appears.

    The Run XQuery dialog appears. Figure 42-11 shows the Run XQuery dialog.

  4. Specify values for all source variables that appear in the Source variables section.

    For simple data types, you can specify a value directly under the Value field. If your source variable uses a complex schema, click the ellipses (. . .) button to bring up the Edit Variable dialog. You can use an existing XML file to specify test data for the variable, or create an XML file with test data. Click Help for additional help with completing the Edit Variable dialog.

  5. Select Open result in a new tab in JDeveloper if you want to use a new tab to display test results. Select Save target file to save the result file. You must select one, or both, of these options.
  6. Click the Save icon to the right of Target filename to specify a result file into which the result data is saved.

    You must specify a Target filename even if you haven't selected Save target file in the preceding step.

  7. Optionally select Autosave configuration to automatically save the configuration settings when the XQuery is run. The next time you try to run the XQuery, the configuration settings are retrieved.
  8. If you want to save the settings made in the Run XQuery dialog, click Save Configuration.
  9. If you want to delete any previously saved configuration settings, click Delete Configuration.
  10. Click Run to run the XQuery.