-
Notifications
You must be signed in to change notification settings - Fork 0
Text Search
iks github user edited this page Nov 15, 2019
·
6 revisions
Searching for a specific text is one of the three different approaches of the SysNat DocVal Framework. The following natural language instructions exist to follow this approach:
The document consists of "12" page(s).
The document contains the sequence "Software".
The document contains on page 8 the sequence "Author".
The document contains on page 9 in line 2 the sequence "Figure 1".
The document contains on page with sequence "Content" the sequence "Preface".
The document contains on page with sequence "Summary" in line 3 the sequence "Table".
Having defined validation rules like this in a nldocval file (e.g. TextSearch.nldocval), an Executable Example (XX) or an Natural language script can use the following instruction:
Does document 'MyDocument.pdf' match the validation rules defined in "TextSearch.nldocval"?
Alternatively, the document can be validated directly in the XX without writing a nldocval file:
Does document 'MyDocument.pdf' consists of "8" page(s)?
Does document 'MyDocument.pdf' contain the sequence "Figure 1"?
Does document 'MyDocument.pdf' contain on page 8 the sequence "Author".
Does document 'MyDocument.pdf' contain on page 9 in line 2 the sequence "Figure 1".
Does document 'MyDocument.pdf' contain on page with sequence "Content" the sequence "Preface".
Does document 'MyDocument.pdf' contain on page with sequence "Summary" in line 3 the sequence "Table".
See also this example.