Blame view

test/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteResponderTests/SuiteSearchResponder/TestTitleSearch/content.txt 1.62 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
!c !2 Title Search

Searches for the specified string in all of the WikiPage title in the wiki.
It's triggered by the following URL:

http://<host>/search?responder=search&searchType=titles&searchString=<text>

!include SamplePages

First let's perform a silly search.  We'll look for a page named blah.
|Response Requester.|
|uri   |status?|
|!-search?responder=search&searchType=titles&searchString=blah-!||

Let's make sure the titles in and information is correct.
|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|!-Title Search Results for 'blah'-!|true||

Make sure we get !-PageAbc-! in the result list.
|Response Examiner.|
|type  |pattern|matches?|
|contents|No pages matched your search criteria.|true|

Now search for ABC.
|Response Requester.|
|uri   |status?|
|!-search?responder=search&searchType=titles&searchString=ABC-!||

Make sure we get !-PageAbc-! in the result list.
|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|!-PageAbc-!|true||

Now search for xyz.
|Response Requester.|
|uri   |status?|
|!-search?responder=search&searchType=titles&searchString=xyz-!||

Make sure we get !-XyzPage-! in the result list.  Searches are case insensitive.
|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|!-XyzPage-!|true||

Now search for the word page.
|Response Requester.|
|uri   |status?|
|!-search?responder=search&searchType=titles&searchString=page-!||

Make sure we get all 4 pages in the result list.
|Response Examiner.|
|type  |pattern|matches?|
|contents|!-PageAbc-!|true|
|contents|!-XyzPage-!|true|
|contents|!-BasePage-!|true|
|contents|!-BasePage.ChildPage-!|true|