bb975e6aa2149bf47ac08ee18515c2180e905da5
[citadel.git] / citadel / docs / test_suite.txt
1 SYSTEM TESTING PROPOSAL
2
3 This document is intended as a discussion of possible automated tests. It does
4 not describe any existing tests.
5
6
7 ---
8
9
10 First we should create a client that leverages expect (or something similar) to
11 perform automated testing of the client interface. Tests can be written as
12 expect scripts.
13
14 Each system being tested will need to create an aide level user for the test
15 client to connect as.
16
17 The test client will create another user to carry out the tests. This allows the
18 aide level user to vary the level of the test user and check the access level
19 code.
20
21 ----
22
23
24 For a first step each test site should create a test user that can send internet
25 mail.
26 This test user needs some sieve rules to forward mail around (eventually this
27 will be created automatically by the test client). These rules will forward mail
28 to other test users at other sites participating in the test system and to a
29 networked room.
30 Each system participating in the test should share some rooms.
31
32 The idea is:
33         1. A test site posts a message to its test user using citmail or some
34 other email prog.
35         2. The sieve rules forward the message to each of the other test users
36 at the other sites.
37         3. The sieve rules for the other test users detect that the message was
38 forwarded to them and they file it into a networked room
39         4. By virtue of the networked room the message returns to the
40 originating system where the administrator can see it.
41
42 Once I (davew) have written my module to alter the message body we can have it
43 add text to the message to indicate the full path of the message.
44
45