Description: Automated formatted search tests.
Results dependent on templates used to render search results. Tests only make sense when this topic is viewed with "pattern" skin and standard search templates.
run this test
Designed by: Kenneth Lavrsen
  Simple formatted search 
  Expected 
I found FormattedSearch1
  Actual 
I found FormattedSearch1
  Formatted singled level search with $web, $topic, $wikiname, $n 
  Expected 
TestCases TestCaseAutoFormattedSearch
@WIKIWORD 
  Actual 
TestCases TestCaseAutoFormattedSearch
ProjectContributor
  Formatted Search with $topic(5) 
  Expected 
Forma- ttedS- earch- 1
  Actual 
Forma- ttedS- earch- 1
  Formatted singled level search with $topic(5, -<br />) 
  Expected 
Forma-
ttedS-
earch-
1
  Actual 
Forma-
ttedS-
earch-
1
  Formatted singled level search with $topic(5, ...) 
  Expected 
Forma...
  Actual 
Forma...
  Formatted singled level search with $rev, $parent and $formname 
  Expected 
_Note that the .txt says it is rev 4, but because there is no ,v to back this up
it is treated as rev 1_
Revision 1 has parent TestCaseAutoFormattedSearch and it contains the form FormattedSearchForm
  Actual 
Revision 1 has parent TestCaseAutoFormattedSearch and it contains the form FormattedSearchForm
  Formatted single level with separator 
  Expected 
FormattedSearch1, FormattedSearch2, FormattedSearch3
  Actual 
FormattedSearch1, FormattedSearch2, FormattedSearch3
  Formatted search with pattern and multiple 
  Expected 
Clients,People,Rooms,Buildings
  Actual 
Clients,People,Rooms,Buildings
  Formatted search with counting 
Note the counter counts the number of lines with the pattern. Not the number of actual patterns. Is this intented?
  Expected 
Found 4
  Actual 
Found 4
  Formatted search with $text and multiple 
  Expected 
  Actual 
  Formatted search with $summary 
  Expected 
MichaelAnchor and AnnaAnchor lived in Skagen in DenmarkEurope!. There is a very nice museum you can visit!
  Actual 
MichaelAnchor and AnnaAnchor lived in Skagen in DenmarkEurope!. There is a very nice museum you can visit!
  Formatted singled level search - header 
  Expected 
The header contains TestCases "Hey" TestCases $summary
Formatted search result FormattedSearch1
Formatted search result FormattedSearch2
Formatted search result FormattedSearch3
  Actual 
The header contains TestCases "Hey" TestCases $summary 
Formatted search result FormattedSearch1
Formatted search result FormattedSearch2
Formatted search result FormattedSearch3
  Formatted singled level search with escaped characters 
  Expected 
FormattedSearch1 has $formfield(Name) = Michael Anchor
  Actual 
FormattedSearch1 has $formfield(Name) = Michael Anchor
  Nested formatted search with format and $percnt 
  Expected 
- FormattedSearch1 is referenced by:
- TestCaseAutoFormattedSearch 
 
- FormattedSearch2 is referenced by:
- FormattedSearch1, TestCaseAutoFormattedSearch 
 
  Actual 
 
-  FormattedSearch1 is referenced by: 
-  TestCaseAutoFormattedSearch
 
-  FormattedSearch2 is referenced by: 
-  FormattedSearch1, TestCaseAutoFormattedSearch
 
  Nested formatted search with format and $dollar and $percnt 
  Expected 
- FormattedSearch1 has formfield(Testsample) = $nop, $quot, $percnt, $dollar in $formfield()
- FormattedSearch2 has formfield(Testsample) = $summary
 
  Actual 
 
-  FormattedSearch1 has formfield(Testsample) = $nop, $quot, $percnt, $dollar in $formfield() 
-  FormattedSearch2 has formfield(Testsample) = $summary
 
  Extract from table 
  Expected 
option1
option2
option3
  Actual 
option1
option2
option3
  Combinations 1 
  Expected 
FormattedSearch1 parent is TestCaseAutoFormattedSearch
FormattedSearch2 parent is TestCaseAutoFormattedSearch
  Actual 
FormattedSearch1 parent is TestCaseAutoFormattedSearch
FormattedSearch2 parent is TestCaseAutoFormattedSearch