Changeset 2024


Ignore:
Timestamp:
Feb 17, 2006, 4:59:13 PM (18 years ago)
Author:
Martin Svensson
Message:

Updated testdocument for List columns,Filter and User admin

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/test/gui/filter.tex

    r2013 r2024  
    22
    33\section{Filter}
     4\label{sFilter}
    45This test is common for all filters. There are more specific testing
    56under each chapter that uses these functions.\\
     
    2930  the filter as a preset.
    3031\item Call the preset for \userinput{testfilter} and uncheck \checkbox{Overwrite
    31 exixting} and \checkbox{Public}.
    32 \item Press \button{Ok}.
     32exixting} and \checkbox{Public} and press \button{Ok}.
     33\item Try to save the filter once again as the previous step describe
     34to see that it isn't possible to overwrite an existing preset if
     35\checkbox{Overwrite existing} is unchecked.
    3336\item Click on \click{Clear filter} in the '-view/presets-' drop-downlist. All
    3437  items in the current list should be showed(no filter).
     
    3639  and control that the filter gives the right result.
    3740  \item Preform the step 2-6 again, but hide/view some other columns
    38   and check \checkbox{Overwrite existing} before the preset is saved.
     41  and check \checkbox{Overwrite existing} before the preset is saved
     42  to see that it is possible to overwrite a preset.
    3943\item Click on \click{Manage...} in the drop-downlist.
    4044\item Load the preset called testfilter by clicking on the preset's
  • trunk/doc/test/gui/listcolumns.tex

    r2013 r2024  
    22
    33\section{List columns}
     4\label{sListColumns}
     5These tests are common for all listpages.
    46Each test case starts from the Column dialogbox if nothing else is
    57said. The dialogbox can be accessed in one of two following ways: with the tab
    68\tab{Column...} or by clicking on \click{Other...} in the '-view/preset-'
    7 drop-downlist.\\This chapter is common for all the pages that have a
    8 list of some kind and where the columns can be arranged in different ways.
     9drop-downlist.
    910\subsection{Hide}
    1011\begin{enumerate}
     
    1516\item Mark two column-names(not marked as required) in the
    1617  list of visible columns and move them to the list of hidden
    17   columns by pressing the button \button{\lt}.
    18 \item Press the \button{Ok} to see the result.\\Does the table look
    19   like as expected?
     18  columns by pressing the button \button{\rt}.
     19\item Press the \button{Ok} to see the result.\\Does the table have
     20  look that it was exptected to have?
    2021\end{enumerate}
    2122
    2223\subsection{Show}
    2324\begin{enumerate}
    24 \item Mark two column names in the list of hidden columns
     25\item Mark two column names in the list of hidden columns.
    2526\item Move them to the list of visible columns by pressing the
    2627  button \button{\lt}. Were they added in the buttom of the list?
     
    3233Make sure that there are more than three names in the list of visible columns
    3334\begin{enumerate}
    34 \item Mark the column-name that's in the bottom of list 'Visible
    35   columns'.
    36 \item Press the button \button{\ut} to move up the column name
    37 \item Press then \button{Ok}. Is the order of the columns as was
    38   expected to be?
     35\item Mark the column-name that's in the bottom of list with visible
     36  columns.
     37\item Press the button \button{\ut} to move up the column name.
     38\item Press then \button{Ok}. Is the order of the columns as it was
     39  expected?
    3940\item Open the dialogwindow for Columns again with tab
    4041  \tab{Columns...} and mark the column name that is at the top of the
    41   list 'Visible Columns'
     42  list with visible columns.
    4243\item Move down the column-name by pressing the button \button{\dt}
    4344\item Close the window with \button{Ok} and control that the columns
    44   are in the order that they are suppose to be.
     45  are in the order that they should.
    4546\end{enumerate}
    4647
    4748\subsection{Presets}
    4849\begin{enumerate}
    49 \item Click on \click{All} in the '-view/presets-' drop-downlist.\\The
    50   list should contain all the columns.
    51 \item Click on \click{Required columns} in the same drop-downlist. How
     50\item Click on \click{All columns} in the '-view/presets-' drop-downlist in
     51  mainwindow.\\The list should contain all the columns.
     52\item \label{defaultpreset}Click on \click{Default columns} in the same drop-downlist. How
    5253  does the list react?
    53 \item Click on \click{Default columns} in the same drop-downlist. How
    54   does the list react?
    55 \item Click on \click{Other...} to open the dialog window for columns. There
    56   should only be required column names in the list of visible columns.
     54\item Click on \click{Required columns} in the same
     55  drop-downlist. Only necessary columns should be visible.
     56\item Click on \click{Other...} to open the dialog window for columns
     57  in the dropdown list. There should only be required column names in
     58  the list of visible columns.
    5759\item Select one or more names in the list of hidden columns and press
    58   then on \button{\lt} to move them to the list of visible items.
    59 \item Press \button{Save as...} to open a new window where the
     60  the button \button{\lt} to move them to the list of visible items.
     61\item Press the button \button{Save as...} to open a new window where the
    6062  settings can be saved as a new preset.
    6163\item Press \button{Ok} to test that it isn't possible to save the
    6264  preset without a name.
    63 \item Give the preset the name \userinput{TestColPre} and press then
    64   \button{Ok}to save the preset.
     65\item \label{presetsave}Give the preset the name \userinput{TestColPre} and press then
     66  \button{Ok} to save the preset.
    6567\item Click on \click{Default} in the preset dropdown list. Does the columns
    66   agree to which once that were displayed in step 3?
     68  agree to which once that were displayed in step \ref{defaultpreset}?
    6769\item Click on \click{All} in the preset dropdown list. Are all columns
    6870  in the list of visible columns?
    69 \item Click on the preset that was created/saved step 8. Control that the visible columns are the ones that were set
    70   in the preset. Press \button{Ok} to view the result in the list.
     71\item Click on the preset that was created/saved in step \ref{presetsave}. Control that
     72  the visible columns are the same that were set in the preset. Press
     73  \button{Ok} to view the result in the list.
    7174\item Open the column dialogwindow with the tab \tab{Columns...}.
    72 \item Click on \click{TestColPre} in the preset dropdown list
     75\item Click on \click{TestColPre} in the preset dropdown list.
    7376\item Press \button{Delete...} to remove the preset of columns
    7477  settings. Is the deleted preset removed from the dropdown list of
  • trunk/doc/test/gui/listpages.tex

    r1971 r2024  
    22
    33\section{List pages}
     4\label{sListpage}
    45These test procedures are common for all pages that contains some kind
    56of a list.
     
    1213  selected in the list.
    1314\item Check one item from the list and click on \tab{Delete}
    14   again.\\If 'Include removed'-checkbox is checked a trash can appears
    15   beside the item's checkbox or else the item will disappear from
    16   the list?
     15  again.\\The item will disappear from the list if the listfilter not
     16  is set to show removed items. Is it set to show removed items there
     17  will be a trash can  beside the item's checkbox instead.
    1718\item Click on the tab \tab{Restore} without having any items
    1819  selected.\\There should be a message saying that at least one
    1920  item has to be selected.
    20 \item Check a list item that is marked as removed(\checkbox{Include removed} has
    21   to be checked) and click on \tab{Restore} to restore the deleted
    22   item. The trash can should disappear and the item being restored successfully.
     21\item Check a list item that is marked as removed(the filter/list must
     22  be set to show removed items) and click on \tab{Restore} to restore the
     23  deleted item. The trash can should disappear and the item being
     24  restored successfully.
    2325\item Click on \tab{Columns...} This should open a window where the list's
    24   columns can be managed. Control that the columns are relative for
     26  columns can be managed. Control that the columns are relavant to
    2527  the current list and then close the window.
    2628\item Click on the tab \tab{Export...} to open a window where the
    2729  list or certain rows/columns of the list can be exported to a
    28   file. Control that the information in the window are relative to the
     30  file. Control that the information in the window are relavant to the
    2931  current list and then close the window.
    3032\end{enumerate}
    3133\subsection{Navigator}
     34Set the hits/page so there will be at least 4 list pages.
    3235\begin{enumerate}
    3336\item Click on the \click{\rt} to view the next list page. The page
     
    3841\item Click on the \click{\tostart} to view the first page with list items.
    3942\item Test the hits/page with the following values, press 'enter'
    40   after each input and control that the number of showed items is right.
     43  after each input and control that the number of showed items and
     44  pages are right according to how many hits there are totaly.
    4145\begin{itemize}
    4246\item value that is bigger then the total number of hits.
     
    4650\item \userinput{-3}
    4751\end{itemize}
    48 The last to values are invalid but should be handled by the webclient.
     52The last two values are invalid but should be handled by the webclient.
    4953\item Set the hits/page to be less then the total number of hits and
    5054  control that the number of pages is right. Are the page numbers
     
    6468\begin{enumerate}
    6569\item Control that each list items has a link to view/edit the
    66   information in a new window.
    67 \item Click on the link for some of the items and check out how the
    68   information is displayed in the new window.
     70  information in a separate dialogwindow.
     71\item Click on the link for some of the items and check that right
     72  information is viewed in the dialogwindow.
     73\item Click on \click{Export...} to open the export window.
     74\item Set Format to be \radiobox{Tab-separated text file}. Select
     75  items to be from \radiobox{All pages} and the the columns to be
     76  \click{Current}
     77\item Leave the 'Save as' textfield empty and \checkbox{Overwrite
     78  existing file} unchecked.
     79\item Press \button{Ok} to download the file and control the contents
     80  of the file. It should agree to the items-list in the webclient.
     81\item Export the items on \radiobox{Current page} to a
     82  \radiobox{Tab-separated text file}. Check \checkbox{Overwrite
     83  existing file} and download it by press the \button{Ok} button. Does
     84  the file seems to be ok?
     85\item Export to a third file, but these time in \radiobox{XML} format
     86  and to the home-directory on BASE2 with only one exported
     87  column. Download the file and compare it with the list.
     88\item Try to export to a file with no exported columns. Is the result
     89  acceptable?
    6990\end{enumerate}
  • trunk/doc/test/gui/newcommands.tex

    r2019 r2024  
    1818\newcommand{\la}[1]{$\leftarrow$ }
    1919\newcommand{\lt}[1]{$\triangleleft$}
    20 \newcommand{\rt}[1]{$\triangleright$}
     20\newcommand{\rt}[1]{$\triangleright$ }
    2121\newcommand{\ut}[1]{$\bigtriangleup$}
    2222\newcommand{\dt}[1]{$\bigtriangledown$}
     
    2626\newcommand{\toend}[1]{$\triangleright$$\vert$}
    2727\newcommand{\tostart}[1]{$\vert$$\triangleleft$}
     28\newcommand{\seclistcolumns}[1]{chapter~\ref{sListColumns}A }
     29\newcommand{\secfilter}[1]{chapter~\ref{sFilter}B }
     30\newcommand{\seclistpage}[1]{chapter~\ref{sListpage} }
     31\newcommand{\secnewrole}[1]{section~\ref{sssrolenew}~New... }
     32\newcommand{\secnewgroup}[1]{section~\ref{sssgroupnew}~New... }
     33\newcommand{\secnewuser}[1]{section~\ref{sssusernew}~New... }
  • trunk/doc/test/gui/useradmin.tex

    r1977 r2024  
    77
    88\subsubsection{New...}
    9 \begin{enumerate}
    10 \item Click on the tab \tab{New...} to open the 'New user' window.
    11 \item Clear all textfields and press \button{Save}. Type the following information:
     9\label{sssusernew}
     10\begin{itemize}
     11\item Expired useraccount
     12\begin{enumerate}
     13\item Click on the tab \tab{New...} to open the 'Create user' window.
     14\item Clear all textfields and press \button{Save}. It shouldn't be
     15  possible to save whithout name and login.
     16\item Set \textbf{Name:} to \userinput{Test {\AA}\"a\"o} and press
     17  \button{Save} to. It shouldn't be possible to save without login.
     18\item Give the user following settings:
    1219\begin{description}
    13 \item [Name:] \userinput{Test {\AA}\"a\"o}.\\Press \button{Save},
    14   it shouldn't be possible to save the usersettings when no login is set.
    15 \item [Login:]\userinput{testLogin}.
    16 \item [External ID:] \userinput{testid}
     20\item [Login:]\userinput{explogin}.
     21\item [External ID:] \userinput{expid}
    1722\item [New password:] \userinput{testpassword}.
    1823\item [Retype password:] \userinput{TESTPASSWORD}.\\Press
    19   \button{Save}, it shouldn't be possible to submit when the retyped password
    20   not is identical with the text in New password. Change then the Retype password
    21   to be \userinput{testpassword}.
     24  \button{Save} to test that it's not possible to submit when the
     25  retyped password not is identical with the text in New
     26  password. Change the Retype password to \userinput{testpassword}.
     27\item [Quota group:] Select a group quota group if there is any.
     28\item [Home directory:] Select \click{-create new from template-}
     29\item [Expiration date:] \userinput{1999-01-01}
    2230\end{description}
    23 
     31\item Press \button{Save}
     32\item Open a new web browser window/tab and login to BASE2 as the
     33  new user. It shouldn't be possible because of the expired date.
     34\item Use the active session to check if there is a home directory for
     35  the new user.
     36\end{enumerate}
     37
     38\item User with quota and no home directory
     39\begin{enumerate}
     40\item Open the window to create a user.
     41\item Give the new user following parameters: \\name:
     42  \userinput{Quota noHome}\\login: \userinput{QnHD}\\
     43  password: \userinput{pw}.
     44\item Set quota to \click{Default quota} and quouta group to
     45  \click{-none-}.
     46\item Select home directory to be \click{-none-} and leave expiration
     47  date empty.
     48\item Check \checkbox{Multi-user account} and uncheck
     49  \checkbox{Disabled}.
     50\item Go to \tab{Membership}, press \button{Add groups...}, check the group
     51  \checkbox{Users} and press \button{Ok}. The group should be visible
     52  in the list.
     53\item Press \button{Add role...}, check the role \checkbox{Guest} and press
     54  \button{Ok}. The role should be visible in the list.
     55\item Press \button{Save} in the buttom of the window.
     56\item Open a new web browser window/tab and login to BASE2 as the
     57  new user. Try to change the password under \menu{File} \ra
     58  \menu{Change password...}, it shouldn't be possible. Check that this
     59  login doesn't have a home directory.
     60\item Check that the user has been added to the Users-group and
     61  Guest-role by viewing the properties for the group/role.
     62\end{enumerate}
     63
     64\item User with unlimited quota and a empty home directory.
     65\begin{enumerate}
     66\item Click on \tab{New...} to create a new user.
     67\item Give the new user following parameters:\\name
     68  \userinput{unlQ Emptyhome}\\login \userinput{ulQeHD}\\password
     69  \userinput{pw}.
     70\item Set quota to \click{Unlimited quota} and quota group to
     71  \click{-none-}.
     72\item Select home directory to be \click{-create new(empty)-} and
     73  leave expiration date empty.
     74\item Leave \checkbox{Multi-user account} unchecked and check
     75  \checkbox{Disabled}.
     76\item Press \button{Save}.
     77\item Open the a new web browser window/tab and try login to BASE2 as the
     78  new user. It shouldn't be possible because of the disabled option.
     79\item Use the active session to uncheck \checkbox{Disabled} for
     80  \textit{ulQeHD} and try to login one more time with this login and
     81  password, it should be successful.
     82\item Check that the new user has an empty home directory.
     83\end{enumerate}
     84
     85\item User with existing home directory
     86\begin{enumerate}
     87\item Open the window to create a user.
     88\item Give the new user the following parameters: name
     89  \userinput{Exist Home}, login \userinput{xhome} and password
     90  \userinput{pw}.
     91\item Set quota to \click{500 MB total} and quota group to
     92  \click{-none-}.
     93\item Select home directory to be \click{ulQeHD} or some other
     94  existing login from the list of home directories.
     95\item Leave expiration date empty and \checkbox{Multi-user account}
     96  and \checkbox{Disabled} unchecked.
    2497\item Go to the tab \tab{Contact Information}.
    25 \item Write \userinput{thep.lu.se} in the field for email. Press \button{Save}. Is it accepted?
    26 \item Write an existing email.
    27 \item Try the \rt a for both 'Address' and 'Description' to get a larger
    28   window to edit the information in.
    29 \item Control that the text in 'Address'/'Description' is the same as
    30   the text that was written in the larger window.
    31 \item Go to the tab \tab{Membership} and add a group and/or a role to the
     98\item Type \userinput{base.com} in the field for emailaddress. Press
     99  \button{Save}. Is the invalid email-address accepted?\\ Type \userinput{something@base.com} in the email field instead.
     100\item Type \userinput{BASE tester} in the organisation field.
     101\item Type \userinput{Text in textbox} in the textfield for
     102  address. Click on the \rt to open a large window for address.
     103  and type \userinput{Text in large window}. Press \button{Ok}. Is the
     104  text from the textfield displayed in the large window and does the
     105  field get updated when submitting the large window?
     106\item Repeat previous step for the description field.
     107\item Go to tab \tab{Membership} and add   and/or a role to the
    32108  user.
    33109\item Press \button{Save} to save the settings for the user.
    34 \item Logout and login as the user in previous steps and control that
    35   the settings and the permissions are right for the account. Check
    36   also that the user has got a 'home account' to store the files in.
    37 \end{enumerate}
     110\end{enumerate}
     111\end{itemize}
    38112
    39113\subsubsection{Userlist}
    40114\begin{enumerate}
    41 \item Do the steps under chapter4 \textit{List pages}.
    42 \item Control that the names also are links to edit the
    43   information for the items.
    44 \item Click on the name of the first item in the list to view the
    45  information about the user in a seperate window.
    46 \item Test to edit the values in the fields by doing the steps under
    47   \textit{New..} above with start at the second step.
    48 \end{enumerate}
     115\item Select \click{All columns} in the dropdown list '-view/presets-'.
     116\item Do the steps in \seclistpage\ before continuing.
     117\item View an user's properties by clicking on it's name in the
     118  list.
     119\item Click on \tab{Edit...}.
     120\item Change the values/properties for the users that were created earlier in
     121  the test by following the steps in \secnewuser\ . It shouldn't be
     122  the same steps that the user were created from.
     123\item Check that the properties are updated.
     124\item Click on \click{Delete} in the user's property window. Go back to the \click{Users} list and control that the user is deleted.
     125\item Set the list to view removed items and open the properties for
     126  the user that was removed recently. Click on \click{Restore} to
     127  remove the flagg for deletion and then return to the user list.
     128\end{enumerate}
     129
     130\subsubsection{Columns}
     131Follow the steps in \seclistcolumns\ and have following information in mind
     132when preforming the tests:
     133\begin{itemize}
     134\item The columns in Users-list are Name, Description, Quota group,
     135  Quota, Url,Fax, Phone, Email, Address, Organisation,Multi-user
     136  account, Disabled, Expiration date, External ID, System ID and Login .
     137\item The required field is Name.
     138\item The visible columns in default preset are Name, Description,
     139  Login, Expiration date, Email and Description.
     140\end{itemize}
    49141
    50142\subsubsection{Filter}
    51 See chapter 5B for testing the filters.\\
    52 In this build of the program the filter for users is a bit different from
    53 some of the other filters in BASE2.\\\\
    54 \textbf{Basic Filter}
    55 \begin{enumerate}
    56 \item Select different column names in the Drop-downlist to the left
    57   under 'Find' and check how the filterpanel changes.\\Does the page
    58   act as expected?
    59 \item Filter the users on 'Name' with the textstring \userinput{l\%y}.\\The
    60   result should be a list with users that first have 'l' and then 'y'
    61   in their names(not CASE-sensitve).
    62 \item Filter the users on 'Expiration date' with the format
    63   YYYYMMDD.\\The list should be empty
    64 \item  Change the format to YYYY-MM-DD and do the search again.\\The
    65   listed users should have a
    66 expiration date that is equal to the filtered date.
    67 \end{enumerate}
    68 \textbf{Advanced Filter}
    69 \begin{enumerate}
    70 \item Press the button \button{Configure...} for advanced filter.
    71 \item Select a column that is supposed to be a part of the filter,
    72   set the condition and press then on \button{Add}
    73 \item Select the radiobuttons \radiobox{And} and add one more
    74   column filter.
    75 \item Save the filter as a preset, by press the button \button{Save
    76   As...} and type in a name for the preset,
    77 \item Create one more preset but check \radiobox{Or} instead of
    78   \radiobox{And} when the two filters are combined.
    79 \item Press \button{Ok} to view the filtered rows. Is the result as
    80   expected?
    81 \item Open the advanced filter again and try to modify a preset, save
    82   it in the same name and press then \button{Ok} again.\\Control the result
    83   when the preset filter is chosen.
    84 \item Open the advanced filter once again. Choose a preset to delete
    85   and press \button{Delete}. The name of the deleted preset should be ereased
    86   from the presets list.
    87 \end{enumerate}
    88 
    89 \subsubsection{Columns}
    90 See chapter5 for a general testing of the Columns.
    91 It is only possible to access the Columns dialogwindow through the tab
    92 \tab{Columns...} at this moment.
    93 
    94 \begin{enumerate}
    95 \item Open the columns dialogwindow by clicking on the tab \tab{Columns}.
    96 \item Select \click{Name}, it should be marked as required, and try to
    97   move it to the list of hidden columns. Is it possible?
    98 \item Select two column names that not are marked as required in the
    99   list of visible columns. Move the items to the list of hiddens
    100   columns.
    101 \item Save the setting as a new preset. Press \button{OK} to show the
    102   result.
    103 \item Go back to \tab{Columns...} and choose the preset 'All'
    104   again. Press \button{Ok} and check the result. Are all the columns visible?
    105 \item Open \tab{Columns...} one more time and choose the preset that was
    106   created during previous step. Check that right columns are
    107   visible/hidden according to the settings.
    108 \item Delete the preset by press \button{Delete...}. Is the preset
    109   for the columns removed?
    110 \end{enumerate}
    111 
    112 \subsubsection{Export}
    113 \begin{enumerate}
    114 \item Click on the tab \tab{Export}.
    115 \item Download the current page as a XML file to your local
    116   computer and control the result.
    117 \item Export All pages as a text-file to the user account and control
    118   the result.
    119 \end{enumerate}
     143Follow the steps in \secfilter\ to test the filters and use the
     144following values on the column filters.
     145\begin{description}
     146\item [Name:] \userinput{r\%} - all users that have a name that starts
     147  with a 'R'.
     148\item [Description:] \userinput{=} - users that don't have any description.
     149\item [Quota group:] \userinput{<>} - users that belongs to quota group
     150\item [Quota:] \userinput{<>unlimited quota} - users that don't have
     151  unlimited qouta.
     152\item [Url:] \userinput{=} - the users with a World-Wide-Web
     153  address that ends with 'se'.
     154\item [Fax:] \userinput{+46\%} - users with a fax-number that starts
     155  with '+46'
     156\item [Phone:] \userinput{+46\%} - users with a phone-number that starts
     157  with '+46'
     158\item [Email:] \userinput{\%lu.se} - users with a email at 'lu.se'
     159\item [Address:] \userinput{\%lund\%} - users with 'lund' in there address
     160\item [Organisation:] \userinput{=} - users that don't have any
     161  organisation registred.
     162\item [Multi-user account:] \radiobox{true} - all users account
     163  that is set as a multi-user.
     164\item [Disabled:] \radiobox{false} - all users that not ar
     165\item [Expiration date:] \userinput{<2006-02-23} - lists the usersaccounts
     166  that exipered before 2006-02-23
     167\item [External ID:] \userinput{}
     168\item [System ID:] \userinput{\%net.sf.basedb\%} - lists the
     169  useraccounts that are system items in BASE2, \eg{Root account}
     170\item [Login:] \userinput{test\%} - lists user with a login that
     171  starts with 'test'.
     172\end{description}
     173Combine the different filters with each other and check the result.
    120174
    121175\subsection{Groups}
    122176Groups can be accessed through \menu{Administrate} \ra \menu{Groups}
     177
    123178\subsubsection{New..}
    124 \begin{enumerate}
    125 \item Click on the tab \tab{New...} to open the 'Create group' window.
    126 \item Leave the textfield for name empty and try to save the new
    127   group. Is it possible?
    128 \item Click on the \ra to the right of the description textbox to edit
    129   the Description in a larger window.
    130 \item Select a quota for the group.
    131 \item Add the users that shall belong to this group.
    132 \item Add other groups that shall be a part of this group.
    133 \item Press \button{Save} to submit and add the new group to BASE2.
     179\label{sssgroupnew}
     180\begin{enumerate}
     181\item Click on the tab \tab{New...} to open the 'Create group'
     182  dialogwindow and close it with \button{Cancel}. Open the
     183  dialogwindow again.
     184\item Clear the textfield for name and try to save the new group
     185  without a name. It shouldn't be possible?
     186\item Give this new group the name \userinput{Testgroup}.
     187\item Type \userinput{Text in small window} in the Description textbox.
     188\item Click on the \rt d to the right of the description textbox and
     189  type \userinput{Text in large window} in the large window.
     190\item Press \button{Ok} and check if the Description text is as expected.
     191\item Set Quota to \click{Default quota(10.0MB totalt)}
     192\item Change to the tab \tab{Members}.
     193\item Press \button{Add user...}, select \checkbox{Root} and press
     194  \button{Ok} to add the user and close the window.
     195\item Press \button{Add groups...}, select \checkbox{Everyone} and
     196  \checkbox{Users} and press \button{Ok} to add the groups and close
     197  the window.
     198\item Select \click{Everyone} and press \button{Remove} to remove the
     199  listed group.
     200\item Press \button{Save} and check the user and the group that
     201  belongs to this new group.
    134202\end{enumerate}
    135203
    136204\subsubsection{Grouplist}
    137 Do all the steps in chapter4 for this list.
    138 \begin{enumerate}
    139 \item Click on the name of the first item in the list to view the
    140  information about the group in a seperate window.
    141 \item Test to edit the values in the fields by doing the steps under
    142   \textit{New..}. Start at the second step.
    143 \end{enumerate}
     205\begin{enumerate}
     206\item Select \click{All columns} in the dropdown list '-view/presets-'.
     207\item Do the steps in \seclistpage\ before continuing.
     208\item View a group's properties by clicking on it's name in the
     209  list. Make sure that the group not is a system item.
     210\item Click on \tab{Edit...}.
     211\item Test to change the values in the fields by doing the steps under
     212  previous \secnewgroup\ Start at the second step. Finish it
     213 by saving the new information and check that the properties are updated.
     214\item Click on \click{Delete} in the group's property window. Go back to the \click{Groups} list and control that the group is deleted.
     215\item Set the list to view removed items and open the properties for
     216  the group that was removed recently. Click on \click{Restore} to
     217  remove the flagg for deletion and then return to the group list.
     218\end{enumerate}
     219
     220\subsubsection{Columns}
     221Follow the steps in \seclistcolumns\ and have following information in mind
     222when preforming the tests:
     223\begin{itemize}
     224\item The columns in Groups-list are Name, System ID, Quota and Description.
     225\item The required field is Name.
     226\item The visible columns in default preset are Name and Description.
     227\end{itemize}
    144228
    145229\subsubsection{Filter}
    146 Do the steps in chapter 5B for testing the filters.
    147 
     230Follow the steps in \secfilter\ to test the filters and use the
     231following values on the column filters.
     232\begin{description}
     233\item [Name:] \userinput{\%s\%} - at least 2 hits.
     234\item [System ID:] \userinput{\%sf\%} - at least 1 hit.
     235\item [Quota:] \userinput{\%unlimited\%} - all the groups that have an
     236  unlimited quota.
     237\item [Description:] \userinput{\%every\%} - at least 2 hits.
     238\end{description}
     239Combine the different filters with each other and check the result.
     240
     241\subsection{Roles}
     242The roles can be accessed through \menu{Adminstrate} \ra \menu{Roles}
     243
     244\subsubsection{New..}
     245\label{sssrolenew}
     246\begin{enumerate}
     247\item Click on the tab \tab{New...} to open the 'Create role'
     248  dialogwindow and close it with \button{Cancel}. Open the
     249  dialogwindow again.
     250\item Clear the textfield for name and try to save the new role
     251  without a title. It shouldn't be possible?
     252\item Give this new role the name \userinput{Testrole}.
     253\item Check \checkbox{Share to Everyone} and \checkbox{Act as another
     254  user}.
     255\item Type \userinput{Text in small window} in the Description textbox.
     256\item Click on the \rt d to the right of the description textbox and
     257  type \userinput{Text in large window} in the large window.
     258\item Press \button{Ok} and check if the Description text is as expected.
     259\item Change to the tab \tab{Permissions}. Set different kind of
     260  permissions to the item types and remeber them to be able to test
     261  them later.
     262\item Change to the tab \tab{Members}.
     263\item Press \button{Add user...} and  select a user that shall belong
     264  to this role.
     265\item Add another user but remove it again with the button
     266  \button{Remove}.
     267\item Press \button{Save} and check the users that belongs to this new
     268  role.
     269\end{enumerate}
     270
     271\subsubsection{Rolelist}
     272
     273\begin{enumerate}
     274\item Select \click{All columns} in the dropdown list '-view/preset-'.
     275\item Do the steps in \seclistpage\ before continuing.
     276\item View a role's properties by clicking on it's name in the
     277  list. Make sure that the role not is a system item.
     278\item Click on \tab{Edit...}.
     279\item Test to change the values in the fields by doing the steps under
     280  previous \secnewrole\ Start at the second step. Finish it
     281 by saving the new information and check that the properties are updated.
     282\item Click on \click{Delete} in the role's property window. Go back to the \click{Role} list and control that the role is deleted.
     283\item Set the list to view removed items and open the properties for
     284  the role that was removed recently. Click on \click{Restore} to
     285  remove the flagg for deletion and then return to the role list.
     286\end{enumerate}
     287
     288\subsubsection{Filter}
     289Follow the steps in \secfilter\ to test the filters and use the
     290following values on the column filters.
     291\begin{description}
     292\item [Name:] \userinput{\%or\%} - at least 2 hits.
     293\item [System ID:] \userinput{\%sf\%} - at least 5 hits.
     294\item [Description:] \userinput{\%with\%} - at least 3 hits.
     295\end{description}
     296Change the filter on System ID to be \userinput{\%sf\%a\%a\%} and use
     297the other two values above to combine the filters.\\It should give at
     298least one hit when all three columns are filtered together.\\The results are based on some default roles that are standard in BASE2.
    148299\subsubsection{Columns}
    149 See chapter 5 for a general testing of the Columns.
    150 \begin{enumerate}
    151 \item Click on the Tab 'Columns'.
    152 \item Select one of the columns that are marked as required and try to
    153   move it to the list of hidden columns. Is it possible?
    154 \item Select two column names that not are marked as required in the
    155   list of visible columns. Move the items to the list of hiddens
    156   columns.
    157 \item Save the setting as a new preset. Click on `OK' to show the
    158   result.
    159 \item Go back to `Colums...-tab' and choose the preset 'All'
    160   again. Click 'OK' and check the result.
    161 \item Open 'Columns...' one more time and choose the preset that was
    162   created during step 1 and 2. Check that the right columns are
    163   selected/hidden.
    164 \item Delete the preset.
    165 \end{enumerate}
    166 
    167 \subsubsection{Export}
    168 \begin{enumerate}
    169 \item Click on the tab 'Export'.
    170 \item Download the current page as a XML file to your local
    171   computer. Download a file a couple of times and change the exported
    172   columns.
    173 \item Open the downloaded files to control the results.
    174 \item Export All pages to a text-file to the user account and have the
    175   exported columns to be default.
    176 \item Download the exported file to see the result.
    177 \end{enumerate}
    178 
    179 \subsection{Roles}
    180 
    181 \subsubsection{New..}
    182 \begin{enumerate}
    183 \item Click on the tab 'New...' to open the 'Create role' window.
    184 \item Leave the textfield for title empty and try to save the new
    185   group. Is it possible?
    186 \item Click on the \ra to the right of the description textbox to edit
    187   the Description in a larger window.
    188 \item Select a quota for the group.
    189 \item Add the users that shall belong to this group.
    190 \item Add the groups that shall belong to this group.
    191 \item Click on 'Save' to submit and add the new group to BASE2.
    192 \end{enumerate}
    193 
    194 \subsubsection{Grouplist}
    195 \begin{enumerate}
    196 \item Click on column title 'Name' to sort the Groups after their
    197   names.
    198 \item Click once again on the same title to reverse the sort
    199   order.
    200 \item Try the same with the other columns.
    201 \item Click on the name of the first item in the list to view the
    202  information about the group in a seperate window.
    203 \item Test to edit the values in the fields by doing the steps under
    204   \textit{New..}. Start at the second step.
    205 \end{enumerate}
    206 
    207 \subsubsection{Delete/Restore}
    208 \begin{enumerate}
    209 \item Check one or more items in the grouplist.
    210 \item Click on Delete. The checked items should disappear from the list.
    211 \item Check 'include removed'. Are the deleted items visible and have
    212   a trashcan in the first column?
    213 \item Check one or more items that is marked as deleted.
    214 \item Click on 'Restore'. Is the trashcan gone for each of the checked
    215   items?
    216 \end{enumerate}
    217 
    218 \subsubsection{Filter}
    219 See chapter 6 for testing the filters.\\
    220 In this build of the program the filter for users is a bit different from
    221 some of the other filters in BASE2.\\\\
    222 \textbf{Basic Filter}
    223 \begin{enumerate}
    224 \item Filter the rows with each column name in the drop-downlist to the
    225   left under'Find' and watch how the label is changed depending on
    226   wich format the chosen column has.
    227 \item Filter the users on 'Name' with the textstring 'l\%y'.\\The
    228   result should be a list with users that first have 'l' and then 'y'
    229   in their names(not CASE-sensitve).
    230 \item Filter the users on 'Expiration date' with the format
    231   YYYYMMDD.\\The list should be empty
    232 \item  Change the format to YYYY-MM-DD and do the search again.\\The
    233   listed users should have a expiration date that is equal to the
    234   filtered date.
    235 \item Type in a date as it suppose to be. Change the filtered
    236   column(with out preforming the filter on the Expiration date) to be
    237   'Name' and type an existing username and press enter. Is the result
    238   as expected?
    239 \end{enumerate}
    240 \textbf{Advanced Filter}
    241 \begin{enumerate}
    242 \item Click on 'Configure...' for advanced filter.
    243 \item Select a column that is supposed to be a part of the filter,
    244   set the condition and click then on 'Add'
    245 \item Select one of the radiobuttons 'And' or 'Or' and add one more
    246   column filter.
    247 \item Save the filter as a preset, by clicking on 'Save As...' and the
    248   preset in a new name.
    249 \item Click on 'Ok' to view the filtered rows. Is the result as
    250   expected?
    251 \item Open the advanced filter again and try to modify a preset, save
    252   it in the same name and press then 'Ok' again.\\Control the result
    253   when the preset filter is chosen.
    254 \item Open the advanced filter once again, this time delete one preset
    255   and click then on 'Ok'. The deleted preset should be ereased
    256   from the list of presets.
    257 \end{enumerate}
    258 
    259 \subsubsection{Columns}
    260 See chapter 5 for a general testing of the Columns.
    261 \begin{enumerate}
    262 \item Click on the Tab 'Columns'.
    263 \item Select one of the columns that are marked as required and try to
    264   move it to the list of hidden columns. Is it possible?
    265 \item Select two column names that not are marked as required in the
    266   list of visible columns. Move the items to the list of hiddens
    267   columns.
    268 \item Save the setting as a new preset. Click on `OK' to show the
    269   result.
    270 \item Go back to `Colums...-tab' and choose the preset 'All'
    271   again. Click 'OK' and check the result.
    272 \item Open 'Columns...' one more time and choose the preset that was
    273   created during step 1 and 2. Check that the right columns are
    274   selected/hidden.
    275 \item Delete the preset.
    276 \end{enumerate}
    277 
    278 \subsubsection{Export}
    279 \begin{enumerate}
    280 \item Click on the tab 'Export'.
    281 \item Download the current page as a XML file to your local
    282   computer. Download a file a couple of times and change the exported
    283   columns.
    284 \item Open the downloaded files to control the results.
    285 \item Export All pages to a text-file to the user account and have the
    286   exported columns to be default.
    287 \item Download the exported file to see the result.
    288 \end{enumerate}
     300Follow the steps in \seclistcolumns\ and have following information in mind
     301when preforming the tests:
     302\begin{itemize}
     303\item The columns in Role-list are Name, System ID and Description.
     304\item The required field is Name.
     305\item The visible columns in default preset are Name and Description.
     306\end{itemize}
    289307
    290308\subsection{Quota}
  • trunk/misc/sql/createdb.mysql.sql

    r1477 r2024  
    4747GRANT ALL ON `base2`.* TO 'base2user'@'localhost' IDENTIFIED BY 'password';
    4848GRANT ALL ON `base2dynamic`.* TO 'base2user'@'localhost';
     49
     50/*For MySql 5.0 only
     51SET PASSWORD FOR 'base2user'@'localhost' = OLD_PASSWORD('password');
     52FLUSH PRIVILEGES;*/
  • trunk/src/core/net/sf/basedb/core/HibernateUtil.java

    r2021 r2024  
    4343import java.sql.SQLException;
    4444import java.net.URL;
     45import java.net.URLDecoder;
    4546
    4647import org.jdom.Document;
     
    9192    Log core events.
    9293  */
    93   private static final org.apache.log4j.Logger log = 
     94  private static final org.apache.log4j.Logger log =
    9495    org.apache.log4j.LogManager.getLogger("net.sf.basedb.core");
    9596
Note: See TracChangeset for help on using the changeset viewer.