# Add description for each iteration in collection runner

**URL:** <https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [March 15, 2024, 9:27am UTC](https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867 "2024-03-15T09:27:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![satishguda](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@satishguda](https://community.postman.com/u/satishguda)\
**Post date:** [March 15, 2024, 9:27am UTC](https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867/1 "2024-03-15T09:27:57Z")

</div>

I’m running the collection runner on a post method with same endpoint and using different data in the sheet.

1. Runner results shows up Iteration1, Iteration2… etc  
It would be easy to understand if test scenario description is provided instead. Any thoughts how to create it?
2. Is there any way to generate fancy report in collection reporter? If so, whats he process? I’m planning to implement the scripts in CI/CD with a fancy report emailed to all stake holders.

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 15, 2024, 11:02am UTC](https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867/2 "2024-03-15T11:02:55Z")

</div>

Hi @satishguda. Welcome to the Postman Community!

1. I don’t understand 1 correctly. Will this be different from descriptions already included at the collection and request level?
2. If you’re running your collection on the CI using newman, you can use a newman reporter to present the run results as json, html, etc. Read about our built in newman reporters [here](https://learning.postman.com/docs/collections/using-newman-cli/newman-built-in-reporters/) and external/custome reporters [here](https://learning.postman.com/docs/collections/using-newman-cli/newman-custom-reporters/)

---

<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:** [March 15, 2024, 12:30pm UTC](https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867/3 "2024-03-15T12:30:19Z")

</div>

If you are using a data file with the collection runner, you can’t change the name of the iteration, but you can customize the name of the tests to help you identify which particular request has failed (or passed).

This is done using backticks and enclosing the variable in ${} like the following example using expectedResult as a variable.

```auto
let expectedResult = data.expectedResult // assuming expectedResult is a header in your CSV data file
pm.test(`actual result = ${expectedResult}`, () => {
    pm.expect(x).to.eql(y); 
})

```

You should be able to use information from your data sheet to set a variable to use in the customization.

This is using a concept called Template Literals and in particular string interpolation.

[Template literals (Template strings) - JavaScript | MDN (mozilla.org)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)

---

<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:** [April 14, 2024, 12:30pm UTC](https://community.postman.com/t/add-description-for-each-iteration-in-collection-runner/58867/4 "2024-04-14T12:30:46Z")

</div>

Closed on April 14, 2024, 12:30pm UTC

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