PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/ws-tester-engine/src/main/scala/com/googlecode/wstester/Main.scala

http://ws-tester.googlecode.com/
Scala | 34 lines | 25 code | 3 blank | 6 comment | 2 complexity | 56869ef0314efd7e481df2e3a11eafa2 MD5 | raw file
 1package com.googlecode.wstester
 2
 3import config.{RequestConfig, TestConfig}
 4import handlers.TestHandler
 5import java.util.Properties
 6import java.io.{File, FileReader}
 7
 8/**
 9 * Created by IntelliJ IDEA.
10 * User: pablo
11 * Date: 2010-06-21
12 * Time: 10:48:23
13 */
14
15object Main {
16  def main(args: Array[String]) {
17    var props = new Properties();
18    props.load(new FileReader("conf.properties"));
19    var dirPrefix = props.getProperty("testDirNamePrefix");
20    var exists = true;
21    var i = 1;
22    while (exists) {
23      var testDir = new File(dirPrefix + "" + i);
24      i += 1;
25      exists = testDir exists;
26      if (exists) {
27        var tc = new TestConfig(testDir);
28        tc.parseConfig
29        val th = new TestHandler(tc, testDir.getName);
30        th.runTest;
31      }
32    }
33  }
34}