# How to validate CSV values in the Test Script

**URL:** <https://community.postman.com/t/how-to-validate-csv-values-in-the-test-script/22712>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [April 15, 2021, 3:28pm UTC](https://community.postman.com/t/how-to-validate-csv-values-in-the-test-script/22712 "2021-04-15T15:28:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirellae2e](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mirellae2e](https://community.postman.com/u/mirellae2e)\
**Post date:** [April 15, 2021, 3:28pm UTC](https://community.postman.com/t/how-to-validate-csv-values-in-the-test-script/22712/1 "2021-04-15T15:28:35Z")

</div>

I need to validate values ​​passed in the columns. What I am doing is a POST request, sending the CSV, I need to validate that the values ​​contained in the columns are in accordance with the expected, for example from 1 to 10. I can do this when it is a raw, but form-data to read the CSV I can’t. Please help me!

![image](https://us1.discourse-cdn.com/getpostman/original/2X/a/ad147d98f8af636d278e71c0cc05da3484afe6cf.png)

---

<div class="post-metadata">

**Author:** ![vdespa](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vdespa/32/2770_2.png) [@vdespa](https://community.postman.com/u/vdespa)\
**Post date:** [April 16, 2021, 4:04pm UTC](https://community.postman.com/t/how-to-validate-csv-values-in-the-test-script/22712/2 "2021-04-16T16:04:19Z")

</div>

If you are uploading the file with a POST request, you don’t have access to the file content. So you can’t write tests.

The only way to “read” data from a CSV file is to use it for different data sets (aka data-driven testing).

---

<div class="post-metadata">

**Author:** ![mirellae2e](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mirellae2e](https://community.postman.com/u/mirellae2e)\
**Post date:** [April 16, 2021, 4:48pm UTC](https://community.postman.com/t/how-to-validate-csv-values-in-the-test-script/22712/3 "2021-04-16T16:48:12Z")

</div>

> [@vdespa](#):
>
> teste orientado a dados)

Thank you very much, I thought I could do that. But I really appreciate the clarification, even I was able to read the CSV data as a GET request, validated the header and it was enough for me, but in a GET can I do this validation mentioned above about the values?
