Replies: 2 comments
-
I have a similar question. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same question. Here is my test: test("all categories are not empty", async function () {
const axios = require("axios");
const responseBody = res.getBody();
const jsonFeedURL = responseBody.jsonFeedURL;
for (const item in responseBody.cards) {
const card = responseBody.cards[item];
console.log(card.name);
const url = jsonFeedURL + card.name;
console.log(url);
const response = await axios.get(url);
console.log(response.data[0].id);
expect(response.data[0].id).to.be.not.empty;
}
}); As far as I understand, there is some issue with calling expect in the loop. I believe there should be a solution for this. Any ideas? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All:
Really enjoying Bruno so far.
I have a group of sample payloads that are used to test various scenarios of a POST.
Is there a way to loop through this list to test each post or do I need to create a new request for each payload?
Thanks!
K
Beta Was this translation helpful? Give feedback.
All reactions