sonata
13 years agoNew Contributor
checking null values in the response
Is there a way you can check for null values in the response using assertions?
Ex
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GenerateTokenResponse xmlns:ns2="http://ws.cctransaction/">
<return/>
</ns2:GenerateTokenResponse>
</S:Body>
</S:Envelope>
the field return contains null. how do i test this?
Ex
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GenerateTokenResponse xmlns:ns2="http://ws.cctransaction/">
<return/>
</ns2:GenerateTokenResponse>
</S:Body>
</S:Envelope>
the field return contains null. how do i test this?