Changeset 1845 for trunk/autoquest-core-tasktrees-test
- Timestamp:
- 12/23/14 10:53:18 (10 years ago)
- Location:
- trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/CondenseSimilarTasksRuleTest.java
r1773 r1845 30 30 "UserSession {" + 31 31 " Sequence sequence1 {" + 32 " Event action1 {}" + 32 " Iteration it1 {" + 33 " Event action1 {}" + 34 " }" + 33 35 " Event selAction1 {}" + 34 36 " Event action3 {}" + 35 37 " }" + 36 38 " Sequence sequence2 {" + 37 " Event action1 {}" + 39 " Iteration it1 {" + 40 " Event action1 {}" + 41 " Event action1 {}" + 42 " }" + 38 43 " Event selAction2 {}" + 39 44 " Event action3 {}" + … … 44 49 "UserSession {" + 45 50 " Sequence sequence3 {" + 46 " Event action1 {}" + 51 " Iteration it1 {" + 52 " Event action1 {}" + 53 " }" + 47 54 " Selection sel1 {" + 48 55 " Event selAction1 {}" + … … 51 58 " }" + 52 59 " Sequence sequence3 {" + 53 " Event action1 {}" + 60 " Iteration it1 {" + 61 " Event action1 {}" + 62 " Event action1 {}" + 63 " }" + 54 64 " Selection sel1 {" + 55 65 " Event selAction2 {}" + … … 335 345 " Event action1 {}" + 336 346 " Event action1 {}" + 347 " Event action1 {}" + 337 348 " }" + 338 349 " Event action2 {}" + … … 351 362 " Sequence sequence4 {" + 352 363 " Iteration iter1 {" + 364 " Event action1 {}" + 353 365 " Event action1 {}" + 354 366 " Event action1 {}" + … … 634 646 " Event action2 {}" + 635 647 " }" + 648 " Sequence sequence2 {" + 649 " Event action1 {}" + 650 " Event action2 {}" + 651 " }" + 636 652 " }" + 637 653 " Event action3 {}" + … … 657 673 " Event action2 {}" + 658 674 " }" + 675 " Sequence sequence2 {" + 676 " Event action1 {}" + 677 " Event action2 {}" + 678 " }" + 659 679 " }" + 660 680 " Event action3 {}" + … … 691 711 " Event action2 {}" + 692 712 " }" + 713 " Sequence sequence2 {" + 714 " Event action1 {}" + 715 " Event action2 {}" + 716 " }" + 693 717 " }" + 694 718 " Event action3 {}" + … … 714 738 " Sequence sequence1 {" + 715 739 " Iteration itSequence2 {" + 740 " Sequence sequence2 {" + 741 " Event action1 {}" + 742 " Event action2 {}" + 743 " }" + 716 744 " Sequence sequence2 {" + 717 745 " Event action1 {}" + … … 755 783 " Event action3 {}" + 756 784 " }" + 785 " Sequence sequence3 {" + 786 " Event action2 {}" + 787 " Event action3 {}" + 788 " }" + 757 789 " }" + 758 790 " }" + … … 784 816 " Event action1 {}" + 785 817 " Iteration itSequence3 {" + 818 " Sequence sequence3 {" + 819 " Event action2 {}" + 820 " Event action3 {}" + 821 " }" + 786 822 " Sequence sequence3 {" + 787 823 " Event action2 {}" + … … 1239 1275 "UserSession {" + 1240 1276 " Sequence sequence1 {" + 1241 " Event action1 {}" + 1277 " Iteration it1 {" + 1278 " Event action1 {}" + 1279 " }" + 1242 1280 " Event selAction1 {}" + 1243 1281 " Event action2 {}" + 1244 1282 " }" + 1245 1283 " Sequence sequence2 {" + 1246 " Event action1 {}" + 1284 " Iteration it1 {" + 1285 " Event action1 {}" + 1286 " Event action1 {}" + 1287 " }" + 1247 1288 " Event selAction2 {}" + 1248 1289 " Event action2 {}" + 1249 1290 " }" + 1250 1291 " Sequence sequence3 {" + 1251 " Event action3 {}" + 1292 " Iteration it2 {" + 1293 " Event action3 {}" + 1294 " Event action3 {}" + 1295 " }" + 1252 1296 " Event selAction1 {}" + 1253 1297 " Event action4 {}" + 1254 1298 " }" + 1255 1299 " Sequence sequence4 {" + 1256 " Event action3 {}" + 1300 " Iteration it2 {" + 1301 " Event action3 {}" + 1302 " }" + 1257 1303 " Event selAction2 {}" + 1258 1304 " Event action4 {}" + … … 1263 1309 "UserSession {" + 1264 1310 " Sequence sequence5 {" + 1265 " Event action1 {}" + 1311 " Iteration it1 {" + 1312 " Event action1 {}" + 1313 " }" + 1266 1314 " Selection sel1 {" + 1267 1315 " Event selAction1 {}" + … … 1270 1318 " }" + 1271 1319 " Sequence sequence5 {" + 1272 " Event action1 {}" + 1320 " Iteration it1 {" + 1321 " Event action1 {}" + 1322 " Event action1 {}" + 1323 " }" + 1273 1324 " Selection sel1 {" + 1274 1325 " Event selAction2 {}" + … … 1277 1328 " }" + 1278 1329 " Sequence sequence6 {" + 1279 " Event action3 {}" + 1330 " Iteration it2 {" + 1331 " Event action3 {}" + 1332 " Event action3 {}" + 1333 " }" + 1280 1334 " Selection sel1 {" + 1281 1335 " Event selAction1 {}" + … … 1284 1338 " }" + 1285 1339 " Sequence sequence6 {" + 1286 " Event action3 {}" + 1340 " Iteration it2 {" + 1341 " Event action3 {}" + 1342 " }" + 1287 1343 " Selection sel1 {" + 1288 1344 " Event selAction2 {}" + … … 1903 1959 " Sequence seq1 {" + 1904 1960 " Event action1 {}" + 1905 " Event action2 {}" + 1961 " Iteration it1 {" + 1962 " Event action2 {}" + 1963 " Event action2 {}" + 1964 " }" + 1906 1965 " Selection sel1 {" + 1907 1966 " Event action3 {}" + … … 1911 1970 " Sequence seq2 {" + 1912 1971 " Event action1 {}" + 1913 " Event action2 {}" + 1972 " Iteration it1 {" + 1973 " Event action2 {}" + 1974 " }" + 1914 1975 " Selection sel2 {" + 1915 1976 " Event action4 {}" + … … 1923 1984 " Sequence seq3 {" + 1924 1985 " Event action1 {}" + 1925 " Event action2 {}" + 1986 " Iteration it1 {" + 1987 " Event action2 {}" + 1988 " Event action2 {}" + 1989 " }" + 1926 1990 " Selection sel3 {" + 1927 1991 " Event action3 {}" + … … 1931 1995 " Sequence seq3 {" + 1932 1996 " Event action1 {}" + 1933 " Event action2 {}" + 1997 " Iteration it1 {" + 1998 " Event action2 {}" + 1999 " }" + 1934 2000 " Selection sel3 {" + 1935 2001 " Event action4 {}" + -
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleTest.java
r1402 r1845 174 174 } 175 175 176 /** 177 * 178 */ 179 @Test 180 public void test_TaskDetection_03() throws Exception { 181 String input = 182 "UserSession {" + 183 " Event noise0 {}" + 184 " Event a {}" + 185 " Event b {}" + 186 " Event c {}" + 187 " Event noise1 {}" + 188 " Event a {}" + 189 " Event b {}" + 190 " Event noise2 {}" + 191 " Event b {}" + 192 " Event c {}" + 193 " Event noise3 {}" + 194 " Event a {}" + 195 " Event b {}" + 196 " Event noise4 {}" + 197 " Event b {}" + 198 " Event c {}" + 199 " Event noise5 {}" + 200 "}"; 201 202 String output = 203 "UserSession {" + 204 " Event noise0 {}" + 205 " Sequence sequence1 {" + 206 " Event a {}" + 207 " Event b {}" + 208 " }" + 209 " Event c {}" + 210 " Event noise1 {}" + 211 " Sequence sequence1 {" + 212 " Event a {}" + 213 " Event b {}" + 214 " }" + 215 " Event noise2 {}" + 216 " Sequence sequence2 {" + 217 " Event b {}" + 218 " Event c {}" + 219 " }" + 220 " Event noise3 {}" + 221 " Sequence sequence1 {" + 222 " Event a {}" + 223 " Event b {}" + 224 " }" + 225 " Event noise4 {}" + 226 " Sequence sequence2 {" + 227 " Event b {}" + 228 " Event c {}" + 229 " }" + 230 " Event noise5 {}" + 231 "}"; 232 233 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 234 } 235 236 /** 237 * 238 */ 239 @Test 240 public void test_TaskDetection_04() throws Exception { 241 String input = 242 "UserSession {" + 243 " Event noise0 {}" + 244 " Event a {}" + 245 " Event b {}" + 246 " Event a {}" + 247 " Event noise1 {}" + 248 " Event a {}" + 249 " Event b {}" + 250 " Event noise2 {}" + 251 " Event b {}" + 252 " Event a {}" + 253 " Event noise3 {}" + 254 " Event a {}" + 255 " Event b {}" + 256 " Event noise4 {}" + 257 " Event b {}" + 258 " Event a {}" + 259 " Event noise5 {}" + 260 "}"; 261 262 String output = 263 "UserSession {" + 264 " Event noise0 {}" + 265 " Sequence sequence1 {" + 266 " Event a {}" + 267 " Event b {}" + 268 " }" + 269 " Event a {}" + 270 " Event noise1 {}" + 271 " Sequence sequence1 {" + 272 " Event a {}" + 273 " Event b {}" + 274 " }" + 275 " Event noise2 {}" + 276 " Sequence sequence2 {" + 277 " Event b {}" + 278 " Event a {}" + 279 " }" + 280 " Event noise3 {}" + 281 " Sequence sequence1 {" + 282 " Event a {}" + 283 " Event b {}" + 284 " }" + 285 " Event noise4 {}" + 286 " Sequence sequence2 {" + 287 " Event b {}" + 288 " Event a {}" + 289 " }" + 290 " Event noise5 {}" + 291 "}"; 292 293 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 294 } 295 296 /** 297 * 298 */ 299 @Test 300 public void test_TaskDetection_05() throws Exception { 301 String input = 302 "UserSession {" + 303 " Event noise0 {}" + 304 " Event a {}" + 305 " Event b {}" + 306 " Event a {}" + 307 " Event noise1 {}" + 308 " Event b {}" + 309 " Event a {}" + 310 " Event b {}" + 311 " Event noise2 {}" + 312 " Event b {}" + 313 " Event a {}" + 314 " Event c {}" + 315 " Event noise2 {}" + 316 " Event a {}" + 317 " Event b {}" + 318 " Event noise3 {}" + 319 " Event a {}" + 320 " Event c {}" + 321 " Event noise4 {}" + 322 " Event a {}" + 323 " Event c {}" + 324 "}"; 325 326 String output = 327 "UserSession {" + 328 " Event noise0 {}" + 329 " Sequence 1 {" + 330 " Event a {}" + 331 " Event b {}" + 332 " }" + 333 " Event a {}" + 334 " Event noise1 {}" + 335 " Event b {}" + 336 " Sequence 1 {" + 337 " Event a {}" + 338 " Event b {}" + 339 " }" + 340 " Event noise2 {}" + 341 " Event b {}" + 342 " Sequence 2 {" + 343 " Event a {}" + 344 " Event c {}" + 345 " }" + 346 " Event noise2 {}" + 347 " Sequence 1 {" + 348 " Event a {}" + 349 " Event b {}" + 350 " }" + 351 " Event noise3 {}" + 352 " Sequence 2 {" + 353 " Event a {}" + 354 " Event c {}" + 355 " }" + 356 " Event noise4 {}" + 357 " Sequence 2 {" + 358 " Event a {}" + 359 " Event c {}" + 360 " }" + 361 "}"; 362 363 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 364 } 365 366 /** 367 * 368 */ 369 @Test 370 public void test_TaskDetection_06() throws Exception { 371 String input = 372 "UserSession {" + 373 " Event noise0 {}" + 374 " Event a {}" + 375 " Event b {}" + 376 " Event a {}" + 377 " Event noise1 {}" + 378 " Event b {}" + 379 " Event a {}" + 380 " Event b {}" + 381 " Event noise2 {}" + 382 " Event a {}" + 383 " Event b {}" + 384 " Event a {}" + 385 "}"; 386 387 String output = 388 "UserSession {" + 389 " Event noise0 {}" + 390 " Sequence 1 {" + 391 " Sequence 2 {" + 392 " Event a {}" + 393 " Event b {}" + 394 " }" + 395 " Event a {}" + 396 " }" + 397 " Event noise1 {}" + 398 " Event b {}" + 399 " Sequence 2 {" + 400 " Event a {}" + 401 " Event b {}" + 402 " }" + 403 " Event noise2 {}" + 404 " Sequence 1 {" + 405 " Sequence 2 {" + 406 " Event a {}" + 407 " Event b {}" + 408 " }" + 409 " Event a {}" + 410 " }" + 411 "}"; 412 413 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 414 } 415 416 /** 417 * 418 */ 419 @Test 420 public void test_TaskDetection_07() throws Exception { 421 String input = 422 "UserSession {" + 423 " Event noise0 {}" + 424 " Event a {}" + 425 " Event b {}" + 426 " Event c {}" + 427 " Event noise1 {}" + 428 " Event b {}" + 429 " Event c {}" + 430 " Event a {}" + 431 " Event noise2 {}" + 432 " Event c {}" + 433 " Event a {}" + 434 " Event b {}" + 435 "}"; 436 437 String output = 438 "UserSession {" + 439 " Event noise0 {}" + 440 " Event a {}" + 441 " Sequence 1 {" + 442 " Event b {}" + 443 " Event c {}" + 444 " }" + 445 " Event noise1 {}" + 446 " Sequence 1 {" + 447 " Event b {}" + 448 " Event c {}" + 449 " }" + 450 " Event a {}" + 451 " Event noise2 {}" + 452 " Event c {}" + 453 " Event a {}" + 454 " Event b {}" + 455 "}"; 456 457 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 458 } 459 460 /** 461 * 462 */ 463 @Test 464 public void test_TaskDetection_08() throws Exception { 465 String input = 466 "UserSession {" + 467 " Event noise0 {}" + 468 " Event a {}" + 469 " Event b {}" + 470 " Event c {}" + 471 " Event noise1 {}" + 472 " Event a {}" + 473 " Event b {}" + 474 " Event d {}" + 475 " Event noise2 {}" + 476 " Event a {}" + 477 " Event b {}" + 478 " Event e {}" + 479 " Event noise3 {}" + 480 " Event b {}" + 481 " Event c {}" + 482 " Event d {}" + 483 " Event noise4 {}" + 484 " Event b {}" + 485 " Event d {}" + 486 " Event e {}" + 487 " Event noise5 {}" + 488 " Event b {}" + 489 " Event d {}" + 490 " Event f {}" + 491 " Event noise6 {}" + 492 " Event a {}" + 493 " Event b {}" + 494 " Event noise7 {}" + 495 " Event b {}" + 496 " Event c {}" + 497 " Event noise8 {}" + 498 " Event b {}" + 499 " Event d {}" + 500 " Event noise9 {}" + 501 "}"; 502 503 String output = 504 "UserSession {" + 505 " Event noise0 {}" + 506 " Sequence 1 {" + 507 " Event a {}" + 508 " Event b {}" + 509 " }" + 510 " Event c {}" + 511 " Event noise1 {}" + 512 " Sequence 1 {" + 513 " Event a {}" + 514 " Event b {}" + 515 " }" + 516 " Event d {}" + 517 " Event noise2 {}" + 518 " Sequence 1 {" + 519 " Event a {}" + 520 " Event b {}" + 521 " }" + 522 " Event e {}" + 523 " Event noise3 {}" + 524 " Sequence 2 {" + 525 " Event b {}" + 526 " Event c {}" + 527 " }" + 528 " Event d {}" + 529 " Event noise4 {}" + 530 " Sequence 3 {" + 531 " Event b {}" + 532 " Event d {}" + 533 " }" + 534 " Event e {}" + 535 " Event noise5 {}" + 536 " Sequence 3 {" + 537 " Event b {}" + 538 " Event d {}" + 539 " }" + 540 " Event f {}" + 541 " Event noise6 {}" + 542 " Sequence 1 {" + 543 " Event a {}" + 544 " Event b {}" + 545 " }" + 546 " Event noise7 {}" + 547 " Sequence 2 {" + 548 " Event b {}" + 549 " Event c {}" + 550 " }" + 551 " Event noise8 {}" + 552 " Sequence 3 {" + 553 " Event b {}" + 554 " Event d {}" + 555 " }" + 556 " Event noise9 {}" + 557 "}"; 558 559 applySessionScopeRule(SequenceForTaskDetectionRule.class, input, output); 560 } 176 561 }
Note: See TracChangeset
for help on using the changeset viewer.