Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.SoapUIActionsConfig


  public void addConfig( InputStream config, ClassLoader classLoader )
  {
    try
    {
      SoapuiActionsDocumentConfig configDocument = SoapuiActionsDocumentConfig.Factory.parse( config );
      SoapUIActionsConfig soapuiActions = configDocument.getSoapuiActions();

      for( SoapUIActionConfig action : soapuiActions.getActionList() )
      {
        try
        {
          String id = action.getId();
          Class<?> actionClass = Class.forName( action.getActionClass(), true, classLoader );

          addAction( id, ( SoapUIAction )actionClass.newInstance() );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
          e.printStackTrace();
        }
      }

      for( SoapUIActionGroupConfig group : soapuiActions.getActionGroupList() )
      {
        SoapUIActionGroup actionGroup = null;

        // modify existing?
        if( actionGroups.containsKey( group.getId() ) )
View Full Code Here


    }

    public void addConfig(InputStream config, ClassLoader classLoader) {
        try {
            SoapuiActionsDocumentConfig configDocument = SoapuiActionsDocumentConfig.Factory.parse(config);
            SoapUIActionsConfig soapuiActions = configDocument.getSoapuiActions();

            for (SoapUIActionConfig action : soapuiActions.getActionList()) {
                try {
                    String id = action.getId();
                    Class<?> actionClass = Class.forName(action.getActionClass(), true, classLoader);

                    addAction(id, (SoapUIAction) actionClass.newInstance());
                } catch (Exception e) {
                    SoapUI.logError(e);
                    e.printStackTrace();
                }
            }

            for (SoapUIActionGroupConfig group : soapuiActions.getActionGroupList()) {
                SoapUIActionGroup actionGroup;

                // modify existing?
                String groupId = group.getId();
                if (actionGroups.containsKey(groupId)) {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.SoapUIActionsConfig

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.