【发布时间】:2025-12-05 10:05:01
【问题描述】:
响应 JSON 包含以下字段: "scheduledTimestamp":"2017-07-23T18:02:37.000Z"
我需要做的是断言类似:
Verify $.data.scheduledTimestamp contains "2017-07-23T18:02:37"
(忽略毫秒值)
我尝试响应断言为:
Text Response - checked
Contains - checked
Pattern To Test - "scheduledTimestamp":"${con_res_date}(.+?)"
con_res_date = 2017-07-23T18:02:37
但断言仍然失败。
【问题讨论】:
-
你试过 scheduleTimestamp":"${con_res_date} 吗?