1 | % $Id: filter.tex 2013 2006-02-17 08:17:49Z jari $ |
---|
2 | |
---|
3 | \section{Filter} |
---|
4 | This test is common for all filters. There are more specific testing |
---|
5 | under each chapter that uses these functions.\\ |
---|
6 | Make sure that all columns are visible before the test is started. |
---|
7 | \subsection{Query filters} |
---|
8 | \begin{enumerate} |
---|
9 | \item Test each column filter seperatly and control that the list |
---|
10 | contains the right items. Test the filter with '\userinput{\%}' in the |
---|
11 | search string. |
---|
12 | \item If the column contains dates the following test should be |
---|
13 | done to the filter otherwise skip this step.\\Pick a date that is |
---|
14 | present when the list is unfiltered and filter the column with this date typed in the different formats below: |
---|
15 | \begin{itemize} |
---|
16 | \item \userinput{[YYYY-MM-DD]} |
---|
17 | \item \userinput{[YYYYMMDD]} |
---|
18 | \item \userinput{[DD-MM-YYYY]} |
---|
19 | \end{itemize} |
---|
20 | The first format is the one that is used in BASE2 and should give the expected |
---|
21 | result. |
---|
22 | \item Test to apply more than one column filter at the same time and |
---|
23 | control that the result is right. |
---|
24 | \end{enumerate} |
---|
25 | \subsection{Presets} |
---|
26 | \begin{enumerate} |
---|
27 | \item Configure one or more columns to be filtered. |
---|
28 | \item Click on \click{Save as...} in the '-view/presets-' drop-downlist to save |
---|
29 | the filter as a preset. |
---|
30 | \item Call the preset for \userinput{testfilter} and uncheck \checkbox{Overwrite |
---|
31 | exixting} and \checkbox{Public}. |
---|
32 | \item Press \button{Ok}. |
---|
33 | \item Click on \click{Clear filter} in the '-view/presets-' drop-downlist. All |
---|
34 | items in the current list should be showed(no filter). |
---|
35 | \item Select the preset, that was created before, from the drop-downlist |
---|
36 | and control that the filter gives the right result. |
---|
37 | \item Preform the step 2-6 again, but hide/view some other columns |
---|
38 | and check \checkbox{Overwrite existing} before the preset is saved. |
---|
39 | \item Click on \click{Manage...} in the drop-downlist. |
---|
40 | \item Load the preset called testfilter by clicking on the preset's |
---|
41 | \click{Load} link. Did the filter work? |
---|
42 | \item Open the manage-window again. |
---|
43 | \item Delete the testfilter - preset by clicking on \click{Delete} for |
---|
44 | these preset. Press the button \button{Close} to close the preset-window. |
---|
45 | \item The preset should be erased from the `-view/preset-' drop-downlist. |
---|
46 | \end{enumerate} |
---|
47 | \subsubsection{Owned by../Shared by..} |
---|
48 | Followoing steps shall be tested in the cases when it's possible |
---|
49 | to limit the listed items to be just the ones owned by the user, shared |
---|
50 | to the user and/or owned by other users. |
---|
51 | \begin{enumerate} |
---|
52 | \item Make sure that all three, 'Owned by me','Shared to me' and |
---|
53 | 'Owned by others' are unchecked(not marked with a 'x'). Is the list empty? |
---|
54 | \item Click on \click{Owned by me} from the drop-downlist.\\Is the list |
---|
55 | only containing items that are own by the current user?. |
---|
56 | \item Click on \click{Owned by me} to not view items that are owned by |
---|
57 | the current user. |
---|
58 | \item Do step 2 and 3 with both \click{Shared to me} and \click{Owned by others}. The listed |
---|
59 | items should only be those who are shared to the user and owned by |
---|
60 | others respectively. |
---|
61 | \item Test to combine the options: |
---|
62 | \begin{itemize} |
---|
63 | \item Owned by me and Owned by others |
---|
64 | \item Owned by me and Shared to me |
---|
65 | \item Owned by others and Shared to me |
---|
66 | \item Owned by me, Owned by others and Shared to me |
---|
67 | \end{itemize} |
---|
68 | Do the cases give the expected results? |
---|
69 | \end{enumerate} |
---|