Таким образом, сценарий таков: мне нужно вызвать конечную точку, которая возвратит приведенный ниже ответ, и из ответа я хочу извлечь все значения поля createdAt
(которое можно найти в Debug Sampler) и принять последнее значение из поля createdAt
и передайте его в следующем запросе.
Я много гуглил, но не смог найти ни одного трюка, подходящего для этой ситуации. Может ли кто-нибудь, пожалуйста, вести меня, поскольку я новичок в JMeter
?
Response:
{"data":[{"id":5741,"createdAt":1584434217000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":353,"comment":"Jhgjhj","deadlineAt":1585039017000,"campaignType":"FEE","recurring":"WEEKLY","amount":3.0000,"currency":"EUR","fulfilled":false},{"id":5710,"createdAt":1584375135000,"updatedAt":null,"contentType":"VOTE","author":{"id":304,"teamName":"Team Content","teamShirtNumber":null,"role":"PLAYER","firstName":"Stefanie","lastName":"Player08","profilePictureReference":"5b5bd132-c285-49e2-98b2-857259391c86"},"labels":[{"id":256,"label":"Yes \uD83D\uDC7B"},{"id":257,"label":"No"}],"text":"Vote content card not visible in the stream 02","backgroundImage":"983cc194-497e-4e6e-9ab3-ca2147469252","result":{"answers":[],"myAnswer":null},"votingEndAt":1587404222000},{"id":5709,"createdAt":1584373151000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":349,"comment":"test06","deadlineAt":1584977951000,"campaignType":"DONATION","recurring":null,"amount":2.0000,"currency":"EUR","fulfilled":false},{"id":5704,"createdAt":1584372961000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":348,"comment":"test05","deadlineAt":1584977761000,"campaignType":"SPECIAL_PAYMENT_AND_SUBVENTION","recurring":null,"amount":2.0000,"currency":"EUR","fulfilled":false},{"id":5675,"createdAt":1584365852000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":338,"comment":"test","deadlineAt":1584970652000,"campaignType":"DONATION","recurring":null,"amount":3.0000,"currency":"EUR","fulfilled":true},{"id":5668,"createdAt":1584361174000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":333,"comment":"Mnemotechnik","deadlineAt":1584965974000,"campaignType":"FEE","recurring":"WEEKLY","amount":1.0000,"currency":"EUR","fulfilled":false},{"id":5636,"createdAt":1584355611000,"updatedAt":null,"contentType":"CHECKOUT","author":null,"actionType":"CAMPAIGN","actionId":327,"comment":"string","deadlineAt":1584355611000,"campaignType":"DONATION","recurring":"WEEKLY","amount":10.5500,"currency":"EUR","fulfilled":false},{"id":5367,"createdAt":1584290738000,"updatedAt":1584290785000,"contentType":"MATCH","author":{"id":32,"teamName":"Team Content","teamShirtNumber":null,"role":"TEAM_LEAD","firstName":"Team Lead Jeremiah","lastName":"Dominguez Gorrin","profilePictureReference":"aca511ec-c552-4bce-90ce-d993684c5854"}