Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.PropertyExpansionContext


    public void actionPerformed( ActionEvent arg0 )
    {
      try
      {

        PropertyExpansionContext context = new DefaultPropertyExpansionContext( getModelItem() );
        JdbcUtils.initConnection( context, jdbcRequestTestStep.getDriver(),
            jdbcRequestTestStep.getConnectionString(), jdbcRequestTestStep.getPassword() );
        UISupport.showInfoMessage( "The Connection Successfully Tested" );
      }
      catch( SoapUIException e )
View Full Code Here


        {
          @Override
          public ProxyServerLogin authenticationRequired( ServerType arg0 )
          {
            Settings settings = SoapUI.getSettings();
            PropertyExpansionContext context = null;

            String proxyUsername = PropertyExpander.expandProperties( context,
                settings.getString( ProxySettings.USERNAME, null ) );
            String proxyPassword = PropertyExpander.expandProperties( context,
                settings.getString( ProxySettings.PASSWORD, null ) );

            return new ProxyServerLogin( proxyUsername, proxyPassword );
          }
        } );

        proxyAuthenticationInitialized = true;
      }

      if( ProxyUtils.isProxyEnabled() )
      {
        Settings settings = SoapUI.getSettings();
        PropertyExpansionContext context = null;

        // check system properties first
        String proxyHost = System.getProperty( "http.proxyHost" );
        String proxyPort = System.getProperty( "http.proxyPort" );
View Full Code Here

  public static WsdlInterface[] importWsdl( WsdlProject project, String url, boolean createRequests,
      QName bindingName, WsdlLoader wsdlLoader ) throws SoapUIException
  {
    WsdlInterface[] result;

    PropertyExpansionContext context = new DefaultPropertyExpansionContext( project.getModelItem() );
    url = PropertyExpander.expandProperties( context, url );
    try
    {
      result = WsdlImporter.importWsdl( project, url, bindingName, wsdlLoader );
    }
View Full Code Here

    definitionContext = null;
    wsdlContextDef = null;

    // get correct context for checking if cache has been cleared for this run
    PropertyExpansionContext context = testRunContext.hasProperty( TestCaseRunContext.LOAD_TEST_CONTEXT ) ? ( PropertyExpansionContext )testRunContext
        .getProperty( TestCaseRunContext.LOAD_TEST_CONTEXT ) : testRunContext;

    synchronized( context )
    {
      if( !context.hasProperty( SCHEMA_COMPLIANCE_HAS_CLEARED_CACHE_FLAG ) )
      {
        wsdlContextMap.clear();
        context.setProperty( SCHEMA_COMPLIANCE_HAS_CLEARED_CACHE_FLAG, "yep!" );
      }
    }
  }
View Full Code Here

    public static WsdlInterface[] importWsdl(WsdlProject project, String url, boolean createRequests,
                                             QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException {
        WsdlInterface[] result;

        PropertyExpansionContext context = new DefaultPropertyExpansionContext(project.getModelItem());
        url = PropertyExpander.expandProperties(context, url);
        try {
            result = WsdlImporter.importWsdl(project, url, bindingName, wsdlLoader);
        } catch (InvalidDefinitionException e) {
            throw e;
View Full Code Here

        definitionContext = null;
        wsdlContextDef = null;

        // get correct context for checking if cache has been cleared for this run
        PropertyExpansionContext context = testRunContext.hasProperty(TestCaseRunContext.LOAD_TEST_CONTEXT) ? (PropertyExpansionContext) testRunContext
                .getProperty(TestCaseRunContext.LOAD_TEST_CONTEXT) : testRunContext;

        synchronized (context) {
            if (!context.hasProperty(SCHEMA_COMPLIANCE_HAS_CLEARED_CACHE_FLAG)) {
                wsdlContextMap.clear();
                context.setProperty(SCHEMA_COMPLIANCE_HAS_CLEARED_CACHE_FLAG, "yep!");
            }
        }
    }
View Full Code Here

        }

        public void actionPerformed(ActionEvent arg0) {
            try {

                PropertyExpansionContext context = new DefaultPropertyExpansionContext(getModelItem());
                JdbcUtils.initConnection(context, jdbcRequestTestStep.getDriver(),
                        jdbcRequestTestStep.getConnectionString(), jdbcRequestTestStep.getPassword());
                UISupport.showInfoMessage("The Connection Successfully Tested");
            } catch (SoapUIException e) {
                SoapUI.logError(e);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.PropertyExpansionContext

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.