Generating OID Test Data

This command line tool generates Omni Interface Document (OID) sample XML files with random values for a specific subject. From the Omni Server installation location, run omni.cmd on Windows or omni.sh on Linux, as shown in the following syntax:

>omni createTestOIDFiles -Dsubject=Person -Dout.dir=c:/temp/OIDGeneration
-Dcount=4 -Dids.dir=C:/Temp/omni30_1/3.0.0-SNAPSHOT/OmniServer/bundle/artifacts/server/IDS
-Dvalues.file=c:/temp/OIDGeneration/valueset.txt

where:

subject

Is required and is case-sensitive.

out.dir

Is optional, but defines where to save the test files. The default value is system property user.dir.

count

Is the number of OID files. The default is 10.

ids.dir

Is an optional directory where the IDS document of the subject is stored. The default is:

$install_location/OmniServer/bundle/generated/ids
values.file

Is optional, but can be used to specify a value for an element or attribute in the generated XML files, instead of random values. The file contains key=value pairs. A key is an Xpath of a particular element or an attribute in the XML file. Values are a list of values separated by a pipe (|). For example, the following are valid key=value pairs for the subject, Person.

/OmniInterface/Person/ssn=123456789|223456789|323456789|423456789
/OmniInterface/Person/maritalStatus/@codeSet=test_code_set
/OmniInterface/Person/names/PersonName/SourceStatusCode/@codeSet=test_code_set
/OmniInterface/Person/names/PersonName/SourceStatusCode=test_code