Package com.eviware.soapui.model.testsuite

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


    return property == null ? null : property.getValue();
  }

  public TestProperty removeProperty( String propertyName )
  {
    TestProperty property = getProperty( propertyName );
    if( property != null )
    {
      properties.remove( property );
      propertyMap.remove( propertyName.toUpperCase() );
      firePropertyRemoved( propertyName );
View Full Code Here


    return modelItem;
  }

  public void moveProperty( String propertyName, int targetIndex )
  {
    TestProperty property = getProperty( propertyName );
    int ix = properties.indexOf( property );

    if( ix == targetIndex )
      return;
View Full Code Here

        if( step != null )
        {
          if( ts != null )
          {
            TestProperty p = ts.getProperty( name );
            if( p != null )
              property = p.getValue();
          }
        }
        else
        {
          property = context.getProperty( name );
View Full Code Here

    // return (T[]) array;
  }

  private static int partition( MutableTestPropertyHolder array, int lo, int hi, int pivotIndex )
  {
    TestProperty pivotValue = array.getPropertyAt( pivotIndex );

    swap( array, pivotIndex, hi ); // send to the back

    int index = lo;

    for( int i = lo; i < hi; i++ )
    {
      if( ascending )
      {
        if( ( array.getPropertyAt( i ).getName().toUpperCase().compareTo( pivotValue.getName().toUpperCase() ) >= 0 ) )
        {
          swap( array, i, index );
          index++ ;
        }
      }
      else
      {
        if( ( array.getPropertyAt( i ).getName().toUpperCase().compareTo( pivotValue.getName().toUpperCase() ) <= 0 ) )
        {
          swap( array, i, index );
          index++ ;
        }
      }
View Full Code Here

  }

  @Override
  public Object getValueAt( int row, int column )
  {
    TestProperty param = holder.getPropertyList().get( row );
    switch( column )
    {
    case 0 :
      return param.getName();
    case 1 :
      return param.getValue();

    }
    return super.getValueAt( row, column );
  }
View Full Code Here

      {
        String teststepname = name.substring( 0, ix );
        TestStep refTestStep = testCase.getTestStepByName( teststepname );
        if( refTestStep != null )
        {
          TestProperty property = refTestStep.getProperty( name.substring( ix + 1 ) );
          return property == null ? null : property.getValue();
        }
      }

      if( testCase.getSearchProperties() )
      {
        ix = testStep == null ? testCase.getTestStepCount() - 1 : testCase.getIndexOfTestStep( testStep );
        if( ix >= testCase.getTestStepCount() )
          ix = testCase.getTestStepCount() - 1;

        while( ix >= 0 )
        {
          TestProperty property = testCase.getTestStepAt( ix ).getProperty( name );
          if( property != null )
            return property.getValue();

          ix-- ;
        }
      }
    }
View Full Code Here

    {
      String teststepname = name.substring( 0, ix );
      TestStep refTestStep = testCase.getTestStepByName( teststepname );
      if( refTestStep != null )
      {
        TestProperty property = refTestStep.getProperty( name.substring( ix + 1 ) );
        if( property != null && !property.isReadOnly() )
        {
          property.setValue( value.toString() );
          return;
        }
      }
    }
View Full Code Here

  public static XmlObjectTreeModel getXmlObjectTreeModel( TestStep testStep, SecurityCheckedParameter scp )
  {
    try
    {
      TestProperty tp = testStep.getProperty( scp.getName() );
      if( tp.getSchemaType() != null && XmlUtils.seemsToBeXml( tp.getValue() ) )
      {
        // return new XmlObjectTreeModel(
        // tp.getSchemaType().getTypeSystem(), XmlObject.Factory.parse(
        // tp.getValue() ) );
        return new XmlObjectTreeModel( tp.getSchemaType().getTypeSystem(), XmlUtils.createXmlObject( tp.getValue() ) );
      }
    }
    catch( Exception e )
    {
      SoapUI.logError( e );
View Full Code Here

        badTransfer.setDisabled( true );

      }
      else
      {
        TestProperty newProperty = project.addProperty( name );
        name = UISupport.prompt( "What is default value for property " + name, "Add Property Value", "" );
        if( StringUtils.hasContent( name ) )
          newProperty.setValue( name );
        else
          newProperty.setValue( newProperty.getName() );
        badTransfer.setSourcePropertyName( newProperty.getName() );
        resolved = true;
      }
    }
    else
    {
View Full Code Here

      return result.toStringArray();
    }

    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.