Examples of WsdlProject


Examples of com.eviware.soapui.impl.wsdl.WsdlProject

  public void soapUITestRunner() {
   
    log.info("Running soapUI integration tests...");
    log.warn("Integration tests have been disabled");
   
    WsdlProject project = null;
    try {
      project = new WsdlProject("src/test/resources/integration-tests/" + getTestSuiteProject());
    } catch (XmlException | IOException | SoapUIException e1) {
      fail();
      e1.printStackTrace();
    }
   
    TestSuite testSuite = project.getTestSuiteByName(getTestSuiteName());
     
    TestRunner runner = testSuite.run(new PropertiesMap(), false);
   
    assertEquals(Status.FINISHED, runner.getStatus());
   
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

        public WsdlInternalState(final String wsdl, final Properties httpClientProps)
            throws IOException
        {
            try {
                final WsdlProject wsdlProject = new WsdlProject();
                final HttpClient httpClient = HttpClientFactory.createHttpClient(httpClientProps);
                try {
                    EsbWsdlLoader loader = new EsbWsdlLoader(wsdl, httpClient);
                    WsdlLoaderAspect.set(loader); // JBESB-3276
                    final WsdlInterface[] wsdlInterfaces = wsdlProject.importWsdl(wsdl, true, loader);
                    nils = extractNillableElements(wsdl, loader) ;

                    defaultContentType = wsdlInterfaces[0].getSoapVersion().getContentType() ;
                    defaultEndpoint = wsdlInterfaces[0].getEndpoints()[0] ;
                   
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    public void run()
    {
      try
      {
        WsdlProject project = ( WsdlProject )getWorkspace().createProject( arg.getHost(), null );
        SoapUIAction<ModelItem> action = getActionRegistry().getAction( NewRestServiceAction.SOAPUI_ACTION_ID );
        if( action != null )
          action.perform( project, arg );
      }
      catch( SoapUIException e )
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    }
  }

  public void internalRun( WsdlProjectRunContext runContext ) throws Exception
  {
    WsdlProject project = getTestRunnable();

    listeners = project.getProjectRunListeners();
    project.runBeforeRunScript( runContext, this );
    if( !isRunning() )
    {
      return;
    }

    if( project.getTimeout() > 0 )
    {
      startTimeoutTimer( project.getTimeout() );
    }

    notifyBeforeRun();
    if( !isRunning() )
      return;

    if( project.getRunType() == TestSuiteRunType.SEQUENTIAL )
    {
      runSequential( project, runContext );
    }
    else if( project.getRunType() == TestSuiteRunType.PARALLEL )
    {
      runParallel( project, runContext );
    }
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    return currentRunner;
  }

  protected void internalFinally( WsdlProjectRunContext runContext )
  {
    WsdlProject project = getTestRunnable();

    try
    {
      project.runAfterRunScript( runContext, this );
    }
    catch( Exception e )
    {
      SoapUI.logError( e );
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

  {
    if( !UISupport.confirm( "Add Request [" + source.getName() + "] to TestCase [" + target.getTestCase().getName()
        + "]", "Add Request to TestCase" ) )
      return false;

    WsdlProject targetProject = target.getTestCase().getTestSuite().getProject();
    if( targetProject != source.getOperation().getInterface().getProject() )
    {
      HashSet<Interface> requiredInterfaces = new HashSet<Interface>();
      requiredInterfaces.add( source.getOperation().getInterface() );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

  {
    if( !UISupport.confirm( "Add Request [" + source.getName() + "] to TestCase [" + target.getName() + "]",
        "Add Request to TestCase" ) )
      return false;

    WsdlProject targetProject = target.getTestSuite().getProject();
    if( targetProject != source.getOperation().getInterface().getProject() )
    {
      HashSet<Interface> requiredInterfaces = new HashSet<Interface>();
      requiredInterfaces.add( source.getOperation().getInterface() );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    String name = UISupport.prompt( "Enter name for copied TestStep", "Copy TestStep",
        target == source.getTestCase() ? "Copy of " + source.getName() : source.getName() );
    if( name == null )
      return false;

    WsdlProject sourceProject = source.getTestCase().getTestSuite().getProject();
    WsdlProject targetProject = target.getTestSuite().getProject();

    if( sourceProject != targetProject )
    {
      if( !importRequiredInterfaces( targetProject, new HashSet<Interface>( source.getRequiredInterfaces() ),
          "Copy Test Step" ) )
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    {
      String name = UISupport.prompt( "Enter name for moved TestStep", "Move TestStep", source.getName() );
      if( name == null )
        return false;

      WsdlProject sourceProject = source.getTestCase().getTestSuite().getProject();
      WsdlProject targetProject = target.getTestSuite().getProject();

      if( sourceProject != targetProject )
      {
        if( !importRequiredInterfaces( targetProject, new HashSet<Interface>( source.getRequiredInterfaces() ),
            "Move Test Step" ) )
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlProject

    targetMenu.removeAll();

    WsdlTestStep testStep = null;
    WsdlTestCase testCase = null;
    WsdlTestSuite testSuite = null;
    WsdlProject project = null;
    WsdlMockService mockService = null;
    WsdlMockResponse mockResponse = null;
    SecurityTest securityTest = null;

    if( modelItem instanceof WsdlTestStep )
    {
      testStep = ( WsdlTestStep )modelItem;
      testCase = testStep.getTestCase();
      testSuite = testCase.getTestSuite();
      project = testSuite.getProject();
    }
    else if( modelItem instanceof WsdlTestCase )
    {
      testCase = ( WsdlTestCase )modelItem;
      testSuite = testCase.getTestSuite();
      project = testSuite.getProject();
    }
    else if( modelItem instanceof WsdlTestSuite )
    {
      testSuite = ( WsdlTestSuite )modelItem;
      project = testSuite.getProject();
    }
    else if( modelItem instanceof WsdlMockService )
    {
      project = ( ( WsdlMockService )modelItem ).getProject();
    }
    else if( modelItem instanceof WsdlMockResponse )
    {
      mockResponse = ( WsdlMockResponse )modelItem;
      mockService = ( mockResponse ).getMockOperation().getMockService();
      project = mockService.getProject();
    }
    else if( modelItem instanceof WsdlProject )
    {
      project = ( WsdlProject )modelItem;
    }
    else if( modelItem instanceof AbstractHttpRequestInterface<?> )
    {
      project = ( ( AbstractHttpRequest<?> )modelItem ).getOperation().getInterface().getProject();
    }
    else if( modelItem instanceof Operation )
    {
      project = ( WsdlProject )( ( Operation )modelItem ).getInterface().getProject();
    }
    else if( modelItem instanceof SecurityTest )
    {
      securityTest = ( SecurityTest )modelItem;
      testCase = securityTest.getTestCase();
      testSuite = testCase.getTestSuite();
      project = testSuite.getProject();
    }

    TestPropertyHolder globalProperties = PropertyExpansionUtils.getGlobalProperties();
    if( globalProperties.getProperties().size() > 0 )
      targetMenu.add( createPropertyMenu( "Global", globalProperties ) );

    if( project != null )
      targetMenu.add( createPropertyMenu( "Project: [" + project.getName() + "]", project ) );

    if( testSuite != null )
      targetMenu.add( createPropertyMenu( "TestSuite: [" + testSuite.getName() + "]", testSuite ) );

    if( mockService != null )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.