Package com.eviware.soapui.impl.wsdl.loadtest

Examples of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest$ConfigurationChangePropertyListener


  public String assertResults( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
      TestCaseRunContext runContext )
  {
    if( ALL_TEST_STEPS.equals( getTargetStep() ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestLog loadTestLog = loadTest.getLoadTestLog();

      int errorCount = loadTestLog.getErrorCount( null );
      if( maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors )
        loadTestRunner.fail( "Maximum number of errors [" + maxAbsoluteErrors + "] exceeded" );

      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
      long totalSteps = statisticsModel.getStatistic( LoadTestStatistics.TOTAL, Statistic.COUNT );
      float relativeErrors = ( float )errorCount / ( float )totalSteps;

      if( maxRelativeErrors > 0 && relativeErrors > maxRelativeErrors )
        loadTestRunner.fail( "Maximum relative number of errors [" + maxRelativeErrors + "] exceeded" );
View Full Code Here


      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      int index = step.getTestCase().getIndexOfTestStep( step );

      long tps = statisticsModel.getStatistic( index, Statistic.TPS );
      if( statisticsModel.getStatistic( index, Statistic.COUNT ) >= minRequests && tps < minValue )
View Full Code Here

  public String assertResults( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
      TestCaseRunContext runContext )
  {
    if( ALL_TEST_STEPS.equals( getTargetStep() ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      long tps = statisticsModel.getStatistic( LoadTestStatistics.TOTAL, Statistic.TPS );

      if( statisticsModel.getStatistic( LoadTestStatistics.TOTAL, Statistic.COUNT ) > minRequests && tps < minValue )
      {
View Full Code Here

  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
    LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

    TestStep step = result.getTestStep();

    if( targetStepMatches( step ) )
    {
View Full Code Here

  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
    LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      int index = step.getTestCase().getIndexOfTestStep( step );
View Full Code Here

      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      int index = step.getTestCase().getIndexOfTestStep( step );

      long maximum = result.getTimeTaken();
      if( statisticsModel.getStatistic( index, Statistic.COUNT ) > minRequests && maximum >= maxValue )
View Full Code Here

  public String assertResults( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner,
      TestCaseRunContext runContext )
  {
    if( ALL_TEST_STEPS.equals( getTargetStep() ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      long sum = 0;
      List<TestStepResult> results = testRunner.getResults();
      for( int c = 0; c < results.size(); c++ )
      {
View Full Code Here

    public static HashMap<String, String> exportMultipleLoadTestToLoadUI(WsdlTestCase testCase, String[] loadTests,
                                                                         String loadUIProject) throws IOException {
        HashMap<String, String> samplerSettings = new HashMap<String, String>();
        try {
            String loadTestName = loadTests[0];
            WsdlLoadTest loadTest = (WsdlLoadTest) testCase.getLoadTestByName(loadTestName);
            HashMap<String, Object> firstSamplerSettings = exportLoadTestToLoadUI(loadTest, loadUIProject,
                    CREATE_NEW_OPTION, CREATE_NEW_OPTION);
            // String loadUITestCaseAddedTo = ( String )firstSamplerSettings.get(
            // ContextMapping.LOADUI_TEST_CASE_NAME );
            String loadUIProjectAddedTo = (String) firstSamplerSettings.get(ContextMapping.LOADUI_PROJECT_NAME);
View Full Code Here

            WsdlTestCase testCase = testSuite.getTestCaseByName(testCaseName);
            HashMap<String, Object> firstSamplerSettings;
            // String loadUITestCaseAddedTo = "";
            String loadUIProjectAddedTo = "";
            if (testCase != null) {
                WsdlLoadTest loadTest = (WsdlLoadTest) testCase.getLoadTestByName(loadTestName);
                if (loadTest != null) {
                    firstSamplerSettings = exportLoadTestToLoadUI(loadTest, loadUIProject, CREATE_NEW_OPTION,
                            CREATE_NEW_OPTION);
                    // loadUITestCaseAddedTo = ( String )firstSamplerSettings.get(
                    // ContextMapping.LOADUI_TEST_CASE_NAME );
                    loadUIProjectAddedTo = (String) firstSamplerSettings.get(ContextMapping.LOADUI_PROJECT_NAME);
                }

            }

            for (int i = 1; i < loadTests.length; i++) {
                compositeLoadTestName = loadTests[i];
                loadTestName = loadTests[i];
                WsdlLoadTest loadTest = (WsdlLoadTest) testCase.getLoadTestByName(loadTestName);
                testCaseName = names[0];
                loadTestName = names[1];
                testCase = testSuite.getTestCaseByName(testCaseName);
                if (testCase != null) {
                    loadTest = (WsdlLoadTest) testCase.getLoadTestByName(loadTestName);
View Full Code Here

    public void beforeLoadTest(LoadTestRunner loadTestRunner, LoadTestRunContext context) {
        super.beforeLoadTest(loadTestRunner, context);
        stateDependantComponents.setEnabled(false);

        WsdlLoadTest wsdlLoadTest = ((WsdlLoadTest) loadTestRunner.getLoadTest());
        wsdlLoadTest.setThreadCount(startThreadCount);
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest$ConfigurationChangePropertyListener

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.