- Timestamp:
- 09/08/17 13:29:02 (7 years ago)
- Location:
- trunk/autoquest-core-usability-test/src/test/java/de/ugoe/cs/autoquest/usability
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-test/src/test/java/de/ugoe/cs/autoquest/usability/CommonTaskRateRuleTest.java
r1918 r2169 79 79 // smell expected, as for each action a different root node exists 80 80 UsabilitySmell[] expectedSmells = new UsabilitySmell[] 81 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 81 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE), 82 new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 82 83 83 84 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); … … 128 129 // smell expected, as for each action a different root node exists 129 130 UsabilitySmell[] expectedSmells = new UsabilitySmell[] 130 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 131 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE), 132 new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 131 133 132 134 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); … … 175 177 // smell expected, as for many actions a different root node exists 176 178 UsabilitySmell[] expectedSmells = new UsabilitySmell[] 177 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 179 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE), 180 new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 178 181 179 182 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); … … 222 225 // smell expected, as for many actions a different root node exists 223 226 UsabilitySmell[] expectedSmells = new UsabilitySmell[] 224 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 227 { new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE), 228 new UsabilitySmell(UsabilitySmellIntensity.getIntensity(0), COMMON_TASK_RATE) }; 225 229 226 230 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); -
trunk/autoquest-core-usability-test/src/test/java/de/ugoe/cs/autoquest/usability/RequiredInefficientActionsRuleTest.java
r1941 r2169 90 90 "UserSession {" + 91 91 " Sequence {" + 92 " Interaction elem1 {}" + 92 93 " Scroll body {}" + 93 94 " Interaction elem1 {}" + … … 115 116 " Sequence {" + 116 117 " Interaction elem1 {}" + 118 " Interaction elem2 {}" + 117 119 " Scroll body {}" + 118 120 " }" + … … 140 142 " Scroll body {}" + 141 143 " Interaction elem1 {}" + 142 " }" + 143 " Sequence seq1 {" + 144 " Scroll body {}" + 145 " Interaction elem1 {}" + 144 " Interaction elem2 {}" + 145 " }" + 146 " Sequence seq1 {" + 147 " Scroll body {}" + 148 " Interaction elem1 {}" + 149 " Interaction elem2 {}" + 146 150 " }" + 147 151 "}"; … … 168 172 " Interaction elem1 {}" + 169 173 " Scroll body {}" + 170 " }" + 171 " Sequence seq1 {" + 172 " Interaction elem1 {}" + 173 " Scroll body {}" + 174 " Interaction elem2 {}" + 175 " }" + 176 " Sequence seq1 {" + 177 " Interaction elem1 {}" + 178 " Scroll body {}" + 179 " Interaction elem2 {}" + 174 180 " }" + 175 181 "}"; … … 223 229 " Optional opt1 { }" + 224 230 " Interaction elem1 {}" + 225 " }" + 226 " Sequence seq1 {" + 227 " Optional opt1 {" + 228 " Scroll body {}" + 229 " }" + 230 " Interaction elem1 {}" + 231 " }" + 232 " Sequence seq1 {" + 233 " Optional opt1 {" + 234 " Scroll body {}" + 235 " }" + 236 " Interaction elem1 {}" + 231 " Interaction elem2 {}" + 232 " }" + 233 " Sequence seq1 {" + 234 " Optional opt1 {" + 235 " Scroll body {}" + 236 " }" + 237 " Interaction elem1 {}" + 238 " Interaction elem2 {}" + 239 " }" + 240 " Sequence seq1 {" + 241 " Optional opt1 {" + 242 " Scroll body {}" + 243 " }" + 244 " Interaction elem1 {}" + 245 " Interaction elem2 {}" + 237 246 " }" + 238 247 "}"; … … 258 267 " Sequence seq1 {" + 259 268 " Interaction elem1 {}" + 260 " Optional opt1 { }" + 261 " }" + 262 " Sequence seq1 {" + 263 " Interaction elem1 {}" + 264 " Optional opt1 {" + 265 " Scroll body {}" + 266 " }" + 267 " }" + 268 " Sequence seq1 {" + 269 " Interaction elem1 {}" + 269 " Interaction elem2 {}" + 270 " Optional opt1 { }" + 271 " }" + 272 " Sequence seq1 {" + 273 " Interaction elem1 {}" + 274 " Interaction elem2 {}" + 275 " Optional opt1 {" + 276 " Scroll body {}" + 277 " }" + 278 " }" + 279 " Sequence seq1 {" + 280 " Interaction elem1 {}" + 281 " Interaction elem2 {}" + 270 282 " Optional opt1 {" + 271 283 " Scroll body {}" + … … 293 305 "UserSession {" + 294 306 " Sequence seq1 {" + 295 " Optional opt1 { }" + 296 " Interaction elem1 {}" + 297 " }" + 298 " Sequence seq1 {" + 307 " Interaction elem2 {}" + 308 " Optional opt1 { }" + 309 " Interaction elem1 {}" + 310 " }" + 311 " Sequence seq1 {" + 312 " Interaction elem2 {}" + 299 313 " Optional opt1 {}" + 300 314 " Interaction elem1 {}" + 301 315 " }" + 302 316 " Sequence seq1 {" + 303 " Optional opt1 {" + 304 " Scroll body {}" + 305 " }" + 306 " Interaction elem1 {}" + 307 " }" + 308 " Sequence seq1 {" + 317 " Interaction elem2 {}" + 318 " Optional opt1 {" + 319 " Scroll body {}" + 320 " }" + 321 " Interaction elem1 {}" + 322 " }" + 323 " Sequence seq1 {" + 324 " Interaction elem2 {}" + 309 325 " Optional opt1 {" + 310 326 " Scroll body {}" + … … 335 351 " Interaction elem1 {}" + 336 352 " Optional opt1 { }" + 353 " Interaction elem2 {}" + 337 354 " }" + 338 355 " Sequence seq1 {" + 339 356 " Interaction elem1 {}" + 340 357 " Optional opt1 {}" + 341 " }" + 342 " Sequence seq1 {" + 343 " Interaction elem1 {}" + 344 " Optional opt1 {" + 345 " Scroll body {}" + 346 " }" + 347 " }" + 348 " Sequence seq1 {" + 349 " Interaction elem1 {}" + 350 " Optional opt1 {" + 351 " Scroll body {}" + 352 " }" + 358 " Interaction elem2 {}" + 359 " }" + 360 " Sequence seq1 {" + 361 " Interaction elem1 {}" + 362 " Optional opt1 {" + 363 " Scroll body {}" + 364 " }" + 365 " Interaction elem2 {}" + 366 " }" + 367 " Sequence seq1 {" + 368 " Interaction elem1 {}" + 369 " Optional opt1 {" + 370 " Scroll body {}" + 371 " }" + 372 " Interaction elem2 {}" + 353 373 " }" + 354 374 "}"; … … 375 395 " Optional opt1 { }" + 376 396 " Interaction elem1 {}" + 377 " }" + 378 " Sequence seq1 {" + 379 " Optional opt1 { }" + 380 " Interaction elem1 {}" + 381 " }" + 382 " Sequence seq1 {" + 383 " Optional opt1 { }" + 384 " Interaction elem1 {}" + 385 " }" + 386 " Sequence seq1 {" + 387 " Optional opt1 {" + 388 " Scroll body {}" + 389 " }" + 390 " Interaction elem1 {}" + 397 " Interaction elem2 {}" + 398 " }" + 399 " Sequence seq1 {" + 400 " Optional opt1 { }" + 401 " Interaction elem1 {}" + 402 " Interaction elem2 {}" + 403 " }" + 404 " Sequence seq1 {" + 405 " Optional opt1 { }" + 406 " Interaction elem1 {}" + 407 " Interaction elem2 {}" + 408 " }" + 409 " Sequence seq1 {" + 410 " Optional opt1 {" + 411 " Scroll body {}" + 412 " }" + 413 " Interaction elem1 {}" + 414 " Interaction elem2 {}" + 391 415 " }" + 392 416 "}"; … … 413 437 " Interaction elem1 {}" + 414 438 " Optional opt1 { }" + 415 " }" + 416 " Sequence seq1 {" + 417 " Interaction elem1 {}" + 418 " Optional opt1 { }" + 419 " }" + 420 " Sequence seq1 {" + 421 " Interaction elem1 {}" + 422 " Optional opt1 { }" + 423 " }" + 424 " Sequence seq1 {" + 425 " Interaction elem1 {}" + 426 " Optional opt1 {" + 427 " Scroll body {}" + 428 " }" + 439 " Interaction elem2 {}" + 440 " }" + 441 " Sequence seq1 {" + 442 " Interaction elem1 {}" + 443 " Optional opt1 { }" + 444 " Interaction elem2 {}" + 445 " }" + 446 " Sequence seq1 {" + 447 " Interaction elem1 {}" + 448 " Optional opt1 { }" + 449 " Interaction elem2 {}" + 450 " }" + 451 " Sequence seq1 {" + 452 " Interaction elem1 {}" + 453 " Optional opt1 {" + 454 " Scroll body {}" + 455 " }" + 456 " Interaction elem2 {}" + 429 457 " }" + 430 458 "}"; … … 486 514 UsabilitySmell[] expectedSmells = new UsabilitySmell[] { }; 487 515 488 //assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec)));516 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); 489 517 490 518 } … … 538 566 UsabilitySmell[] expectedSmells = new UsabilitySmell[] { }; 539 567 540 //assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec)));568 assertUsabilityEvaluationResult(expectedSmells, rule.evaluate(createTaskModel(spec))); 541 569 542 570 }
Note: See TracChangeset
for help on using the changeset viewer.