Create EDI or XML test documents

Use this procedure to create EDI or XML test documents in Document Generator and put them in an output directory.

You can run multiple sessions of the Document Generator. Each session can generate different document types, sizes and rates.

  1. In Windows:
    • Select Start > All Programs > Axway Software > Axway > Interchange > Document Generator .
    • or
    • In the application’s bin directory, double-click docGen.cmd.
  2. In UNIX log in to the Axway account you created previously, ensure that you have X Windows connectivity to the server where you installed the application. Run the following command to open the Document Generator:
  3. <install directory>/bin/docGen
  4. You also can run the Document Generator from a command line. See Run from a command line.
  5. Initial document generator display page.
  6. Click EDI or XML to open the EDI or XML Document Generator window. The two windows are similar, but only the EDI window has Control ID and Input template fields.
  7. Document generator configuration screen (EDI example).
  8. Complete the fields as described below.
  9. Click Generate to generate the number and size of documents you specified. The Document Generator continues to generate documents at the interval you specified until you click Stop or close the EDI or XML Document Generator window.

Field descriptions

The following describes the fields on the EDI and XML Document Generator windows.

  • Sender’s ID – Type the ID of the sender.
  • Receiver’s ID – Type the ID of the receiver.
  • Control ID (EDI only) – Type any numeric control ID. This is the starting number for the document counter.
  • Output Directory – Type the directory where the Document Generator writes the outbound documents. Or, use the Browse button to locate this directory. This is typically the sender’s EDI or XML out directory.
  • Input template (EDI only) – If you want to use your own X12 EDI document as the template for creating test EDI documents, click Browse to point to the document on your system. Document Generator copies your document and inserts your specified sender, receiver and control ID in the generated test documents. If you want Document Generator to create documents for you, leave this field blank.
  • Documents to generate – Type any value between 1 and 999999 to indicate the number of documents you want to create per unit of time. The Document Generator creates all of these documents at once.
  • Document size (K) – Type any value between 1 and 999999 to indicate the size of each document you want to create.
  • Regeneration time (min) – Type any value between 1 and 999999 to indicate the time in minutes the Document Generator waits to create the next document or set of documents.
  • Maximum unconsumed files – This is a fail-safe optional control to stop generating documents in the output directory after Interchange has stopped consuming messages. For example, when the server has stopped running. When the number of unconsumed documents reaches this limit, the utility stops generating documents. This prevents large numbers of unconsumed messages from piling up in the output directory.

Related topic

Related Links