Changeset 1171 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics
- Timestamp:
- 04/20/13 21:33:32 (11 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
r1151 r1171 27 27 import com.google.common.base.Optional; 28 28 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask Tree;29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 30 30 import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 31 import de.ugoe.cs.autoquest.usability. rules.metrics.NoLetterOrDigitRatioMetric;31 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 32 32 33 33 /** … … 38 38 * @author Alexander Deicke 39 39 */ 40 public class NoLetterOrDigitTextInputsEvaluatorTest extends AbstractUsabilityEvaluationTC{40 public class NoLetterOrDigitTextInputsEvaluatorTest { 41 41 42 42 @Test … … 46 46 " TextInput () {}" + 47 47 "}"; 48 ITask Tree taskTree = createTaskTree(spec);48 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 49 49 // When 50 50 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); … … 61 61 "12345678901234567890123456789012345) {}" + 62 62 "}"; 63 ITask Tree taskTree = createTaskTree(spec);63 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 64 64 // When 65 65 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); … … 75 75 " TextInput (123456789012345678901234567890_123456789012345) {}" + 76 76 "}"; 77 ITask Tree taskTree = createTaskTree(spec);77 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 78 78 // When 79 79 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); … … 88 88 " TextInput (12345_6789012345) {}" + 89 89 "}"; 90 ITask Tree taskTree = createTaskTree(spec);90 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 91 91 // When 92 92 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); … … 101 101 " TextInput (_a_b_c_) {}" + 102 102 "}"; 103 ITask Tree taskTree = createTaskTree(spec);103 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 104 104 // When 105 105 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsEvaluatorTest.java
r1151 r1171 27 27 import com.google.common.base.Optional; 28 28 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask Tree;29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 30 30 import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 31 import de.ugoe.cs.autoquest.usability. rules.metrics.TextInputEntryRepetitionsMetric;31 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 32 32 33 33 /** … … 38 38 * @author Alexander Deicke 39 39 */ 40 public class TextInputEntryRepetitionsEvaluatorTest extends AbstractUsabilityEvaluationTC{40 public class TextInputEntryRepetitionsEvaluatorTest { 41 41 42 42 @Test … … 44 44 // Given 45 45 String spec = "Sequence {" + " TextInput () {}" + "}"; 46 ITask Tree taskTree = createTaskTree(spec);46 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 47 47 // When 48 48 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 57 57 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 58 58 + " TextInput (d) {}" + " TextInput (e) {}" + " }" + "}"; 59 ITask Tree taskTree = createTaskTree(spec);59 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 60 60 // When 61 61 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 70 70 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 71 71 + " TextInput (b) {}" + " TextInput (c) {}" + " }" + "}"; 72 ITask Tree taskTree = createTaskTree(spec);72 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 73 73 // When 74 74 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 89 89 + " TextInput (b) {}" + " TextInput (c) {}" + " TextInput (d) {}" 90 90 + " TextInput (e) {}" + " }" + " }" + " TextInput (f) {}" + "}"; 91 ITask Tree taskTree = createTaskTree(spec);91 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 92 92 // When 93 93 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 108 108 + " TextInput (b b b a) {}" + " TextInput (a a c c) {}" 109 109 + " TextInput (b b a) {}" + " }" + " }" + " TextInput (d) {}" + "}"; 110 ITask Tree taskTree = createTaskTree(spec);110 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 111 111 // When 112 112 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioEvaluatorTest.java
r1151 r1171 27 27 import com.google.common.base.Optional; 28 28 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask Tree;29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 30 30 import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 31 import de.ugoe.cs.autoquest.usability. rules.metrics.TextInputRatioMetric;31 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 32 32 33 33 /** … … 38 38 * @author Alexander Deicke 39 39 */ 40 public class TextInputRatioEvaluatorTest extends AbstractUsabilityEvaluationTC{40 public class TextInputRatioEvaluatorTest { 41 41 42 42 @Test … … 47 47 + " Interaction {}" + " TextInput (c) {}" + " Interaction {}" 48 48 + " Interaction {}" + " Interaction {}" + "}"; 49 ITask Tree taskTree = createTaskTree(spec);49 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 50 50 // When 51 51 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 60 60 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " Interaction {}" 61 61 + " Interaction {}" + " TextInput (c) {}" + "}"; 62 ITask Tree taskTree = createTaskTree(spec);62 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 63 63 // When 64 64 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 73 73 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " TextInput (b) {}" 74 74 + " Interaction {}" + " TextInput (c) {}" + "}"; 75 ITask Tree taskTree = createTaskTree(spec);75 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 76 76 // When 77 77 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 86 86 "Sequence {" + " TextInput (a) {}" + " TextInput (b) {}" + " Interaction {}" 87 87 + " TextInput (c) {}" + "}"; 88 ITask Tree taskTree = createTaskTree(spec);88 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 89 89 // When 90 90 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 97 97 // Given 98 98 String spec = "TextInput (bla) {}"; 99 ITask Tree taskTree = createTaskTree(spec);99 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 100 100 // When 101 101 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate();
Note: See TracChangeset
for help on using the changeset viewer.