# Collection Runner Assertion Errors

**URL:** <https://community.postman.com/t/collection-runner-assertion-errors/41046>\
**Category:** Help Hub\
**Tags:** tests, variables, collections, json\
**Created:** [November 12, 2022, 6:51am UTC](https://community.postman.com/t/collection-runner-assertion-errors/41046 "2022-11-12T06:51:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![spacecraft-geologis8](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@spacecraft-geologis8](https://community.postman.com/u/spacecraft-geologis8)\
**Post date:** [November 12, 2022, 6:51am UTC](https://community.postman.com/t/collection-runner-assertion-errors/41046/1 "2022-11-12T06:51:56Z")

</div>

Hi Team  
I just started learning Postman and practising the same with [https://dummy.restapiexample.com/](https://dummy.restapiexample.com/) site.  
I want to create (POST) multiple records at a time.  
for that I have used .csv file  
 ![API](https://us1.discourse-cdn.com/getpostman/original/3X/7/1/71ba2c763bde3abf01ced236e694677078312ed6.png)

I have given below data as input in Body  
{  
“name”:“{{name}}”,

```
    "salary":"{{salary}}",

    "age":"{{age}}"
}

```

and added few validation points in tests tab  
tests[“checking the response code”] = responseCode.code == 200;

tests[“checking the status without position”] = responseBody.has(“success”);

I given 4 iterations as per the above .csv file  
when I run only first iteration request gets failed( AssertionError: expected false to be truthy) and getting response code 429  
remaining runs successfully

I am really worried about this on first day only I am facing too many issues  
Please help me with this

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [November 16, 2022, 11:48am UTC](https://community.postman.com/t/collection-runner-assertion-errors/41046/2 "2022-11-16T11:48:09Z")

</div>

When using the runner with a CSV file, you don’t have to set the iterations, it will run once for each line in the CSV file.

You do need to set iterations if you are using a JSON file.

That is also using the old way of writing a test (although I don’t think that is what is causing your issue).

```auto
pm.test("Status code is 200", () => {
  pm.response.to.have.status(200);
});

```

If you have just started learning Postman, I recommend using the Learning Centre first.

[Postman Galaxy Training | Postman API Network](https://www.postman.com/postman/workspace/postman-galaxy-training/overview)

Run through the “APIs 101 Training”, then the “Testing and Automation Training” course.

---

<div class="post-metadata">

**Author:** ![spacecraft-geologis8](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@spacecraft-geologis8](https://community.postman.com/u/spacecraft-geologis8)\
**Post date:** [November 17, 2022, 4:46pm UTC](https://community.postman.com/t/collection-runner-assertion-errors/41046/3 "2022-11-17T16:46:41Z")

</div>

Thanks Mdjones for your help

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 3, 2023, 1:55pm UTC](https://community.postman.com/t/collection-runner-assertion-errors/41046/4 "2023-10-03T13:55:27Z")

</div>

Closed on October 3, 2023, 1:55pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
