Package com.eviware.soapui.support.xml

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


    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


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

    super( STRATEGY_TYPE, loadTest );

    if( config != null )
    {
      XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
      startThreadCount = reader.readInt( "startThreadCount", DEFAULT_START_THREAD_COUNT );
      endThreadCount = reader.readInt( "endThreadCount", DEFAULT_END_THREAD_COUNT );
    }
  }

  public XmlObject getConfig()
View Full Code Here

    if( config != null )
    {
      XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
      startThreadCount = reader.readInt( "startThreadCount", DEFAULT_START_THREAD_COUNT );
      endThreadCount = reader.readInt( "endThreadCount", DEFAULT_END_THREAD_COUNT );
    }
  }

  public XmlObject getConfig()
  {
View Full Code Here

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

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
    burstDelay = reader.readInt( BURST_DELAY_ELEMENT, DEFAULT_BURST_DELAY );
    burstDuration = reader.readInt( BURST_DURATION_ELEMENT, DEFAULT_BURST_DURATION );
  }

  public void beforeLoadTest( LoadTestRunner loadTestRunner, LoadTestRunContext context )
  {
View Full Code Here

  {
    super( STRATEGY_TYPE, loadTest );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
    burstDelay = reader.readInt( BURST_DELAY_ELEMENT, DEFAULT_BURST_DELAY );
    burstDuration = reader.readInt( BURST_DURATION_ELEMENT, DEFAULT_BURST_DURATION );
  }

  public void beforeLoadTest( LoadTestRunner loadTestRunner, LoadTestRunContext context )
  {
    super.beforeLoadTest( loadTestRunner, context );
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

  {
    XmlObject configuration = assertionConfig.getConfiguration();

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( TestStepTpsAssertion.NAME_ELEMENT, "Step TPS" ) );
    minRequests = reader.readInt( TestStepTpsAssertion.MIN_REQUESTS_ELEMENT, 100 );
    minValue = reader.readInt( TestStepTpsAssertion.MIN_VALUE_ELEMENT, 10 );
    setTargetStep( reader.readString( TestStepTpsAssertion.TEST_STEP_ELEMENT, TestStepTpsAssertion.ANY_TEST_STEP ) );
    maxErrors = reader.readInt( MAX_ERRORS_ELEMENT, -1 );
  }
View Full Code Here

    XmlObject configuration = assertionConfig.getConfiguration();

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( TestStepTpsAssertion.NAME_ELEMENT, "Step TPS" ) );
    minRequests = reader.readInt( TestStepTpsAssertion.MIN_REQUESTS_ELEMENT, 100 );
    minValue = reader.readInt( TestStepTpsAssertion.MIN_VALUE_ELEMENT, 10 );
    setTargetStep( reader.readString( TestStepTpsAssertion.TEST_STEP_ELEMENT, TestStepTpsAssertion.ANY_TEST_STEP ) );
    maxErrors = reader.readInt( MAX_ERRORS_ELEMENT, -1 );
  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
View Full Code Here

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( TestStepTpsAssertion.NAME_ELEMENT, "Step TPS" ) );
    minRequests = reader.readInt( TestStepTpsAssertion.MIN_REQUESTS_ELEMENT, 100 );
    minValue = reader.readInt( TestStepTpsAssertion.MIN_VALUE_ELEMENT, 10 );
    setTargetStep( reader.readString( TestStepTpsAssertion.TEST_STEP_ELEMENT, TestStepTpsAssertion.ANY_TEST_STEP ) );
    maxErrors = reader.readInt( MAX_ERRORS_ELEMENT, -1 );
  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
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.