Forum Discussion
logiclife
15 years agoOccasional Contributor
this is the request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://xsd.lis_ws.xxx.com/">
<soapenv:Header/>
<soapenv:Body>
<xsd:DeleteBuildingRequest>
<xsd:UserAuthentication>
<xsd:Username>test@test.com</xsd:Username>
<xsd:Password>mfMp=</xsd:Password>
</xsd:UserAuthentication>
<xsd:BuildingDeleteInfo>
<xsd:BuildingName>test</xsd:BuildingName>
</xsd:BuildingDeleteInfo>
</xsd:DeleteBuildingRequest>
</soapenv:Body>
</soapenv:Envelope>
this is hte response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:DeleteBuildingResponse xmlns:ns1="http://xsd.lis_ws.xxx.com/">
<ns1:BuildingInfo>
<ns1:BuildingName>test </ns1:BuildingName>
</ns1:BuildingInfo>
<ns1:ErrorCode>
<ns1:Code>NONE</ns1:Code>
<ns1:Message>pass. No issues.</ns1:Message>
</ns1:ErrorCode>
</ns1:DeleteBuildingResponse>
</soapenv:Body>
</soapenv:Envelope>
how do i do do assert contains to assert for both "NONe and pass. no issues" in just one "contains assert" to check for the responses that I get , see the attachment
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://xsd.lis_ws.xxx.com/">
<soapenv:Header/>
<soapenv:Body>
<xsd:DeleteBuildingRequest>
<xsd:UserAuthentication>
<xsd:Username>test@test.com</xsd:Username>
<xsd:Password>mfMp=</xsd:Password>
</xsd:UserAuthentication>
<xsd:BuildingDeleteInfo>
<xsd:BuildingName>test</xsd:BuildingName>
</xsd:BuildingDeleteInfo>
</xsd:DeleteBuildingRequest>
</soapenv:Body>
</soapenv:Envelope>
this is hte response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:DeleteBuildingResponse xmlns:ns1="http://xsd.lis_ws.xxx.com/">
<ns1:BuildingInfo>
<ns1:BuildingName>test </ns1:BuildingName>
</ns1:BuildingInfo>
<ns1:ErrorCode>
<ns1:Code>NONE</ns1:Code>
<ns1:Message>pass. No issues.</ns1:Message>
</ns1:ErrorCode>
</ns1:DeleteBuildingResponse>
</soapenv:Body>
</soapenv:Envelope>
how do i do do assert contains to assert for both "NONe and pass. no issues" in just one "contains assert" to check for the responses that I get , see the attachment