Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestProperty


    return result;
  }

  public String getPropertyValue( String name )
  {
    TestProperty property = getProperty( name );
    return property == null ? null : property.getValue();
  }
View Full Code Here


    return new HashSet<String>( Arrays.asList( getPropertyNames() ) );
  }

  public TestProperty put( String key, TestProperty value )
  {
    TestProperty result = addProperty( key );
    result.setValue( value.getValue() );
    return result;
  }
View Full Code Here

    return !holder.getProperty( names.get( rowIndex ) ).isReadOnly();
  }

  public void setValueAt( Object aValue, int rowIndex, int columnIndex )
  {
    TestProperty property = holder.getProperty( names.get( rowIndex ) );
    switch( columnIndex )
    {
    case 0 :
    {
      if( holder instanceof MutableTestPropertyHolder )
      {
        TestProperty prop = holder.getProperty( aValue.toString() );
        if( prop != null && prop != property )
        {
          UISupport.showErrorMessage( "Property name exists!" );
          return;
        }
View Full Code Here

    return holder.getProperty( names.get( rowIndex ) );
  }

  public Object getValueAt( int rowIndex, int columnIndex )
  {
    TestProperty property = holder.getProperty( names.get( rowIndex ) );
    if( property == null )
      return null;

    switch( columnIndex )
    {
    case 0 :
      return property.getName();
    case 1 :
      return property.getValue();
    }

    return null;
  }
View Full Code Here

      for( String name : propertyNames )
      {
        if( name.equals( WsdlTestStepWithProperties.RESPONSE_AS_XML ) )
          continue; // skip ResponseAsXML

        TestProperty propertyValue = propertyMap.get( name );
        if( parameters.containsKey( name ) )
        {
          addArgument( parameters.get( name ) );
        }
        else
        {
          addArgument( PropertyExpander.expandProperties( context, propertyValue.getValue() ) );
        }
      }

      StringToObjectMap stringToObjectMap = new StringToObjectMap();
      for( String key : getAmfHeadersString().getKeys() )
View Full Code Here

    public PropertyModelItem getTestProperty()
    {
      int index = getSelectedRow();
      if( index == -1 )
        return null;
      TestProperty property = propertiesModel.getPropertyAtRow( index );
      return new PropertyModelItem( property, true );
    }
View Full Code Here

                  holder.setPropertyValue( name, value );
                }
                else if( dialog.getBooleanValue( LoadOptionsForm.CREATEMISSING )
                    && holder instanceof MutableTestPropertyHolder )
                {
                  TestProperty prop = ( ( MutableTestPropertyHolder )holder ).addProperty( name );
                  if( !prop.isReadOnly() )
                    prop.setValue( value );
                  count++ ;
                }

                names.remove( name );
              }
View Full Code Here

      if( StringUtils.hasContent( sourceXPath ) )
      {
        sourceXPath = PropertyExpansionUtils.shortenXPathForPropertyExpansion( sourceXPath, val );
      }

      TestProperty property = sourceStep.getProperty( sourceProperty );
      PropertyExpansion pe = new PropertyExpansionImpl( property, sourceXPath );

      String valueForCreation = target.getValueForCreation();
      target.insertPropertyExpansion( pe, null );

      if( !StringUtils.hasContent( sourceXPath ) && StringUtils.hasContent( valueForCreation )
          && !property.isReadOnly() )
      {
        valueForCreation = UISupport.prompt( "Initialize property value to", "Get Data", valueForCreation );
        if( valueForCreation != null )
        {
          property.setValue( valueForCreation );
        }
      }
    }
View Full Code Here

    }
  }

  public TestProperty addProperty( String name )
  {
    TestProperty result = new InternalTestProperty( name, null );
    propertyMap.put( name.toUpperCase(), result );
    properties.add( result );
    firePropertyAdded( name );
    return result;
  }
View Full Code Here

    return Collections.unmodifiableList( properties );
  }

  public String getPropertyValue( String name )
  {
    TestProperty property = getProperty( name );
    return property == null ? null : property.getValue();
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestProperty

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.