Ask a Question

Question regarding using of wildcard in JDBC assertion

testhrishi
Frequent Contributor

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 1
TanyaYatskovska
Community Manager

Re: Question regarding using of wildcard in JDBC assertion

 

 

Hi testhrishi,

 

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

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: