yognsal
7 years agoOccasional Contributor
Contains assertion
Hi
I have below json response format.
My all the data is constant except the date which chnages every day. due to this i am not able to validate the response using contains assertion. Is there any way through script i can chnage date in my contains assertion as per my requirement.?
Date could be yestarday or 7 days back.
[
{
"locatonID": "a036000000lRWFi",
"locationLevelInfo": [
{
"ssidName": "McDonalds Free WiFi",
"ssidLevelInfoList": [
{
"date": "31-07-2018 00:00:00",
"ssidDayLevelInfoList": [
{
"loyalUserCount": 47,
"newUserCount": 6,
"tonnage_in": 9745977.19,
"tonnage_out": 10456271.34,
"throughput_kbps": 505.18,
"totalUserCount": 53
}
]
}