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

Examples of com.eviware.soapui.impl.wsdl.loadtest.strategy.VarianceLoadStrategy


      return;
    }
    if( loadStrategy instanceof VarianceLoadStrategy )
    {
      loadUITriggerType = VARIANCE_TRIGGER;
      VarianceLoadStrategy currentStrategy = ( VarianceLoadStrategy )loadStrategy;
      return;
    }
    if( loadStrategy instanceof ThreadCountChangeLoadStrategy )
    {
      loadUITriggerType = RAMP_TRIGGER;
View Full Code Here


    LoadStrategy loadStrategy = loadTest.getLoadStrategy();
    triggerProperties = ( HashMap<String, String> )createdItemContext.get( TRIGGER_PROPERTIES );
    if( loadStrategy instanceof VarianceLoadStrategy )
    {
      loadUITriggerType = VARIANCE_TRIGGER;
      VarianceLoadStrategy currentStrategy = ( VarianceLoadStrategy )loadStrategy;
      long rate = extractLongProperty( "rate" );
      triggerProperties.put( "shape", createProperyValue( String.class, "Sine-wave" ) );
      triggerProperties.put( "amplitude",
          createProperyValue( Long.class, Long.toString( ( ( long )( currentStrategy.getVariance() * rate ) ) ) ) );
      triggerProperties.put( "period",
          createProperyValue( Long.class, Long.toString( currentStrategy.getInterval() / 1000 ) ) );
    }
    if( loadStrategy instanceof ThreadCountChangeLoadStrategy )
    {
      loadUITriggerType = RAMP_TRIGGER;
      ThreadCountChangeLoadStrategy currentStrategy = ( ThreadCountChangeLoadStrategy )loadStrategy;
      long end = extractLongProperty( "end" );
      triggerProperties.put(
          "end",
          createProperyValue(
              Long.class,
              Long.toString( end
                  * ( currentStrategy.getEndThreadCount() / currentStrategy.getStartThreadCount() ) ) ) );
      if( loadTest.getLimitType().equals( LoadTestLimitTypesConfig.TIME ) )
      {
        triggerProperties
            .put( "period", createProperyValue( Long.class, Long.toString( loadTest.getTestLimit() ) ) );
      }
View Full Code Here

            }
            return;
        }
        if (loadStrategy instanceof VarianceLoadStrategy) {
            loadUITriggerType = VARIANCE_TRIGGER;
            VarianceLoadStrategy currentStrategy = (VarianceLoadStrategy) loadStrategy;
            return;
        }
        if (loadStrategy instanceof ThreadCountChangeLoadStrategy) {
            loadUITriggerType = RAMP_TRIGGER;
            ThreadCountChangeLoadStrategy currentStrategy = (ThreadCountChangeLoadStrategy) loadStrategy;
View Full Code Here

                                                                   HashMap<String, Object> createdItemContext) {
        LoadStrategy loadStrategy = loadTest.getLoadStrategy();
        triggerProperties = (HashMap<String, String>) createdItemContext.get(TRIGGER_PROPERTIES);
        if (loadStrategy instanceof VarianceLoadStrategy) {
            loadUITriggerType = VARIANCE_TRIGGER;
            VarianceLoadStrategy currentStrategy = (VarianceLoadStrategy) loadStrategy;
            long rate = extractLongProperty("rate");
            triggerProperties.put("shape", createProperyValue(String.class, "Sine-wave"));
            triggerProperties.put("amplitude",
                    createProperyValue(Long.class, Long.toString(((long) (currentStrategy.getVariance() * rate)))));
            triggerProperties.put("period",
                    createProperyValue(Long.class, Long.toString(currentStrategy.getInterval() / 1000)));
        }
        if (loadStrategy instanceof ThreadCountChangeLoadStrategy) {
            loadUITriggerType = RAMP_TRIGGER;
            ThreadCountChangeLoadStrategy currentStrategy = (ThreadCountChangeLoadStrategy) loadStrategy;
            long end = extractLongProperty("end");
            triggerProperties.put(
                    "end",
                    createProperyValue(
                            Long.class,
                            Long.toString(end
                                    * (currentStrategy.getEndThreadCount() / currentStrategy.getStartThreadCount()))));
            if (loadTest.getLimitType().equals(LoadTestLimitTypesConfig.TIME)) {
                triggerProperties
                        .put("period", createProperyValue(Long.class, Long.toString(loadTest.getTestLimit())));
            }
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.loadtest.strategy.VarianceLoadStrategy

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.