Examples of Assertable


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

    StringBuffer buf = new StringBuffer();

    for( int c = 0; c < assertions.size(); c++ )
    {
      TestAssertion assertion = assertions.get( c );
      Assertable assertable = assertion.getAssertable();
      if( assertable instanceof WsdlTestStep )
        failedTests.remove( ( ( WsdlTestStep )assertable ).getTestCase() );

      buf.append( assertion.getName() + " in [" + assertable.getModelItem().getName() + "] failed;\n" );
      buf.append( Arrays.toString( assertion.getErrors() ) + "\n" );

      WsdlTestStepResult result = assertionResults.get( assertion );
      StringWriter stringWriter = new StringWriter();
      PrintWriter writer = new PrintWriter( stringWriter );
View Full Code Here

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

    super.afterStep( testRunner, runContext, result );
    TestStep currentStep = runContext.getCurrentStep();

    if( currentStep instanceof Assertable )
    {
      Assertable requestStep = ( Assertable )currentStep;
      for( int c = 0; c < requestStep.getAssertionCount(); c++ )
      {
        TestAssertion assertion = requestStep.getAssertionAt( c );
        log.info( "Assertion [" + assertion.getName() + "] has status " + assertion.getStatus() );
        if( assertion.getStatus() == AssertionStatus.FAILED )
        {
          for( AssertionError error : assertion.getErrors() )
            log.error( "ASSERTION FAILED -> " + error.getMessage() );
View Full Code Here

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

    protected void throwFailureException() throws Exception {
        StringBuffer buf = new StringBuffer();

        for (int c = 0; c < assertions.size(); c++) {
            TestAssertion assertion = assertions.get(c);
            Assertable assertable = assertion.getAssertable();
            if (assertable instanceof WsdlTestStep) {
                failedTests.remove(((WsdlTestStep) assertable).getTestCase());
            }

            buf.append(assertion.getName() + " in [" + assertable.getModelItem().getName() + "] failed;\n");
            buf.append(Arrays.toString(assertion.getErrors()) + "\n");

            WsdlTestStepResult result = assertionResults.get(assertion);
            StringWriter stringWriter = new StringWriter();
            PrintWriter writer = new PrintWriter(stringWriter);
View Full Code Here

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

    public void afterStep(TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult result) {
        super.afterStep(testRunner, runContext, result);
        TestStep currentStep = runContext.getCurrentStep();

        if (currentStep instanceof Assertable) {
            Assertable requestStep = (Assertable) currentStep;
            for (int c = 0; c < requestStep.getAssertionCount(); c++) {
                TestAssertion assertion = requestStep.getAssertionAt(c);
                log.info("Assertion [" + assertion.getName() + "] has status " + assertion.getStatus());
                if (assertion.getStatus() == AssertionStatus.FAILED) {
                    for (AssertionError error : assertion.getErrors()) {
                        log.error("ASSERTION FAILED -> " + error.getMessage());
                    }
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.