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
TWikiContributor
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
Revision 4 has parent TestCaseAutoFormattedSearch and it contains the form FormattedSearchForm
Actual
Revision 4 has parent TestCaseAutoFormattedSearch and it contains the form FormattedSearchForm
Formatted single level with separator
Expected
FormattedSearch1, FormattedSearch2
Actual
FormattedSearch1, FormattedSearch2
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 singled level search - Table and $summary
Expected
| Topic |
Summary |
Name |
Role |
Testsample |
| FormattedSearch1 |
Michael Anchor is a famous Danish painter. He never painted $web, $n, $nop, $quot, $percnt or $dollar. He was married to Anna Anchor who was also a great painter. ... |
Michael Anchor |
FormattedSearch2 |
$nop, $quot, $percnt, $dollar in $formfield() |
| FormattedSearch2 |
Michael Anchor and Anna Anchor lived in Skagen in Denmark. There is a very nice museum you can visit This text is fill in text which is there to ensure that the unique ... |
Anna Anchor |
Painter |
$summary |
Actual
| Topic |
Summary |
Name |
Role |
Testsample |
| FormattedSearch1 |
Michael Anchor is a famous Danish painter. He never painted $web, $n, $nop, $quot, $percnt or $dollar. He was married to Anna Anchor who was also a great painter. ... |
Michael Anchor |
FormattedSearch2 |
$nop, $quot, $percnt, $dollar in $formfield() |
| FormattedSearch2 |
Michael Anchor and Anna Anchor lived in Skagen in Denmark. There is a very nice museum you can visit This text is fill in text which is there to ensure that the unique ... |
Anna Anchor |
Painter |
$summary |
Formatted singled level search - header
Expected
The header contains TestCases "Hey" TestCases $summary
Formatted search result FormattedSearch1
Formatted search result FormattedSearch2
Actual
The header contains TestCases "Hey" TestCases $summary
Formatted search result FormattedSearch1
Formatted search result FormattedSearch2
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, WebStatistics
- 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