コード例 #1
0
  private void init(LoadTestAssertionConfig assertionConfig) {
    XmlObject configuration = assertionConfig.getConfiguration();

    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);
  }
コード例 #2
0
ファイル: WssEntryBase.java プロジェクト: SmartBear/soapui
  protected int readKeyIdentifierType(XmlObjectConfigurationReader reader) {
    int identifierType = reader.readInt("keyIdentifierType", WSConstants.ISSUER_SERIAL);

    // For backward compatibility see SOAP-2347
    if (identifierType == 0) {
      return WSConstants.ISSUER_SERIAL;
    }
    return identifierType;
  }