X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Fyaz-ztest-man.xml;h=dfa1b3a96082da1ff39593ba7a27e53dfd1f356f;hp=566c938affc98d26dce0ebf7a38445d354cc4c62;hb=cca8a96be6d6ce6de52009e53e23876ce2fc195c;hpb=a85807bde8a4a08706d266bd7dd089fb6778e281 diff --git a/doc/yaz-ztest-man.xml b/doc/yaz-ztest-man.xml index 566c938..dfa1b3a 100644 --- a/doc/yaz-ztest-man.xml +++ b/doc/yaz-ztest-man.xml @@ -17,18 +17,18 @@ &version; Index Data - + yaz-ztest 8 System management commands - + yaz-ztest Z39.50/SRU Test Server - + &gfs-synopsis; @@ -64,14 +64,30 @@ TESTING yaz-ztest normally returns a random hit count between - 0 and 24. However, if a query term includes leading digits, then the + 0 and 24. However, if a query term includes leading digits, then the integer value of that term is used as hit count. This allows testers to return any number of hits. yaz-ztest includes - 24 MARC records for testing. Hit counts exceeding 24 will make + 24 MARC records for testing. Hit counts exceeding 24 will make yaz-ztest return the same record batch over and over.. So record at position 1, 25, 49, etc .. are equivalent. + For XML if no element set is given or element has value "marcxml", + MARCXML is returned (each of the 24 dummy records converted from + ISO2709 to XML). For element set OP, OPAC XML is returned. + + + yaz-ztest may also return predefined XML records (for testing). + This is enabled if YAZ_ZTEST_XML_FETCH environment + variable is defined. A record is fetched form a file (one record per file). + The path for the filename is + FE.d.xml + where F is the YAZ_ZTEST_XML_FETCH value + (possibly + empty), E is element-set, + d is record position (starting from 1). + + The following databases are honored by yaz-ztest: Default, slow and db.* (all databases with prefix "db"). Any @@ -96,7 +112,7 @@ a random sleep between the first and second number. - The database parameter seed takes an integer + The database parameter seed takes an integer as value. This will call srand with this integer to ensure that the random behavior can be re-played.