source: trunk/doc/test/permissions/firstpage.tex @ 2249

Last change on this file since 2249 was 2249, checked in by Nicklas Nordborg, 16 years ago

Added first version of automated tests for roles. References #221 and #222.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1% $Id: $
2
3\title{Test procedures for predefined roles in BASE 2.0}
4
5\author{Martin Svensson, Nicklas}
6\maketitle
7
8\thispagestyle{empty}
9
10This document defines a procedure for testing that
11the predefined roles can perform their work as intended. The main
12purpose is to weed out permission problems resulting from:
13
14\begin{enumerate}
15\item Incorrect permissions installed by installation program
16\item Bugs in the permission handling in the core
17\item Incorrect handling of permission in the web client
18\end{enumerate}
19
20Here is a summary of the test procedure:
21
22\begin{enumerate}
23\item Always start with a fresh installation
24
25\item The root user creates an administrator
26
27\item The administrator creates a group and three other users. One
28power user, one user and one guest.
29
30\item The power user creates item related to the project management:
31  \begin{itemize}
32  \item A project
33  \item Protocols, one for each type of action: sampling, extraction, etc.
34  \item Hardware and software
35  \item Some annotation types
36  \item Import file formats for reporters: plates, print maps and raw data
37  \item LIMS information - plate type, plates, array design, array batch and array slide
38  \end{itemize}
39 
40\item The user creates items related to an actual experiment:
41  \begin{itemize}
42  \item Biomaterials: biosources, samples, extracts, etc.
43  \item Experiment: hybridizations, scans, images, raw bioassays
44  \end{itemize}
45 
46\item Both the user and the guest then do some analysis:
47  \begin{itemize}
48  \item Create a root bioassay set
49  \item Filter the bioassay set
50  \item Run a normalization plugin
51  \item Check the result by listing and plotting the data
52  \end{itemize} 
53
54\end{enumerate}
55
56These tests can also be run in automated mode by test programs. This will of
57course not test the web client, but are useful if one quickly needs to do the
58parts of the test and then continue with for example the user tests on the
59web. To run the tests you must first compile the test programs with "ant test".
60
61Then execute: ./test.sh roles <cmds>
62
63where <cmds> is a list specifying which tests to run. The following values
64can be used:
65
66\begin{itemize}
67\item all: Run all tests
68\item root: Run the root user tests
69\item admin: Run the administrator tests
70\item power: Run the power user tests
71\item user: Run the regular user tests
72\item guest: Run the guest user tests
73\end{itemize}
74
75
76
77\newpage
Note: See TracBrowser for help on using the repository browser.