Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
FunctionalLucenePluginRankingTest Class Reference
Inheritance diagram for FunctionalLucenePluginRankingTest:
FunctionalLucenePluginBaseTestCase WebTestCase

Public Member Functions

 testPagination ()
 
 testResultOrdering ()
 

Additional Inherited Members

- Protected Member Functions inherited from FunctionalLucenePluginBaseTestCase
 simpleSearch ($searchPhrase, $searchField= 'query', $articles=array(), $notArticles=array(), $locale= 'en_US', $journal= 'lucene-test')
 
 simpleSearchAcrossJournals ($searchTerm, $locale= 'en_US')
 
- Protected Member Functions inherited from WebTestCase
 getAffectedTables ()
 
 improveException ($e, $testObject)
 
 logIn ()
 
 setUp ()
 
 tearDown ()
 
 verified ()
 
 verifyAndOpen ($url)
 

Detailed Description

Integration/Functional test for the lucene plug-in and its dependencies (result set pagination, ordering and ranking).

See Also
LucenePlugin

Definition at line 21 of file FunctionalLucenePluginRankingTest.php.

Member Function Documentation

FunctionalLucenePluginRankingTest::testPagination ( )

SCENARIO: Pagination: page links GIVEN I have executed a search that returns more than 25 articles in its result set AND I am looking at the result page THEN I see a set of paging links below the result set

SCENARIO: Pagination: turn page GIVEN I have executed a search that returns more than 25 articles in its result set AND I am looking at the result page WHEN I click on one of the paging links below the result set THEN I will see a different page of the same result list

Definition at line 37 of file FunctionalLucenePluginRankingTest.php.

References FunctionalLucenePluginBaseTestCase\simpleSearch().

FunctionalLucenePluginRankingTest::testResultOrdering ( )

SCENARIO OUTLINE: Result ordering GIVEN I am looking at the result page of a {search type}-journal result set for the search phrase {keywords} WHEN I select {order criterium} and {order direction} THEN I will see a different result list re-ordered by the changed criterium and in the given direction. This can be seen by looking at the first {article id} in the result set.

EXAMPLES:

search type | keywords | order criterium | order direction | article id

single | chicken AND (wings OR feet) | relevance | descending (default) | 5 single | chicken AND (wings OR feet) | relevance | ascending | 4 single | chicken AND (wings OR feet) | author | ascending (default) | 4 single | chicken AND (wings OR feet) | author | descending | 5 single | chicken AND (wings OR feet) | publication date | descending (default) | 5 single | chicken AND (wings OR feet) | article title | ascending (default) | 5 single | chicken AND (wings OR feet) | article title | descending | 4 multi | test NOT ranking | issue publ. date | descending (default) | 3 multi | test NOT ranking | journal title | ascending (default) | 3 multi | test NOT ranking | journal title | descending | 1

SCENARIO: Journal title ordering: single-journal search WHEN I am doing a single-journal search THEN I will not be able to order the result set by journal title.

SCENARIO: Journal title ordering: multi-journal search WHEN I am doing a multi-journal search THEN I can order the result set by journal title.

Definition at line 106 of file FunctionalLucenePluginRankingTest.php.

References FunctionalLucenePluginBaseTestCase\simpleSearch(), and FunctionalLucenePluginBaseTestCase\simpleSearchAcrossJournals().


The documentation for this class was generated from the following file: