Package com.eviware.soapui.model.testsuite

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


    public void mouseClicked( MouseEvent e )
    {
      int index = testLogList.getSelectedIndex();
      if( index != -1 && ( index == selectedIndex || e.getClickCount() > 1 ) )
      {
        TestStepResult result = logListModel.getTestStepResultAt( index );
        if( result != null && result.getActions() != null )
          result.getActions().performDefaultAction( new ActionEvent( this, 0, null ) );
      }
      selectedIndex = index;
    }
View Full Code Here


      if( testLogList.getSelectedIndex() != row )
      {
        testLogList.setSelectedIndex( row );
      }

      TestStepResult result = logListModel.getTestStepResultAt( row );
      if( result == null )
        return;

      ActionList actions = result.getActions();

      if( actions == null || actions.getActionCount() == 0 )
        return;

      JPopupMenu popup = ActionSupport.buildPopup( actions );
View Full Code Here

        TestCaseLogItem logItem = ( TestCaseLogItem )value;
        String msg = logItem.getMsg();
        setText( msg == null ? "" : msg );
      }

      TestStepResult result = logListModel.getTestStepResultAt( index );
      if( result != null && !getText().startsWith( " ->" ) )
      {
        hyperlinkLabel.setText( getText() );
        hyperlinkLabel.setBackground( getBackground() );
        hyperlinkLabel.setEnabled( list.isEnabled() );

        if( result.getStatus() == TestStepStatus.OK )
        {
          hyperlinkLabel.setIcon( UISupport.createImageIcon( "/valid_assertion.gif" ) );
        }
        else if( result.getStatus() == TestStepStatus.FAILED )
        {
          hyperlinkLabel.setIcon( UISupport.createImageIcon( "/failed_assertion.gif" ) );
        }
        else
        {
View Full Code Here

        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 );
          if( stepResult == null )
          {
            log.warn( "Result [" + c + "] is null in TestCase [" + testRunner.getTestCase().getName() + "]" );
            continue;
          }

          if( stepResult.getTestStep().equals( testStep ) )
            results.add( new LoadTestStepSample( stepResult ) );
        }

        s.add( results.toArray( new LoadTestStepSample[results.size()] ) );
      }
View Full Code Here

      long[] sizes = new long[samples.length];
      long[] sampleCounts = new long[samples.length];

      for( int c = 0; c < results.size(); c++ )
      {
        TestStepResult testStepResult = results.get( c );
        if( testStepResult == null )
        {
          log.warn( "Result [" + c + "] is null in TestCase [" + testCase.getName() + "]" );
          continue;
        }

        int index = testCase.getIndexOfTestStep( testStepResult.getTestStep() );
        if( index >= 0 )
        {
        sampleCounts[index]++ ;

        samples[index] += testStepResult.getTimeTaken();
        sizes[index] += testStepResult.getSize();
      }
      }

      pushSamples( samples, sizes, sampleCounts, testRunner.getStartTime(), testRunner.getTimeTaken(), true );
    }
View Full Code Here

      long sum = 0;
      List<TestStepResult> results = testRunner.getResults();
      for( int c = 0; c < results.size(); c++ )
      {
        TestStepResult result = results.get( c );
        if( result == null )
        {
          log.warn( "Result [" + c + "] is null in TestCase [" + testRunner.getTestCase().getName() + "]" );
          continue;
        }

        sum += result.getTimeTaken();
      }

      if( statisticsModel.getStatistic( LoadTestStatistics.TOTAL, Statistic.COUNT ) >= minRequests
          && sum >= maxValue )
      {
View Full Code Here

        WsdlTestRequestStep testStep = (WsdlTestRequestStep) testCase.getTestStepByName("SEK to USD Test");

        MockTestRunner testRunner = new MockTestRunner(testStep.getTestCase());
        MockTestRunContext testRunContext = new MockTestRunContext(testRunner, testStep);

        TestStepResult result = testStep.run(testRunner, testRunContext);

        WsdlTestRequestStepResult wsdlResult = (WsdlTestRequestStepResult) result;
        assertNotNull(wsdlResult);
    }
View Full Code Here

        Mockito.when( mockStep1.getId()).thenReturn( "1234" );

        TestStep mockStep2 = Mockito.mock( TestStep.class );
        Mockito.when( mockStep2.getId()).thenReturn( "2345" );

        TestStepResult mockResult1 = Mockito.mock( TestStepResult.class );
        Mockito.when( mockResult1.getTestStep()).thenReturn( mockStep1 );

        TestStepResult mockResult2 = Mockito.mock( TestStepResult.class );
        Mockito.when( mockResult2.getTestStep()).thenReturn( mockStep2 );

        List<TestStepResult> resultList = new ArrayList<TestStepResult>();
        resultList.add( mockResult1 );
        resultList.add( mockResult2 );
        resultList.add( mockResult2 );
View Full Code Here

                                  TestCaseRunContext runContext) {
            Map<TestStep, TestSample> samplesMap = new HashMap<TestStep, TestSample>();
            List<TestStepResult> results = testRunner.getResults();

            for (int c = 0; c < results.size(); c++) {
                TestStepResult result = results.get(c);
                if (result == null) {
                    log.warn("Result [" + c + "] is null in TestCase [" + testCase.getName() + "]");
                    continue;
                }

                TestStep testStep = result.getTestStep();

                if (!samplesMap.containsKey(testStep)) {
                    samplesMap.put(testStep, new TestSample(testStep));
                }
View Full Code Here

            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);
                    if (stepResult == null) {
                        log.warn("Result [" + c + "] is null in TestCase [" + testRunner.getTestCase().getName() + "]");
                        continue;
                    }

                    if (stepResult.getTestStep().equals(testStep)) {
                        results.add(new LoadTestStepSample(stepResult));
                    }
                }

                s.add(results.toArray(new LoadTestStepSample[results.size()]));
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestStepResult

Copyright © 2018 www.massapicom. 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.