mercredi 2 mars 2016

SOAP UI Assertion Help : To validate Total attribute and Total Value

I searched in Google and Stackoverflow and I didn't find any helpful information and decide to post question.

I am getting response from API in JSON.

{
"CouponCode": [{
    "id": 56,
    "name": "BlackFriday"
}, {
    "id": 58,
    "name": "ThanksGiving"
}, {
    "id": 62,
    "name": "New Year"
}]}

I need to add assertion that will count that there are total 3 id and 3 name.

All IDs and Names are not empty. We don't want to send empty attribute value.

I am using SOAP UI open source. Please provide exact code or exact reference.

Aucun commentaire:

Enregistrer un commentaire