Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestCaseRunner


    {
      currentTestCase = testSuite.getTestCaseAt( currentTestCaseIndex );
      if( !currentTestCase.isDisabled() )
      {
        notifyBeforeRunTestCase( currentTestCase );
        TestCaseRunner testCaseRunner = runTestCase( currentTestCase, false );
        activeRunners.remove( testCaseRunner );
        finishedRunners.add( testCaseRunner );
        notifyAfterRunTestCase( testCaseRunner );
      }
    }
View Full Code Here


  private TestCaseRunner runTestCase( WsdlTestCase testCaseAt, boolean async )
  {
    DefaultPropertyExpansionContext properties = ( DefaultPropertyExpansionContext )getRunContext().getProperties();
    properties.put( "#TestSuiteRunner#", this );

    TestCaseRunner currentRunner = testCaseAt.run( properties, true );
    activeRunners.add( currentRunner );
    if( !async )
      currentRunner.waitUntilFinished();

    return currentRunner;
  }
View Full Code Here

  public TestCaseRunner getTestRunner( WsdlTestCase testCase )
  {
    Iterator<TestCaseRunner> iterator = runningTestCases.iterator();
    while( iterator.hasNext() )
    {
      TestCaseRunner testRunner = iterator.next();
      if( testRunner.getTestCase() == testCase )
        return testRunner;
    }

    return null;
  }
View Full Code Here

      }
      else
      {
        runningTestCase = targetTestCase;

        TestCaseRunner targetTestRunner = SoapUI.getTestMonitor().getTestRunner( targetTestCase );
        if( targetTestRunner != null && targetTestRunner.getStatus() == TestRunner.Status.RUNNING )
        {
          if( runMode == RunTestCaseRunModeTypeConfig.SINGLETON_AND_FAIL )
          {
            result.setStatus( TestStepStatus.FAILED );
            result.addMessage( "Target TestCase is already running" );
            result.stopTimer();
            runningTestCase = null;
          }
          else
          {
            targetTestRunner.waitUntilFinished();
          }
        }
      }

      if( runningTestCase != null )
View Full Code Here

        currentTestCaseIndex = 0;
        for (; isRunning() && currentTestCaseIndex < testSuite.getTestCaseCount(); currentTestCaseIndex++) {
            currentTestCase = testSuite.getTestCaseAt(currentTestCaseIndex);
            if (!currentTestCase.isDisabled()) {
                notifyBeforeRunTestCase(currentTestCase);
                TestCaseRunner testCaseRunner = runTestCase(currentTestCase, false);
                activeRunners.remove(testCaseRunner);
                finishedRunners.add(testCaseRunner);
                notifyAfterRunTestCase(testCaseRunner);
            }
        }
View Full Code Here

    private TestCaseRunner runTestCase(WsdlTestCase testCaseAt, boolean async) {
        DefaultPropertyExpansionContext properties = (DefaultPropertyExpansionContext) getRunContext().getProperties();
        properties.put("#TestSuiteRunner#", this);

        TestCaseRunner currentRunner = testCaseAt.run(properties, true);
        activeRunners.add(currentRunner);
        if (!async) {
            currentRunner.waitUntilFinished();
        }

        return currentRunner;
    }
View Full Code Here

            if (runMode == RunTestCaseRunModeTypeConfig.PARALLELL) {
                runningTestCase = createTestCase(targetTestCase);
            } else {
                runningTestCase = targetTestCase;

                TestCaseRunner targetTestRunner = SoapUI.getTestMonitor().getTestRunner(targetTestCase);
                if (targetTestRunner != null && targetTestRunner.getStatus() == TestRunner.Status.RUNNING) {
                    if (runMode == RunTestCaseRunModeTypeConfig.SINGLETON_AND_FAIL) {
                        result.setStatus(TestStepStatus.FAILED);
                        result.addMessage("Target TestCase is already running");
                        result.stopTimer();
                        runningTestCase = null;
                    } else {
                        targetTestRunner.waitUntilFinished();
                    }
                }
            }

            if (runningTestCase != null) {
View Full Code Here

    }

    public TestCaseRunner getTestRunner(WsdlTestCase testCase) {
        Iterator<TestCaseRunner> iterator = runningTestCases.iterator();
        while (iterator.hasNext()) {
            TestCaseRunner testRunner = iterator.next();
            if (testRunner.getTestCase() == testCase) {
                return testRunner;
            }
        }

        return null;
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestCaseRunner

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.