Browse Source

Merge branch 'master' of github.com:AloisMahdal/sugar-trail

Alois Mahdal 11 years ago
parent
commit
998ec29cf8
4 changed files with 227 additions and 0 deletions
  1. 25
    0
      TODO.md
  2. 39
    0
      notes/inheritance.md
  3. 104
    0
      notes/matrices.md
  4. 59
    0
      notes/table.md

+ 25
- 0
TODO.md View File

@@ -3,6 +3,7 @@
3 3
 
4 4
 ## Definition ##
5 5
 
6
+
6 7
 ### Syntax ###
7 8
 
8 9
 *   keyboard shortcuts (not the ugly `<key>Shift</key>+<key>F8</key>)
@@ -17,6 +18,7 @@
17 18
 
18 19
   [2]: examples/objects.md
19 20
 
21
+
20 22
 ### Data model ###
21 23
 
22 24
 *   step identity
@@ -27,6 +29,29 @@
27 29
 
28 30
     2.  Markdown
29 31
 
32
+*   inheritance - inherit Vars and other things
33
+
34
+*   matrices - allow for generation of combined parallel procedures
35
+
36
+*   relations to other (specification) documents
37
+
38
+*   equipment - allow for specification of special equipment like Wi-fi cards,
39
+    or a specific machine or a set of machines (environment).  Can be related
40
+    to objects
41
+
42
+*   objects - allow for
43
+
44
+    *   distinct specification of object in group of testing objects (server,
45
+        client1, client2...)
46
+
47
+    *   parallelization when the same procedure needs to be repeated over
48
+        every object (machines, pages of a document, data sets...)
49
+
50
+    Notice the difference: while equipmemt serves as a means of providing
51
+    framework or environment where tests can be held, objects are separately
52
+    defined units that tests are actually held against.  In practice, set of
53
+    objects can be actually a subset of equipment.
54
+
30 55
 
31 56
 ### WUI ###
32 57
 

+ 39
- 0
notes/inheritance.md View File

@@ -0,0 +1,39 @@
1
+INHERITANCE
2
+===========
3
+
4
+Based on organization properties like Groups or Tags (TBD), an inheritance of
5
+other properties is desirable.
6
+
7
+First idea of implementation is a set of configuration files, where each defines
8
+header contents for certain group.  These items are then inherited to 
9
+
10
+
11
+Quick example
12
+-------------
13
+
14
+`etc/projects/headers.conf:`
15
+
16
+    Project: printer_driver
17
+    Manufacturer: hp, brother
18
+    Proto: lpt, usb, smb, lpr
19
+
20
+Then each STT with `Project: printer_driver` would be automatically appended
21
+above headers.
22
+
23
+
24
+TODO
25
+----
26
+
27
+*   help avoid conflict
28
+
29
+    *   override?
30
+
31
+    *   append?
32
+
33
+    *   exclude?
34
+
35
+    *   duplication: organization by folder structure vs. by groups?
36
+
37
+*   define groups
38
+
39
+*   inheritance on folders?

+ 104
- 0
notes/matrices.md View File

@@ -0,0 +1,104 @@
1
+MATRICES
2
+========
3
+
4
+In cases when (more or less) the same test procedure needs to be performd on a
5
+group of equivalent and independent objects, ic might be desirable to generate
6
+collective form, usable for testing in parallel.
7
+
8
+
9
+
10
+Example
11
+-------
12
+
13
+
14
+Source STM defines actions that are only valid under certain circumstances.
15
+
16
+    Name: Release Client - parallel
17
+    Description: Example of parallel procedures
18
+    Vars: arch=amd64,x86
19
+    
20
+    # Parallel showcase #
21
+
22
+    ## Install ##
23
+    1. Create a folder with CJK characters
24
+    2. Install Product
25
+    3. Open Start menu -> ACME
26
+    4. Check links
27
+       * Help.lnk
28
+       * Product.lnk
29
+       * Product (64-bit).lnk {arch==amd64}
30
+    5. Restart
31
+
32
+
33
+The above can result in two STS:
34
+
35
+    Stm: /release/rc.stm
36
+    Stm Revision: 123
37
+    Params: arch=amd64
38
+    
39
+    # Parallel showcase #
40
+
41
+    ## Install ##
42
+    1. Create a folder with CJK characters
43
+    2. Install Product
44
+    3. Open Start menu -> ACME
45
+    4. Check links
46
+       * Help.lnk
47
+       * Product.lnk
48
+       * Product (64-bit).lnk
49
+    5. Restart
50
+
51
+
52
+    Stm: /release/rc.stm
53
+    Stm Revision: 123
54
+    Params: arch=x86
55
+    
56
+    # Parallel showcase #
57
+
58
+    ## Install ##
59
+    1. Create a folder with CJK characters
60
+    2. Install Product
61
+    3. Open Start menu -> ACME
62
+    4. Check links
63
+       * Help.lnk
64
+       * Product.lnk
65
+    5. Restart
66
+
67
+
68
+Or one "double" STS -- notice `Params:` header:
69
+
70
+    Stm: /release/rc.stm
71
+    Stm Revision: 123
72
+    Params: arch=x86+amd64
73
+    
74
+    # Parallel showcase #
75
+
76
+    ## Install ##
77
+    1. Create a folder with CJK characters
78
+    2. Install Product
79
+    3. Open Start menu -> ACME
80
+    4. Check links
81
+       * Help.lnk
82
+       * Product.lnk
83
+       * Product (64-bit).lnk {arch==amd64}
84
+    5. Restart
85
+
86
+
87
+The point is that the double STM can be rendered for parallel processing:
88
+
89
+    +-------------------------------------------------------------------+
90
+    | PARALLEL SHOWCASE                                                 |
91
+    +-------------------------------------------------------------------+
92
+    |                                                                   |
93
+    |  ## Install ##                              x86         amd64     |
94
+    | 1. Create a folder with CJK characters    [ Passed  ] [ Passed  ] |
95
+    | 2. Install Product                        [ Passed  ] [ Passed  ] |
96
+    | 3. Open Start menu -> ACME                [ Passed  ] [ Passed  ] |
97
+    | 4. Check links                            [ Passed  ] [ Passed  ] |
98
+    |    * Help.lnk                             [ Passed  ] [ Passed  ] |
99
+    |    * Product.lnk                          [ Passed  ] [ Failed  ] |
100
+    |    * Product (64-bit).lnk                             [ Passed  ] |
101
+    | 5. Restart                                [ Passed  ] [ Passed  ] |
102
+    |                                                                   |
103
+    +-------------------------------------------------------------------+
104
+

+ 59
- 0
notes/table.md View File

@@ -0,0 +1,59 @@
1
+# Table #
2
+
3
+## Spanning ##
4
+
5
+    +-------+-------+-------+
6
+    | colsp |       |       |
7
+    | an    +-------+-------+
8
+    |       |       |       |
9
+    +-------+-------+-------+
10
+    |       |       |       |
11
+    +-------+-------+-------+
12
+    |       | rowspan       |
13
+    +-------+-------+-------+
14
+    |       |       |       |
15
+    +-------+-------+-------+
16
+    | colspan and   |       |
17
+    | rowspan       +-------+
18
+    |               |       |
19
+    +-------+-------+-------+
20
+    |       |       |       |
21
+    +-------+-------+-------+
22
+
23
+
24
+## Header ##
25
+
26
+    +-------+-------+-------+
27
+    | test# |v    A |v    B |
28
+    +-------+-------+-------+
29
+    |>    1 |  pass |  pass |
30
+    +-------+-------+-------+
31
+    |>    2 |  fail |  pass |
32
+    +-------+-------+-------+
33
+    |>    3 |  fail |  pass |
34
+    +-------+-------+-------+
35
+    |>    4 |  pass |  fail |
36
+    +-------+-------+-------+
37
+    |>    5 |  fail |  fail |
38
+    +-------+-------+-------+
39
+    |>    6 |  pass |  pass |
40
+    +-------+-------+-------+
41
+    |>    7 |  fail |  fail |
42
+    +-------+-------+-------+
43
+
44
+      test# |     A |     B |
45
+    --------+-------+-------+
46
+          1 |  pass |  pass |
47
+    --------+-------+-------+
48
+          2 |  fail |  pass |
49
+    --------+-------+-------+
50
+          3 |  fail |  pass |
51
+    --------+-------+-------+
52
+          4 |  pass |  fail |
53
+    --------+-------+-------+
54
+          5 |  fail |  fail |
55
+    --------+-------+-------+
56
+          6 |  pass |  pass |
57
+    --------+-------+-------+
58
+          7 |  fail |  fail |
59
+    --------+-------+-------+