Package com.eviware.soapui.support.xml

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


    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( NAME_ELEMENT, "Step Average" ) );
    minRequests = reader.readInt( MIN_REQUESTS_ELEMENT, 100 );
    maxAverage = reader.readInt( MAX_AVERAGE_ELEMENT, 1000 );
    setTargetStep( reader.readString( TEST_STEP_ELEMENT, ANY_TEST_STEP ) );
    maxErrors = reader.readInt( MAX_ERRORS_ELEMENT, -1 );
    sampleInterval = reader.readInt( SAMPLE_INTERVAL_ELEMENT, 20 );
  }

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


  }

  private void readConfig( TestStepConfig config )
  {
    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config.getConfig() );
    delayString = reader.readString( "delay", DEFAULT_DELAY );
  }

  @Override
  public String getLabel()
  {
View Full Code Here

  }

  private void readConfig( TestStepConfig config )
  {
    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config.getConfig() );
    scriptText = reader.readString( "script", "" );
  }

  private void saveScript( TestStepConfig config )
  {
    XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
View Full Code Here

  private void init( LoadTestAssertionConfig assertionConfig )
  {
    XmlObject configuration = assertionConfig.getConfiguration();

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( TestStepMaxAssertion.NAME_ELEMENT, "Step Maximum" ) );
    minRequests = reader.readInt( TestStepMaxAssertion.MIN_REQUESTS_ELEMENT, 100 );
    maxValue = reader.readInt( TestStepMaxAssertion.MAX_VALUE_ELEMENT, 1000 );
    setTargetStep( reader.readString( TestStepMaxAssertion.TEST_STEP_ELEMENT, TestStepMaxAssertion.ANY_TEST_STEP ) );
    maxErrors = reader.readInt( MAX_ERRORS_ELEMENT, -1 );
  }
View Full Code Here

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( configuration );
    setName( reader.readString( TestStepMaxAssertion.NAME_ELEMENT, "Step Maximum" ) );
    minRequests = reader.readInt( TestStepMaxAssertion.MIN_REQUESTS_ELEMENT, 100 );
    maxValue = reader.readInt( TestStepMaxAssertion.MAX_VALUE_ELEMENT, 1000 );
    setTargetStep( reader.readString( TestStepMaxAssertion.TEST_STEP_ELEMENT, TestStepMaxAssertion.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

    public XQueryContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        path = reader.readString("path", null);
        expectedContent = reader.readString("content", null);
        allowWildcards = reader.readBoolean("allowWildcards", false);
    }

    public String getExpectedContent() {
View Full Code Here

    public XQueryContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        path = reader.readString("path", null);
        expectedContent = reader.readString("content", null);
        allowWildcards = reader.readBoolean("allowWildcards", false);
    }

    public String getExpectedContent() {
        return expectedContent;
View Full Code Here

    public SimpleContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        token = reader.readString("token", null);
        ignoreCase = reader.readBoolean("ignoreCase", false);
        useRegEx = reader.readBoolean("useRegEx", false);
    }

    public String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
View Full Code Here

    public SchemaComplianceAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, false, true, false, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        definition = reader.readString("definition", null);
    }

    @Override
    public void prepare(TestCaseRunner testRunner, TestCaseRunContext testRunContext) throws Exception {
        super.prepare(testRunner, testRunContext);
View Full Code Here

    public GroovyScriptAssertion(TestAssertionConfig assertionConfig, Assertable modelItem) {
        super(assertionConfig, modelItem, true, true, true, false);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        scriptText = reader.readString("scriptText", "");

        scriptEngine = SoapUIScriptEngineRegistry.create(this);
        scriptEngine.setScript(scriptText);
    }
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.