Examples of TestStep


Examples of com.eviware.soapui.model.testsuite.TestStep

            if( !testStepSecurityTestListConfig.getTestStepSecurityScanList().isEmpty() )
            {
              for( SecurityScanConfig secScanConfig : testStepSecurityTestListConfig
                  .getTestStepSecurityScanList() )
              {
                TestStep testStep = null;
                for( TestStep ts : testCase.getTestSteps().values() )
                  if( testStepSecurityTestListConfig.getTestStepId().equals( ts.getId() ) )
                  {
                    testStep = ts;
                    SecurityScan securityScan = SoapUI.getSoapUICore().getSecurityScanRegistry()
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

      List<LoadTestStepSample[]> s = new ArrayList<LoadTestStepSample[]>();
      List<TestStepResult> testResults = testRunner.getResults();

      for( int c = 0; c < loadTest.getTestCase().getTestStepCount(); c++ )
      {
        TestStep testStep = loadTest.getTestCase().getTestStepAt( c );
        List<LoadTestStepSample> results = new ArrayList<LoadTestStepSample>();

        for( int i = 0; i < testResults.size(); i++ )
        {
          TestStepResult stepResult = testResults.get( i );
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

  @Override
  protected String internalAssertResponse( MessageExchange messageExchange, SubmitContext context )
      throws AssertionException
  {
    TestStep testStep = ( TestStep )context.getProperty( CrossSiteScriptingScan.TEST_STEP );
    testStep = SecurityTestRunnerImpl.cloneTestStepForSecurityScan( ( WsdlTestStep )testStep );
    SecurityTestRunner securityTestRunner = ( SecurityTestRunner )context
        .getProperty( CrossSiteScriptingScan.TEST_CASE_RUNNER );

    List<String> urls = submitScript( messageExchange, context );
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestLog loadTestLog = loadTest.getLoadTestLog();

      int errorCount = loadTestLog.getErrorCount( step.getName() );
      if( maxAbsoluteErrors >= 0 && errorCount > maxAbsoluteErrors )
        loadTestRunner.fail( "Maximum number of errors [" + maxAbsoluteErrors + "] exceeded for step ["
            + step.getName() + "]" );

      int index = step.getTestCase().getIndexOfTestStep( step );

      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();
      long totalSteps = statisticsModel.getStatistic( index, Statistic.COUNT );
      float relativeErrors = ( float )errorCount / ( float )totalSteps;

      if( maxRelativeErrors > 0 && relativeErrors > maxRelativeErrors )
        loadTestRunner.fail( "Maximum relative number of errors [" + maxRelativeErrors + "] exceeded for step ["
            + step.getName() + "]" );
    }

    return null;
  }
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

      if( !node.getAllowsChildren() )
      {
        return;
      }

      TestStep testStep = node.getTestStep();

      String[] availableScanNames = SoapUI.getSoapUICore().getSecurityScanRegistry()
          .getAvailableSecurityScansNames( testStep );
      availableScanNames = securityTest.getAvailableSecurityScanNames( testStep, availableScanNames );
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

      if( securityTestTree.getSelectionCount() == 1 )
      {
        SecurityScanNode node = ( SecurityScanNode )securityTestTree.getLastSelectedPathComponent();
        SecurityScan securityScan = node.getSecurityScan();

        TestStep testStep = ( ( TestStepNode )node.getParent() ).getTestStep();
        if( UISupport.confirm( "Remove security scan [" + securityScan.getName() + "]", "Remove SecurityScan" ) )
        {
          securityTest.removeSecurityScan( testStep, ( SecurityScan )securityScan );
        }
      }
      else
      {
        SecurityScanNode node = ( SecurityScanNode )securityTestTree.getLastSelectedPathComponent();

        TestStep testStep = ( ( TestStepNode )node.getParent() ).getTestStep();
        if( UISupport.confirm( "Remove all selected security scans", "Remove SecurityScan" ) )
        {
          for( TreePath path : securityTestTree.getSelectionPaths() )
            if( path.getLastPathComponent() instanceof SecurityScanNode )
            {
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      int index = step.getTestCase().getIndexOfTestStep( step );

      long tps = statisticsModel.getStatistic( index, Statistic.TPS );
      if( statisticsModel.getStatistic( index, Statistic.COUNT ) >= minRequests && tps < minValue )
      {
        return returnErrorOrFail( "TPS [" + tps + "] is less than limit [" + minValue + "]", maxErrors,
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
    LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

    TestStep step = result.getTestStep();

    if( targetStepMatches( step ) )
    {
      int index = step.getTestCase().getIndexOfTestStep( step );

      if( statisticsModel.getStatistic( index, Statistic.COUNT ) >= minRequests
          && result.getStatus() == TestStepStatus.FAILED )
      {
        return returnErrorOrFail( "TestStep [" + step.getName() + "] result status is "
            + result.getStatus().toString() + "; " + Arrays.toString( result.getMessages() ), maxErrors,
            loadTestRunner, context );
      }
      else
        return null;
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
    LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      int index = step.getTestCase().getIndexOfTestStep( step );

      long average = statisticsModel.getStatistic( index, Statistic.AVERAGE );
      long count = statisticsModel.getStatistic( index, Statistic.AVERAGE );
      if( count > minRequests && ( count % sampleInterval == 0 ) && average >= maxAverage )
      {
View Full Code Here

Examples of com.eviware.soapui.model.testsuite.TestStep

  }

  public String assertResult( LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
      TestCaseRunner testRunner, TestCaseRunContext runContext )
  {
    TestStep step = result.getTestStep();
    if( targetStepMatches( step ) )
    {
      WsdlLoadTest loadTest = ( WsdlLoadTest )loadTestRunner.getLoadTest();
      LoadTestStatistics statisticsModel = loadTest.getStatisticsModel();

      int index = step.getTestCase().getIndexOfTestStep( step );

      long maximum = result.getTimeTaken();
      if( statisticsModel.getStatistic( index, Statistic.COUNT ) > minRequests && maximum >= maxValue )
      {
        return returnErrorOrFail( "Time [" + maximum + "] exceeds limit [" + maxValue + "]", maxErrors,
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.