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 | |
---|
10 | This document defines a procedure for testing that |
---|
11 | the predefined roles can perform their work as intended. The main |
---|
12 | purpose 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 | |
---|
20 | Here 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 |
---|
28 | power 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 | |
---|
56 | These tests can also be run in automated mode by test programs. This will of |
---|
57 | course not test the web client, but are useful if one quickly needs to do the |
---|
58 | parts of the test and then continue with for example the user tests on the |
---|
59 | web. To run the tests you must first compile the test programs with "ant test". |
---|
60 | |
---|
61 | Then execute: ./test.sh roles <cmds> |
---|
62 | |
---|
63 | where <cmds> is a list specifying which tests to run. The following values |
---|
64 | can 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 |
---|