Package qat.parser

Examples of qat.parser.GenericTestFinder


    parent.updateStatus(Resources.getString("startingRun"),runList,0);
    startTime = new Date();
    endTime = startTime;

    TestFinderInterface testFinder = new GenericTestFinder(parent.getProperties());
    testFinder.setProjectRoot(rootDirectory);

    ParserInterface parser;

    for(int i = 0; ((i < runList.size())&&(running)); i++) {
      runProgress = i;
      test = (TestSpecification)runList.get(i);
      parser = testFinder.getParser(new File(test.getTestSpecPath()));
      if (parser==null) {
        System.out.println("No test finder registered for "+test.getTestSpecPath());
      }
      else {
        parser.prepare(parent.getProjectResultsDirectory());
View Full Code Here


   * @param dirpath - the root directory to look for the test files in.
   */
  public void loadNewTestDir(String dirPath, StatusWindow status) {
    TestTreeNode newRoot = new TestTreeNode(dirPath);
    // get the required test finder interface
    GenericTestFinder testFinder=new GenericTestFinder(getDefaultProperties());
    testFinder.setProjectRoot(dirPath);

    loadTestDir(newRoot, dirPath, testFinder, status);
    ((TestTreeModel)tree.getModel()).setRoot(treeRoot = newRoot);
    ((TestTreeModel)tree.getModel()).reload(treeRoot);
    //  parser.finish();
View Full Code Here

      path = path+File.separator+((TestTreeNode)pathSegments[i]).getUserObject().toString();

    // remove the children first
    thisRoot.removeAllChildren();
    // decide which test finder to use
    GenericTestFinder testFinder=new GenericTestFinder(getDefaultProperties());
    testFinder.setProjectRoot(getProjectRoot());

    loadTestDir(thisRoot, path, testFinder, status);

    // this seems to be neccesary else the tree kinda hangs
    ((TestTreeModel)tree.getModel()).reload(treeRoot);
View Full Code Here

  }

  private void editSelected(ActionEvent e) {
    try {
      setMenuVisible(false);
      TestFinderInterface testFinder = new GenericTestFinder(parent.getProperties());
      new  Notepad(test.getTestSpecPath(),
          testFinder.getParser(new File(test.getTestSpecPath())),
          new Boolean(parent.getProperty(Common.SYNTAX_HIGHLIGHTING,"true")).booleanValue());
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

    }

    public void actionPerformed(ActionEvent e) {
      setMenuVisible(false);
      try {
        TestFinderInterface testFinder = new GenericTestFinder(parent.getProperties());   
        new  Notepad(s,
            testFinder.getParser(new File(s)),
            new Boolean(parent.getProperty(Common.SYNTAX_HIGHLIGHTING,"true")).booleanValue());
      }
      catch (Exception ex) {
        ex.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of qat.parser.GenericTestFinder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.