Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader.readFloat()


    builder.add( "testFloat", ( float )0.123 );
    builder.add( "testInt", 123 );
    builder.add( "testString", "1234" );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( builder.finish() );
    assertEquals( ( float )0.123, reader.readFloat( "testFloat", 0 ) );
    assertEquals( 123, reader.readInt( "testInt", 0 ) );
    assertEquals( "1234", reader.readString( "testString", null ) );
  }
}
View Full Code Here


    if( config != null )
    {
      XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
      testDelay = reader.readInt( "testDelay", DEFAULT_TEST_DELAY );
      randomFactor = reader.readFloat( "randomFactor", DEFAULT_RANDOM_FACTOR );
    }
  }

  public XmlObject getConfig()
  {
View Full Code Here

  {
    super( STRATEGY_TYPE, loadTest );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
    interval = reader.readLong( INTERVAL_ELEMENT, DEFAULT_INTERVAL );
    variance = reader.readFloat( VARIANCE_ELEMENT, DEFAULT_VARIANCE );
  }

  public JComponent getConfigurationPanel()
  {
    if( configPanel == null )
View Full Code Here

    XmlObject configuration = assertionConfig.getConfiguration();
    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );

    setName( reader.readString( MaxErrorsAssertion.NAME_ELEMENT, "Max Errors" ) );
    maxAbsoluteErrors = reader.readInt( MAX_ABSOLUTE_ERRORS_ELEMENT, 100 );
    maxRelativeErrors = reader.readFloat( MAX_RELATIVE_ERRORS_ELEMENT, ( float )0.2 );
    setTargetStep( reader.readString( TEST_STEP_ELEMENT, ALL_TEST_STEPS ) );
  }

  public String getDescription()
  {
View Full Code Here

        builder.add("testFloat", (float) 0.123);
        builder.add("testInt", 123);
        builder.add("testString", "1234");

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(builder.finish());
        assertEquals((float) 0.123, reader.readFloat("testFloat", 0), 0);
        assertEquals(123, reader.readInt("testInt", 0));
        assertEquals("1234", reader.readString("testString", null));
    }
}
View Full Code Here

        super(STRATEGY_TYPE, loadTest);

        if (config != null) {
            XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config);
            testDelay = reader.readInt("testDelay", DEFAULT_TEST_DELAY);
            randomFactor = reader.readFloat("randomFactor", DEFAULT_RANDOM_FACTOR);
        }
    }

    public XmlObject getConfig() {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
View Full Code Here

    public VarianceLoadStrategy(XmlObject config, WsdlLoadTest loadTest) {
        super(STRATEGY_TYPE, loadTest);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config);
        interval = reader.readLong(INTERVAL_ELEMENT, DEFAULT_INTERVAL);
        variance = reader.readFloat(VARIANCE_ELEMENT, DEFAULT_VARIANCE);
    }

    public JComponent getConfigurationPanel() {
        if (configPanel == null) {
            ButtonBarBuilder builder = new ButtonBarBuilder();
View Full Code Here

        XmlObject configuration = assertionConfig.getConfiguration();
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);

        setName(reader.readString(MaxErrorsAssertion.NAME_ELEMENT, "Max Errors"));
        maxAbsoluteErrors = reader.readInt(MAX_ABSOLUTE_ERRORS_ELEMENT, 100);
        maxRelativeErrors = reader.readFloat(MAX_RELATIVE_ERRORS_ELEMENT, (float) 0.2);
        setTargetStep(reader.readString(TEST_STEP_ELEMENT, ALL_TEST_STEPS));
    }

    public String getDescription() {
        return "testStep: " + getTargetStep() + ", maxAbsoluteErrors: " + maxAbsoluteErrors + ", maxRelativeErrors; "
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.