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

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


  // 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

    } );

    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

  }

  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

        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

    // 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

        });

        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

                || 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

TOP

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

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.