Package oracletestapplication.tests

Examples of oracletestapplication.tests.TestCase


      @Override
      public void widgetSelected(SelectionEvent e) {
        int numThreads = Integer.parseInt(threadSpinner.getText());
        TestStatement statement = getStatementByName(testCombo.getText());

        TestCase testCase = new TestCase(connectionData, statement, numThreads, 1);

        ((TestSuite) table.getInput()).addTestCase(testCase);
        table.refresh();
      }
    });
View Full Code Here


      @Override
      public void widgetSelected(SelectionEvent e) {
        int numThreads = Integer.parseInt(threadSpinner.getText());
        TestStatement statement = getStatementByName(testCombo.getText());

        TestCase testCase = new TestCase(connectionData, statement, numThreads, 1);
        long duration = TestService.executeTestCase(testCase);
        timeText.setText(String.valueOf(duration) + "ms");
      }
    });
View Full Code Here

  }

  @Override
  public String getColumnText(Object element, int columnIndex) {
    if (element instanceof TestCase) {
      TestCase testCase = (TestCase) element;
      switch (columnIndex) {
        case 0:
          return testCase.getConnectionData().name();
        case 1:
          return testCase.getTestStatement().getStatement();
        case 2:
          return String.valueOf(testCase.getNumThreads());
        case 3:
          return String.valueOf(testCase.getNumExecution());
      }
    }

    return null;
  }
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        int numThreads = Integer.parseInt(threadSpinner.getText());
        int numExecutions = Integer.parseInt(numExecSpinner.getText());
        TestStatement statement = getStatementByName(testCombo.getText());

        TestCase testCase = new TestCase(connectionData, statement, numThreads, numExecutions);
        long duration = TestService.executeTestCase(testCase);
        timeText.setText(String.valueOf(duration) + "ms");
      }
    });
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        int numThreads = Integer.parseInt(threadSpinner.getText());
        int numExecutions = Integer.parseInt(numExecSpinner.getText());
        TestStatement statement = getStatementByName(testCombo.getText());

        TestCase testCase = new TestCase(connectionData, statement, numThreads, numExecutions);

        ((TestSuite) table.getInput()).addTestCase(testCase);
        table.refresh();
      }
    });
View Full Code Here

TOP

Related Classes of oracletestapplication.tests.TestCase

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.