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

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


  {
    triggerProperties = new HashMap<String, String>();
    LoadStrategy loadStrategy = loadTest.getLoadStrategy();
    if( loadStrategy instanceof SimpleLoadStrategy )
    {
      SimpleLoadStrategy currentStrategy = ( SimpleLoadStrategy )loadStrategy;
      loadUITriggerType = FIXED_LOAD_TRIGGER;
      triggerProperties.put( "load", createProperyValue( Long.class, Long.toString( loadTest.getThreadCount() ) ) );
      long testDelay = currentStrategy.getTestDelay();
      if( testDelay > 0 )
      {
        delayProperties = new HashMap<String, String>();
        delayProperties.put( "delay", createProperyValue( Long.class, Long.toString( testDelay ) ) );
        int randomFactor = ( int )( currentStrategy.getRandomFactor() * 100 );
        delayProperties.put( "randomDelay", createProperyValue( Long.class, Integer.toString( randomFactor ) ) );
      }
      return;
    }
    if( loadStrategy instanceof VarianceLoadStrategy )
View Full Code Here


    protected void mapInitialTriggerProperties(WsdlLoadTest loadTest) {
        triggerProperties = new HashMap<String, String>();
        LoadStrategy loadStrategy = loadTest.getLoadStrategy();
        if (loadStrategy instanceof SimpleLoadStrategy) {
            SimpleLoadStrategy currentStrategy = (SimpleLoadStrategy) loadStrategy;
            loadUITriggerType = FIXED_LOAD_TRIGGER;
            triggerProperties.put("load", createProperyValue(Long.class, Long.toString(loadTest.getThreadCount())));
            long testDelay = currentStrategy.getTestDelay();
            if (testDelay > 0) {
                delayProperties = new HashMap<String, String>();
                delayProperties.put("delay", createProperyValue(Long.class, Long.toString(testDelay)));
                int randomFactor = (int) (currentStrategy.getRandomFactor() * 100);
                delayProperties.put("randomDelay", createProperyValue(Long.class, Integer.toString(randomFactor)));
            }
            return;
        }
        if (loadStrategy instanceof VarianceLoadStrategy) {
View Full Code Here

TOP

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

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.