- Timestamp:
- 07/14/15 13:20:26 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml-test/src/test/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtilsTest.java
r2006 r2009 306 306 307 307 // create a test case for each observed sequence 308 int i = 0; 309 for (List<Event> sequence : sequences) { 310 UMLUtils.createInteractionFromEventSequence(sequence, model, 311 properties.getProperty("testcases.prefix") + 312 "_" + i, 313 properties.getProperty("test.context"), 314 false); 315 i++; 316 } 308 UMLUtils.createInteractionFromEventSequence(sequences, model, properties.getProperty("testcases.prefix"), properties.getProperty("test.context"), false); 317 309 318 310 ModelUtils.writeModelToFile(model, OUTPUT_DIR + testdata.testSuiteFile); … … 330 322 331 323 int i = 1; 332 List<Interaction> interactions = new LinkedList<>();324 List<Interaction> interactions = UMLUtils.createInteractionFromEventSequence(generatedSequences, model, properties.getProperty("testcases.prefix"), properties.getProperty("test.context"), Boolean.parseBoolean(properties.getProperty("testcases.data.random", "false"))); 333 325 int[] lengths = new int[generatedSequences.size()]; 334 326 for (List<Event> sequence : generatedSequences) { 335 interactions.add(UMLUtils336 .createInteractionFromEventSequence(sequence, model,337 properties.getProperty("testcases.prefix") +338 "_" + i,339 properties.getProperty("test.context"),340 Boolean.parseBoolean(properties.getProperty("testcases.data.random", "false"))));341 327 lengths[i - 1] = sequence.size(); 342 328 i++; … … 357 343 Collection<List<Event>> generatedSequences = 358 344 createRandomSequences(usageProfile, properties); 359 int i = 1; 360 for (List<Event> sequence : generatedSequences) { 361 UMLUtils.createInteractionFromEventSequence(sequence, model, 362 properties.getProperty("testcases.prefix") + 363 "_" + i, 364 properties.getProperty("test.context"), 365 true); 366 i++; 367 } 368 345 UMLUtils.createInteractionFromEventSequence(generatedSequences, model, properties.getProperty("testcases.prefix"), properties.getProperty("test.context"), Boolean.parseBoolean(properties.getProperty("testcases.data.random", "false"))); 346 369 347 UMLUtils.createScheduling(model, usageProfile, properties.getProperty("test.context")); 370 348 … … 419 397 int testCaseMinLength = Integer.parseInt(properties.getProperty("testcases.minlenth", "1")); 420 398 int testCaseMaxLength = 421 Integer.parseInt(properties.getProperty("testcases.maxlen th", "100"));399 Integer.parseInt(properties.getProperty("testcases.maxlength", "100")); 422 400 int maxIter = numberOfTestCases * 100; 423 401 RandomWalkGenerator testGenerator = 424 402 new RandomWalkGenerator(numberOfTestCases, testCaseMinLength, testCaseMaxLength, true, 425 403 maxIter); 426 return testGenerator.generateTestSuite(usageProfile);404 return SOAPUtils.dropInvalidResponseRequestPairs(testGenerator.generateTestSuite(usageProfile)); 427 405 } 428 406
Note: See TracChangeset
for help on using the changeset viewer.