Examples of WsdlTestCase


Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase

  }

  private void generateSingleTestCase( WsdlTestSuite testSuite, RestService service, boolean createLoadTest,
      List<String> resources )
  {
    WsdlTestCase testCase = testSuite.addNewTestCase( service.getName() + " TestSuite" );

    for( RestResource resource : service.getAllResources() )
    {
      if( !resources.contains( resource.getName() + ": " + resource.getFullPath( false ) ) )
        continue;

      if( resource.getRequestCount() > 0 )
      {
        for( int x = 0; x < resource.getRequestCount(); x++ )
        {
          testCase.addTestStep( RestRequestStepFactory.createConfig( resource.getRequestAt( x ),
              resource.getName() ) );
        }
      }
    }

    if( createLoadTest )
    {
      testCase.addNewLoadTest( "LoadTest 1" );
    }
  }
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.