Changeset 1201 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsEvaluatorTest.java
- Timestamp:
- 04/30/13 17:46:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsEvaluatorTest.java
r1171 r1201 43 43 public void should_return_no_recommendation() { 44 44 // Given 45 String spec = "Sequence {" + " TextInput () {}" + "}"; 45 String spec = "UserSession {" + 46 " Sequence seq1 {" + 47 " TextInput t1 () {}" + 48 " }" + 49 "}"; 46 50 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 47 51 // When … … 54 58 public void should_return_recommendation_with_info_severity_level() { 55 59 // Given 56 String spec = 57 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 58 + " TextInput (d) {}" + " TextInput (e) {}" + " }" + "}"; 60 String spec = "UserSession {" + 61 " Sequence seq1 {" + 62 " TextInput t1 (a b c) {}" + 63 " Sequence seq2 {" + 64 " TextInput t2 (a) {}" + 65 " TextInput t3 (d) {}" + 66 " TextInput t4 (e) {}" + 67 " }" + 68 " }" + 69 "}"; 59 70 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 60 71 // When … … 67 78 public void should_return_recommendation_with_low_severity_level() { 68 79 // Given 69 String spec = 70 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 71 + " TextInput (b) {}" + " TextInput (c) {}" + " }" + "}"; 80 String spec = "UserSession {" + 81 " Sequence seq1 {" + 82 " TextInput t1 (a b c) {}" + 83 " Sequence seq3 {" + 84 " TextInput t2 (a) {}" + 85 " TextInput t3 (b) {}" + 86 " TextInput t4 (c) {}" + 87 " }" + 88 " }" + 89 "}"; 72 90 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 73 91 // When … … 80 98 public void should_return_recommendation_with_medium_severity_level() { 81 99 // Given 82 String spec = 83 "Sequence {" + " TextInput (a b c d e f g h i j k l m) {}" + " Sequence {" 84 + " TextInput (a) {}" + " TextInput (b) {}" + " TextInput (c) {}" 85 + " TextInput (d) {}" + " }" + " Iteration {" + " TextInput (e) {}" + " }" 86 + " TextInput (a) {}" + " Selection {" + " TextInput (b) {}" 87 + " TextInput (c) {}" + " TextInput (d) {}" + " TextInput (e) {}" + " }" 88 + " Sequence {" + " TextInput (a) {}" + " Sequence {" 89 + " TextInput (b) {}" + " TextInput (c) {}" + " TextInput (d) {}" 90 + " TextInput (e) {}" + " }" + " }" + " TextInput (f) {}" + "}"; 100 String spec = "UserSession {" + 101 " Sequence seq1 {" + 102 " TextInput t1 (a b c d e f g h i j k l m) {}" + 103 " Sequence seq2 {" + 104 " TextInput t2 (a) {}" + 105 " TextInput t3 (b) {}" + 106 " TextInput t4 (c) {}" + 107 " TextInput t5 (d) {}" + 108 " }" + 109 " Iteration iter1 {" + 110 " TextInput t6 (e) {}" + 111 " }" + 112 " TextInput t7 (a) {}" + 113 " Selection sel1 {" + 114 " TextInput t8 (b) {}" + 115 " }" + 116 " Selection sel1 {" + 117 " TextInput t8 (c) {}" + 118 " }" + 119 " Selection sel1 {" + 120 " TextInput t8 (d) {}" + 121 " }" + 122 " Selection sel1 {" + 123 " TextInput t8 (e) {}" + 124 " }" + 125 " Sequence seq3 {" + 126 " TextInput t9 (a) {}" + 127 " Sequence seq4 {" + 128 " TextInput t10 (b) {}" + 129 " TextInput t11 (c) {}" + 130 " TextInput t12 (d) {}" + 131 " TextInput t13 (e) {}" + 132 " }" + 133 " }" + 134 " TextInput t14 (a) {}" + 135 " }" + 136 "}"; 91 137 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 92 138 // When … … 99 145 public void should_return_recommendation_with_high_severity_level() { 100 146 // Given 101 String spec = 102 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 103 + " TextInput (b) {}" + " TextInput (c) {}" + " TextInput (a) {}" + " }" 104 + " Iteration {" + " TextInput (a) {}" + " }" + " TextInput (a) {}" 105 + " Selection {" + " TextInput (b c) {}" + " TextInput (a) {}" 106 + " TextInput (a c) {}" + " TextInput (b a) {}" + " }" + " Sequence {" 107 + " TextInput (b c) {}" + " Sequence {" + " TextInput (d a c) {}" 108 + " TextInput (b b b a) {}" + " TextInput (a a c c) {}" 109 + " TextInput (b b a) {}" + " }" + " }" + " TextInput (d) {}" + "}"; 147 String spec = "UserSession {" + 148 " Sequence seq1 {" + 149 " TextInput t1 (a b c) {}" + 150 " Sequence seq2 {" + 151 " TextInput t2 (a) {}" + 152 " TextInput t3 (b) {}" + 153 " TextInput t4 (c) {}" + 154 " TextInput t5 (a) {}" + 155 " }" + 156 " Iteration iter1 {" + 157 " TextInput t6 (a) {}" + 158 " }" + 159 " TextInput t7 (a) {}" + 160 " Selection sel1 {" + 161 " TextInput t8 (b c) {}" + 162 " }" + 163 " Selection sel1 {" + 164 " TextInput t8 (a) {}" + 165 " }" + 166 " Selection sel1 {" + 167 " TextInput t8 (a c) {}" + 168 " }" + 169 " Selection sel1 {" + 170 " TextInput t8 (b a) {}" + 171 " }" + 172 " Sequence seq3 {" + 173 " TextInput t9 (b c) {}" + 174 " Sequence seq4 {" + 175 " TextInput t10 (d a c) {}" + 176 " TextInput t11 (b b b a) {}" + 177 " TextInput t12 (a a c c) {}" + 178 " TextInput t13 (b b a) {}" + 179 " }" + 180 " }" + 181 " TextInput t14 (a) {}" + 182 " }" + 183 "}"; 110 184 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 111 185 // When
Note: See TracChangeset
for help on using the changeset viewer.