Examples of WsdlTestSuite


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

  }

  @Override
  boolean moveAfter( WsdlTestSuite source, WsdlTestSuite target )
  {
    WsdlTestSuite testCase = moveTestSuite( source, target.getProject(),
        target.getProject().getIndexOfTestSuite( target ) + 1 );

    if( testCase != null )
      UISupport.select( testCase );
View Full Code Here

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

  }

  @Override
  boolean copyBefore( WsdlTestSuite source, WsdlTestSuite target )
  {
    WsdlTestSuite testCase = copyTestSuite( source, source.getProject(),
        target.getProject().getIndexOfTestSuite( target ) );

    if( testCase != null )
      UISupport.select( testCase );
View Full Code Here

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

  }

  @Override
  boolean moveBefore( WsdlTestSuite source, WsdlTestSuite target )
  {
    WsdlTestSuite testCase = moveTestSuite( source, target.getProject(),
        target.getProject().getIndexOfTestSuite( target ) );

    if( testCase != null )
      UISupport.select( testCase );
View Full Code Here

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

        }
      }

      if( DragAndDropSupport.importRequiredInterfaces( target, requiredInterfaces, "Move TestSuite" ) )
      {
        WsdlTestSuite importedTestSuite = target.importTestSuite( testSuite, testSuite.getName(), position, true,
            null );
        if( importedTestSuite != null )
        {
          testSuite.getProject().removeTestSuite( testSuite );
          return importedTestSuite;
View Full Code Here

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

        testSuiteName = UISupport.prompt( "Enter name of TestSuite to create", "Generate TestSuite",
            iface.getName() + " TestSuite" );

      if( testSuiteName != null && testSuiteName.trim().length() > 0 )
      {
        WsdlTestSuite testSuite = project.getTestSuiteByName( testSuiteName );

        if( testSuite == null )
        {
          testSuite = project.addNewTestSuite( testSuiteName );
        }
View Full Code Here

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

        for( TestCase testCase : testCasesToRun )
          runTestCase( ( WsdlTestCase )testCase );
      }
      else if( testSuite != null )
      {
        WsdlTestSuite ts = project.getTestSuiteByName( testSuite );
        if( ts == null )
          throw new Exception( "TestSuite with name [" + testSuite + "] not found in project" );
        else
          runSuite( ts );
      }
View Full Code Here

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

        runTestCase( ( WsdlTestCase )tc );
      }
    }
    else if( testSuite != null )
    {
      WsdlTestSuite ts = project.getTestSuiteByName( testSuite );
      if( ts == null )
        throw new Exception( "TestSuite with name [" + testSuite + "] not found in project" );
      else
        runSuite( ts );
    }
View Full Code Here

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

  public void testScopedPropertyExpansion() throws Exception
  {
    WsdlProject project = new WsdlProject();
    project.addProperty( "projectId" ).setValue( "123" );
    WsdlTestSuite testSuite = project.addNewTestSuite( "TestSuite" );
    testSuite.addProperty( "testSuiteId" ).setValue( "234" );
    WsdlTestCase testCase = testSuite.addNewTestCase( "TestCase" );
    testCase.addProperty( "testCaseId" ).setValue( "345" );

    WsdlTestStep testStep = testCase.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript" );

    MockTestRunner mockTestRunner = new MockTestRunner( testCase, Logger.getLogger( "testing" ) );
View Full Code Here

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

  public static MutablePropertyExpansionImpl createMutablePropertyExpansion( String pe, ModelItem modelItem,
      Object target, String propertyName )
  {
    WsdlTestStep testStep = null;
    WsdlTestCase testCase = null;
    WsdlTestSuite testSuite = null;
    WsdlProject project = null;
    WsdlMockService mockService = null;
    WsdlMockResponse mockResponse = null;
    TestPropertyHolder holder = 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 WsdlInterface )
    {
      project = ( ( WsdlInterface )modelItem ).getProject();
    }
    else if( modelItem instanceof WsdlProject )
    {
      project = ( WsdlProject )modelItem;
    }
    else if( modelItem instanceof WsdlMockService )
    {
      mockService = ( WsdlMockService )modelItem;
      project = mockService.getProject();
    }
    else if( modelItem instanceof AbstractHttpRequestInterface<?> )
    {
      project = ( ( AbstractHttpRequest<?> )modelItem ).getOperation().getInterface().getProject();
    }
    else if( modelItem instanceof WsdlMockOperation )
    {
      mockService = ( ( WsdlMockOperation )modelItem ).getMockService();
      project = mockService.getProject();
    }
    else if( modelItem instanceof WsdlMockResponse )
    {
      mockResponse = ( WsdlMockResponse )modelItem;
      mockService = mockResponse.getMockOperation().getMockService();
      project = mockService.getProject();
    }
    else if( modelItem instanceof SecurityTest )
    {
      securityTest = ( SecurityTest )modelItem;
      testCase = securityTest.getTestCase();
      testSuite = testCase.getTestSuite();
      project = testSuite.getProject();
    }

    // explicit item reference?
    if( pe.startsWith( PropertyExpansion.PROJECT_REFERENCE ) )
    {
View Full Code Here

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

  }

  public static TestSuite cloneTestSuiteWithinProject( WsdlTestSuite testSuite, String name, WsdlProject project,
      String description )
  {
    WsdlTestSuite newTestSuite = project.importTestSuite( testSuite, name, -1, true, description );
    UISupport.select( newTestSuite );
    return newTestSuite;
  }
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.