https://github.com/zoff99/zanavi_tests_docu
ZANavi Tests Documentation
https://github.com/zoff99/zanavi_tests_docu
Last synced: 4 months ago
JSON representation
ZANavi Tests Documentation
- Host: GitHub
- URL: https://github.com/zoff99/zanavi_tests_docu
- Owner: zoff99
- License: gpl-2.0
- Created: 2016-01-20T11:23:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T08:48:40.000Z (over 10 years ago)
- Last Synced: 2025-03-27T16:24:49.359Z (about 1 year ago)
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ZANavi Tests Documentation
==========================
filename:
[a-zA-Z0-9_-]*.yaml
file specs:
all lines beginning with '#' are comments and are ignored by the test routine
each test file can only contain exactly 1 test with 1 success criterion
file content:
[type: '<searchtype1>'] # optional, if not specified then do a routing test
for routing test:
from:
lat: <latitude as float number>
lng: <longitude as float number>
[ heading: <heading as float number>]
[optional blank lines]
to:
lat: <latitude as float number>
lng: <longitude as float number>
[optional blank lines]
success:
source: '<src1>'
item: '<item1>'
value: <expected value as int number OR string value UTF-8>
operator: '<ops1>'
for search test:
input:
street: '<string UTF-8 OR empty>'
city: '<string UTF-8 OR empty>'
housenumber: '<string UTF-8 OR empty>'
[optional blank lines]
success:
item: '<item2>'
value: <expected value as int number OR string value UTF-8>
operator: '<ops2>'
accepted values for ops1 (only the first 3 are accepted for string values):
==
!=
<>
>
<
=>
>=
<=
=<
accepted values for ops2 (only the first 4 are accepted for string values):
==
!=
<>
like # this is just an exact substring comparsion, NO conversion or REGEX
>
<
=>
>=
<=
=<
accepted values for src1:
dbus # only with status
gpx # only with nodes, nav<n>
accepted values for searchtype1:
RT # routing test
NS # normal search test
IS # index search test
accepted values for item1:
nodes
status
nav<n> # n is the number of the n-th navigation item to be used for the criterion (counting starts from zero!)
accepted values for item2:
resultcount
result<n> # n is the number of the n-th result item to be used for the criterion (counting starts from zero!)