Forum Discussion

testhrishi's avatar
testhrishi
Frequent Contributor
8 years ago

Question regarding using of wildcard in JDBC assertion

If I have assertion for content set for following under JDBC assertions -

[{"f":"PHONE_1","s":"4","t":1479416050468}]

Even if I get back the response below my assertion passes -

[{"f":"PHONE_1","s":"1","t":1479416050468},{"f":"PHONE_1","s":"2","t":1479416050468},{"f":"PHONE_1","s":"4","t":1479416050468}]

 

So even if I am getting back 3 extra sets, assertion passes as it contains 1 set from the 3 in the response.

 

is there a work around I can use for this step to make it fail when extra contents returned in the response?

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

     

     

    Hi testhrishi,

     

    Could you please post your response here? Also, please let us know what do you specify in the assertion.