WorkingMemory
5152535455565758596061626364
{ // check manually before resource intensive xpath SoapVersion soapVersion = ( ( WsdlMessageExchange )messageExchange ).getOperation().getInterface() .getSoapVersion(); if( SoapUtils.isSoapFault( responseContent, soapVersion ) ) throw new AssertionException( new AssertionError( "Response is a SOAP Fault" ) ); } catch( Exception e ) { throw new AssertionException( new AssertionError( e.getMessage() ) ); } return "Response is not a SOAP Fault"; }
42434445464748495051
{ Exception exception = ( Exception )context.getProperty( JdbcSubmit.JDBC_ERROR ); if( exception != null ) { throw new AssertionException( new AssertionError( exception.getMessage() ) ); } return "JDBC Status OK"; }
525354555657585960616263646566676869
try { AssertionError[] errors = validator.assertRequest( ( WsdlMessageExchange )messageExchange, true ); if( errors.length > 0 ) throw new AssertionException( errors ); } catch( AssertionException e ) { throw e; } catch( Exception e ) { throw new AssertionException( new AssertionError( e.getMessage() ) ); } return "Request Envelope OK"; }
241242243244245246247248249250
catch( Throwable e ) { String msg = "XQuery Match Assertion failed for path [" + path + "] : " + e.getClass().getSimpleName() + ":" + e.getMessage(); throw new AssertionException( new AssertionError( msg ) ); } return type + " matches content for [" + path + "]"; }
243244245246247248249250
} } String cumulativeError = cumulativeErrorMsg.toString(); if( !StringUtils.isNullOrEmpty( cumulativeError ) ) { throw new AssertionException( new AssertionError( cumulativeError ) ); } }
408409410411412413414415
132133134135136137138139140141
urls, parameterExposureCheckConfig, assertionErrorList ); } if( throwExceptionCheckResponse || throwExceptionCheckSeparateHTML ) { throw new AssertionException( assertionErrorList.toArray( new AssertionError[assertionErrorList.size()] ) ); } return "OK"; }
888990919293949596979899100101102
{ String statusCode = statusElements[1].trim(); if( codeList.contains( statusCode ) ) { String message = "Response status code: " + statusCode + " is in invalid list of status codes"; throw new AssertionException( new AssertionError( message ) ); } } else { throw new AssertionException( new AssertionError( "Status code extraction error! " ) ); } return "OK"; }
146147148149150151152153154155
SoapUI.logError( e ); } if( !messages.isEmpty() ) { throw new AssertionException( assertionErrorList.toArray( new AssertionError[assertionErrorList.size()] ) ); } return "OK"; }
{ String statusCode = statusElements[1].trim(); if( !codeList.contains( statusCode ) ) { String message = "Response status code:" + statusCode + " is not in acceptable list of status codes"; throw new AssertionException( new AssertionError( message ) ); } } else { throw new AssertionException( new AssertionError( "Status code extraction error! " ) ); } return "OK"; }