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

Revision 4 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

option1 option  

Actual

option1 option  

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

Actual

Nested formatted search with format and $dollar and $percnt

Expected

Actual

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


This topic: TestCases > WebHome > TestCaseAutoFormattedSearch
Topic revision: 25 Jan 2007, ProjectContributor
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads