| | 138 | ''' Test Setup ''' |
| | 139 | * From the {{{ database }}} folder of the LCSv1 web2py application directory. Run the following command to start sqlite3 command line. |
| | 140 | {{{ sqlite3 storage.sqlite }}} |
| | 141 | * Clear the data in {{{ closures }}} table in sqlite3 using the command |
| | 142 | {{{ delete from closures; }}} |
| | 143 | * Download the attached file {{{ search_test_data.csv }}} and place it under the {{{ database }}} folder in LCSv1 web2py application directory. |
| | 144 | * From the {{{ database }}} folder, run the following command to import the testing data. |
| | 145 | {{{ .mode csv |
| | 146 | .import search_test_data.csv closures }}} |
| | 147 | * Run the following command to confirm the data is imported correctly. |
| | 148 | {{{ select * from closures; }}} |
| | 149 | It should have all the entries from id 63 to 71 ( 9 entries total) |
| | 150 | * Run the LCSv1 web2py application and open the search page on the browser. |
| | 151 | * Start testing according to the test cases in the Test Case Table below. |
| | 152 | Check if the search returns the correct entries. |
| | 153 | |