X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fyaz-ztest-man.xml;h=14f743c4e2fe7f10061bee6b3fc5c74ebfcb1aff;hb=66490c4cd60228c4036596003a8f24373cbd0fd8;hp=52595f3bdead01277c823f71d34ebbaf2bb887ee;hpb=8b7e5ea3521972629d28b40db92c30ce91ffd314;p=yaz-moved-to-github.git diff --git a/doc/yaz-ztest-man.xml b/doc/yaz-ztest-man.xml index 52595f3..14f743c 100644 --- a/doc/yaz-ztest-man.xml +++ b/doc/yaz-ztest-man.xml @@ -5,12 +5,12 @@ %local; %entities; - - %common; + + %idcommon; + ]> - YAZ @@ -58,7 +58,53 @@ OPTIONS &gfs-options; - VIRTUAL HOSTS + + TESTING + + yaz-ztest normally returns a random hit count between + 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 + yaz-ztest return the same record batch over and over.. + So record at position 1, 25, 49, etc .. are equivalent. + + + The following databases are honored by yaz-ztest: + Default, slow + and db.* (all databases with prefix "db"). Any + other database will make yaz-ztest return diagnostic + 109: "Database unavailable". + + + Options for search may be included in the form or URL get arguments + included as part of the Z39.50 database name. The following + database options are present: search-delay, + present-delay, fetch-delay + and seed. + + + The former, delay type options, specify + a fake delay (sleep) that yaz-ztest will perform + when searching, presenting, fetching records respectively. + The value of the delay may either be a fixed floating point + value which specifies the delay in seconds. + Alternatively the value may be given as two floating point numbers + separated by colon, which wil make yaz-ztest perform + a random sleep between the first and second number. + + + 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. + + + Suppose we want searches to take between 0.1 and 0.5 seconds and + a fetch to take 0.2 second. To access test database Default we'd use: + Default?search-delay=0.1:0.5&fetch-delay=0.2. + + + GFS CONFIGURATION AND VIRTUAL HOSTS &gfs-virtual; FILES @@ -69,7 +115,7 @@ yaz-<version>/include/yaz/backend.h - SEE ALSO + SEE ALSO yaz @@ -80,9 +126,6 @@ 7 - - Section "Generic server" in the YAZ manual. -