Examples of WsdlSubmitContext


Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

    targetProperty.setValue( "<bil><name test=\"test\">bmw</name></bil>" );

    transfer.setSourcePath( "//name/@value" );
    transfer.setTargetPath( "//name/text()" );

    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );

    assertEquals( "<bil><name test=\"test\">fiat</name></bil>", targetProperty.getValue() );

    transfer.setSourcePath( "//name/text()" );
    transfer.setTargetPath( "//name/@test" );

    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );

    assertEquals( "<bil><name test=\"alfa\">fiat</name></bil>", targetProperty.getValue() );

    transfer.setSourcePath( "//name/@value2" );
    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );
    assertEquals( "<bil><name test=\"volvo\">fiat</name></bil>", targetProperty.getValue() );
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

    transfer.setSourcePath( "//bil" );
    transfer.setTargetPath( "//bil" );

    transfer.setTransferTextContent( false );
    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );
    assertEquals( sourceProperty.getValue(), targetProperty.getValue() );

    targetProperty.setValue( "<bil><name></name></bil>" );

    transfer.setSourcePath( "//bil/name/text()" );
    transfer.setTargetPath( "//bil/name" );

    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );
    assertEquals( sourceProperty.getValue(), targetProperty.getValue() );
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

    transfer.setTransferTextContent( false );
    transfer.setSourcePath( "declare namespace ns='ns1';//ns:bil/ns:name" );
    transfer.setTargetPath( "//bil/name" );

    transfer.transferXPathToXml( sourceProperty, targetProperty, new WsdlSubmitContext( null ) );
    assertEquals( "<bil xmlns:ns1=\"ns1\"><ns1:name>audi</ns1:name></bil>", targetProperty.getValue() );
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

    String requestXml = operation.createRequest( true );
    assertNotNull( requestXml );

    request.setRequestContent( requestXml );

    Submit submit = request.submit( new WsdlSubmitContext( null ), false );

    assertTrue( submit.getResponse().getContentAsString().indexOf( "Error 404 NOT_FOUND" ) > 0 );
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

      for( SecurityScanRequestResult result : securityScanResult.getSecurityRequestResultList() )
      {
        if( result.getMessageExchange() == null )
          return;

        assertion.assertResponse( result.getMessageExchange(), new WsdlSubmitContext( testStep ) );
      }
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

      for( SecurityScanRequestResult result : securityScanResult.getSecurityRequestResultList() )
      {
        if( result.getMessageExchange() == null )
          return;

        assertion.assertRequest( result.getMessageExchange(), new WsdlSubmitContext( testStep ) );
      }
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

      assertionsSupport.fireAssertionAdded( assertion );

      if( getMockResponse().getMockResult() != null )
      {
        assertion.assertRequest( new WsdlMockResultMessageExchange( getMockResponse().getMockResult(),
            getMockResponse() ), new WsdlSubmitContext( this ) );
        notifier.notifyChange();
      }

      return assertion;
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

    @Test
    public void testFullContentMatch() throws Exception {
        assertion.setPath("/");
        assertion.setExpectedContent(testResponse);

        assertNotNull(assertion.assertContent(testResponse, new WsdlSubmitContext(null), ""));
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

        assertion.setPath("declare namespace urn='urn:schema:v1:companyservice:applications:bis.bonnier.se';"
                + "//urn:searchResponse");

        assertion.setExpectedContent(testBody);

        assertNotNull(assertion.assertContent(testResponse, new WsdlSubmitContext(null), ""));
    }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

                + "declare namespace urn='urn:schema:v1:companyservice:applications:bis.bonnier.se';"
                + "declare namespace urn1='urn:v1:companysearch:common:bis.bonnier.se';"
                + "/env:Envelope/env:Body/urn:searchResponse/urn1:searchResult/@hitCount");
        assertion.setExpectedContent("131");

        assertNotNull(assertion.assertContent(testResponse, new WsdlSubmitContext(null), ""));
    }
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.