- Timestamp:
- 04/30/13 17:46:49 (12 years ago)
- Location:
- trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/NoLetterOrDigitTextInputsEvaluatorTest.java
r1171 r1201 43 43 public void should_return_no_recommendation() { 44 44 // Given 45 String spec = "Sequence {" + 46 " TextInput () {}" + 45 String spec = "UserSession {" + 46 " Sequence seq1 {" + 47 " TextInput t1 {}" + 48 " }" + 47 49 "}"; 48 50 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); … … 56 58 public void should_return_recommendation_with_info_severity_level() { 57 59 // Given 58 String spec = 59 "Sequence {" + 60 " TextInput (1234567890123456789012345678901234567890123456789_01234567890" + 61 "12345678901234567890123456789012345) {}" + 62 "}"; 60 String spec = "UserSession {" + 61 " Sequence seq1 {" + 62 " TextInput t1 (1234567890123456789012345678901234567890123456789_01234567890" + 63 " 12345678901234567890123456789012345) {ggdgdg11}" + 64 " }" + 65 "}"; 63 66 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 64 67 // When … … 71 74 public void should_return_recommendation_with_low_severity_level() { 72 75 // Given 73 String spec = 74 "Sequence {" + 75 " TextInput (123456789012345678901234567890_123456789012345) {}" + 76 "}"; 76 String spec = "UserSession {" + 77 " Sequence seq1 {" + 78 " TextInput t1 (123456789012345678901234567890_123456789012345) {}" + 79 " }" + 80 "}"; 77 81 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 78 82 // When … … 85 89 public void should_return_recommendation_with_medium_severity_level() { 86 90 // Given 87 String spec = "Sequence {" + 88 " TextInput (12345_6789012345) {}" + 91 String spec = "UserSession {" + 92 " Sequence seq1 {" + 93 " TextInput t1 (12345_6789012345) {}" + 94 " }" + 89 95 "}"; 90 96 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); … … 98 104 public void should_return_recommendation_with_high_severity_level() { 99 105 // Given 100 String spec = "Sequence {" + 101 " TextInput (_a_b_c_) {}" + 106 String spec = "UserSession {" + 107 " Sequence seq1 {" + 108 " TextInput t1 (_a_b_c_) {}" + 109 " }" + 102 110 "}"; 103 111 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); -
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 -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioEvaluatorTest.java
r1171 r1201 43 43 public void should_return_no_recommendation() { 44 44 // Given 45 String spec = 46 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " Interaction {}" 47 + " Interaction {}" + " TextInput (c) {}" + " Interaction {}" 48 + " Interaction {}" + " Interaction {}" + "}"; 45 String spec = "UserSession {" + 46 " Sequence seq1 {" + 47 " Interaction iter1 {}" + 48 " TextInput t1 (a) {}" + 49 " Interaction iter1 {}" + 50 " Interaction t2 {}" + 51 " TextInput t3 (c) {}" + 52 " Interaction t4 {}" + 53 " Interaction t5 {}" + 54 " Interaction t6 {}" + 55 " }" + 56 "}"; 49 57 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 50 58 // When … … 57 65 public void should_return_recommendation_with_info_severity_level() { 58 66 // Given 59 String spec = 60 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " Interaction {}" 61 + " Interaction {}" + " TextInput (c) {}" + "}"; 67 String spec = "UserSession {" + 68 " Sequence se1 {" + 69 " Interaction t1 {}" + 70 " TextInput t2 (a) {}" + 71 " Interaction t3 {}" + 72 " Interaction t4 {}" + 73 " TextInput t5 (c) {}" + 74 " }" + 75 "}"; 62 76 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 63 77 // When … … 70 84 public void should_return_recommendation_with_low_severity_level() { 71 85 // Given 72 String spec = 73 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " TextInput (b) {}" 74 + " Interaction {}" + " TextInput (c) {}" + "}"; 86 String spec = "UserSession {" + 87 " Sequence seq1 {" + 88 " Interaction t1 {}" + 89 " TextInput t2 (a) {}" + 90 " TextInput t3 (b) {}" + 91 " Interaction t4 {}" + 92 " TextInput t5 (c) {}" + 93 " }" + 94 "}"; 75 95 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 76 96 // When … … 83 103 public void should_return_recommendation_with_medium_severity_level() { 84 104 // Given 85 String spec = 86 "Sequence {" + " TextInput (a) {}" + " TextInput (b) {}" + " Interaction {}" 87 + " TextInput (c) {}" + "}"; 105 String spec = "UserSession {" + 106 " Sequence seq1 {" + 107 " TextInput t1 (a) {}" + 108 " TextInput t2 (b) {}" + 109 " Interaction t3 {}" + 110 " TextInput t4 (c) {}" + 111 " }" + 112 "}"; 88 113 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 89 114 // When … … 96 121 public void should_return_recommendation_with_high_severity_level() { 97 122 // Given 98 String spec = "TextInput (bla) {}"; 123 String spec = "UserSession {" + 124 " TextInput t1 (bla) {}" + 125 "}"; 99 126 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 100 127 // When
Note: See TracChangeset
for help on using the changeset viewer.