Examples of WsdlTestStep


Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

      if( ix >= 0 )
      {
        int[] indices = testStepList.getSelectedIndices();
        if( indices.length == 1 )
        {
          WsdlTestStep testStep = testCase.getTestStepAt( ix );
          ActionSupport.addActions( ActionListBuilder.buildActions( testStep ), testListPopup );

          testListPopup.insert( SwingActionDelegate.createDelegate( new RunFromTestStepAction(), testStep ), 0 );
          testListPopup.insert( new JSeparator(), 1 );
        }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

    }

    public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected,
        boolean cellHasFocus )
    {
      WsdlTestStep testStep = ( WsdlTestStep )value;

      setText( testStep.getLabel() );
      setIcon( testStep.getIcon() );

      if( isSelected )
      {
        setBackground( list.getSelectionBackground() );
        setForeground( list.getSelectionForeground() );
      }
      else
      {
        setBackground( list.getBackground() );
        setForeground( list.getForeground() );
      }

      setEnabled( list.isEnabled() && !testStep.isDisabled() );

      String toolTipText = list.getToolTipText();
      if( toolTipText == null )
        setToolTipText( testStep.getDescription() );
      else
        setToolTipText( toolTipText.length() == 0 ? null : toolTipText );

      return this;
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

      if( name != null )
      {
        TestStepConfig newTestStepConfig = factory.createNewTestStep( testCase, name );
        if( newTestStepConfig != null )
        {
          WsdlTestStep testStep = testCase.addTestStep( newTestStepConfig );
          UISupport.selectAndShow( testStep );
        }
      }
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

    initCount = getStartStep();

    setStartTime();
    for( ; initCount < testCase.getTestStepCount() && isRunning(); initCount++ )
    {
      WsdlTestStep testStep = testCase.getTestStepAt( initCount );
      if( testStep.isDisabled() )
        continue;

      try
      {
        testStep.prepare( this, runContext );
      }
      catch( Exception e )
      {
        setStatus( Status.FAILED );
        SoapUI.logError( e );
        throw new Exception( "Failed to prepare testStep [" + testStep.getName() + "]; " + e.toString() );
      }
    }

    int currentStepIndex = startStep;
    runContext.setCurrentStep( currentStepIndex );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

  {
    WsdlTestCase testCase = getTestCase();

    for( int c = 0; c < initCount && c < testCase.getTestStepCount(); c++ )
    {
      WsdlTestStep testStep = testCase.getTestStepAt( c );
      if( !testStep.isDisabled() )
        testStep.finish( this, runContext );
    }

    try
    {
      runTearDownScripts( runContext );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

    return securityCheck.run( cloneForSecurityScan( ( WsdlTestStep )testStep ), runContext, null );
  }

  private TestStep cloneForSecurityScan( WsdlTestStep sourceTestStep )
  {
    WsdlTestStep clonedTestStep = null;
    TestStepConfig testStepConfig = ( TestStepConfig )sourceTestStep.getConfig().copy();
    WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory( testStepConfig.getType() );
    if( factory != null )
    {
      clonedTestStep = factory.buildTestStep( securityTest.getTestCase(), testStepConfig, false );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

  public void popupMenuWillBecomeVisible( PopupMenuEvent arg0 )
  {
    // create transfer menus
    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 )
      targetMenu.add( createPropertyMenu( "MockService: [" + mockService.getName() + "]", mockService ) );

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

    if( testCase != null )
    {
      targetMenu.add( createPropertyMenu( "TestCase: [" + testCase.getName() + "]", testCase ) );

      for( int c = 0; c < testCase.getTestStepCount(); c++ )
      {
        testStep = testCase.getTestStepAt( c );
        if( testStep.getPropertyNames().length == 0 )
          continue;

        if( targetMenu.getComponentCount() == 3 )
          targetMenu.add( new JSeparator() );

        targetMenu.add( createPropertyMenu( "Step " + ( c + 1 ) + ": [" + testStep.getName() + "]", testStep ) );
      }
    }

    if( securityTest != null )
      targetMenu.add( createPropertyMenu( "SecurityTest: [" + securityTest.getName() + "]", securityTest ) );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

    List<TestStepConfig> testStepConfigs = config.getTestStepList();
    List<TestStepConfig> removed = new ArrayList<TestStepConfig>();
    for( TestStepConfig tsc : testStepConfigs )
    {
      WsdlTestStep testStep = createTestStepFromConfig( tsc );
      if( testStep != null )
      {
        ensureUniqueName( testStep );
        testSteps.add( testStep );
      }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

  private WsdlTestStep createTestStepFromConfig( TestStepConfig tsc )
  {
    WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory( tsc.getType() );
    if( factory != null )
    {
      WsdlTestStep testStep = factory.buildTestStep( this, tsc, forLoadTest );
      return testStep;
    }
    else
    {
      logger.error( "Failed to create test step for [" + tsc.getName() + "]" );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

  {
    testStep.beforeSave();
    TestStepConfig newStepConfig = ( TestStepConfig )testStep.getConfig().copy();
    newStepConfig.setName( name );

    WsdlTestStep result = insertTestStep( newStepConfig, index, createCopy );
    if( result == null )
      return null;

    if( createCopy )
      ModelSupport.unsetIds( result );
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.