Examples of LoadStrategy


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

  }

  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() ) ) );
View Full Code Here

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

  // repopulates the properties with right values, if property is not set old
  // value it means leave the old value
  protected HashMap<String, String> mapExistingTriggerProperties( WsdlLoadTest loadTest,
      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;
View Full Code Here

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

    } );

    builder.addFixed( threadsSpinner );
    builder.addUnrelatedGap();

    LoadStrategy loadStrategy = loadTest.getLoadStrategy();

    builder.addFixed( new JLabel( "Strategy" ) );
    builder.addRelatedGap();
    builder.addFixed( strategyCombo );
    builder.addUnrelatedGap();

    loadStrategyConfigurationPanel = new JPanel( new BorderLayout() );
    loadStrategyConfigurationPanel.add( loadStrategy.getConfigurationPanel(), BorderLayout.CENTER );

    builder.addFixed( loadStrategyConfigurationPanel );
    builder.setBorder( BorderFactory.createEmptyBorder( 2, 3, 3, 3 ) );

    return UISupport.buildPanelWithToolbar( toolbar, builder.getPanel() );
View Full Code Here

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

  }

  public void setLoadStrategy( String type )
  {
    LoadStrategyFactory factory = LoadStrategyRegistry.getInstance().getFactory( type );
    LoadStrategy loadStrategy = factory.create( getModelItem() );
    getModelItem().setLoadStrategy( loadStrategy );
    loadStrategyConfigurationPanel.removeAll();
    loadStrategyConfigurationPanel.add( loadStrategy.getConfigurationPanel(), BorderLayout.CENTER );
    loadStrategyConfigurationPanel.revalidate();
  }
View Full Code Here

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

        return context;
    }

    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();
View Full Code Here

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

    // repopulates the properties with right values, if property is not set old
    // value it means leave the old value
    protected HashMap<String, String> mapExistingTriggerProperties(WsdlLoadTest loadTest,
                                                                   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");
View Full Code Here

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

        });

        builder.addFixed(threadsSpinner);
        builder.addUnrelatedGap();

        LoadStrategy loadStrategy = loadTest.getLoadStrategy();

        builder.addFixed(new JLabel("Strategy"));
        builder.addRelatedGap();
        builder.addFixed(strategyCombo);
        builder.addUnrelatedGap();

        loadStrategyConfigurationPanel = new JPanel(new BorderLayout());
        loadStrategyConfigurationPanel.add(loadStrategy.getConfigurationPanel(), BorderLayout.CENTER);

        builder.addFixed(loadStrategyConfigurationPanel);
        builder.setBorder(BorderFactory.createEmptyBorder(2, 3, 3, 3));

        return UISupport.buildPanelWithToolbar(toolbar, builder.getPanel());
View Full Code Here

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

                || modelItem == loadTest.getTestCase().getTestSuite().getProject();
    }

    public void setLoadStrategy(String type) {
        LoadStrategyFactory factory = LoadStrategyRegistry.getInstance().getFactory(type);
        LoadStrategy loadStrategy = factory.create(getModelItem());
        getModelItem().setLoadStrategy(loadStrategy);
        loadStrategyConfigurationPanel.removeAll();
        loadStrategyConfigurationPanel.add(loadStrategy.getConfigurationPanel(), BorderLayout.CENTER);
        loadStrategyConfigurationPanel.revalidate();
    }
View Full Code Here

Examples of de.fzi.herakles.commons.strategy.LoadStrategy

            parser.next();
            continue;
          }
         
          try {
            LoadStrategy s = (LoadStrategy) clazz.getConstructor( (Class<?>[]) null ).newInstance( (Object[]) null );
            loadStrategies.add(className);
            loadStrategyProperties.put(className, s.getProperty());
          } catch (InstantiationException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (IllegalAccessException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (IllegalArgumentException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (SecurityException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (NoSuchMethodException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
          break;
        }
        if(parser.getLocalName().equals("ExecutionStrategy")){
          parser.next();
          String className = parser.getText();
          Class<ExecutionStrategy> clazz = null;
          try {
            clazz = (Class<ExecutionStrategy>) Class.forName(className);
          } catch (ClassNotFoundException e) {
            parser.next();
            continue;
          }
          try {
            ExecutionStrategy s = clazz.getConstructor( (Class<?>[]) null ).newInstance( (Object[]) null );;
            executionStrategies.add(className);
            executionStrategyProperties.put(className, s.getProperty());
          } catch (InstantiationException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (IllegalAccessException e) {
            // TODO Auto-generated catch block
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.