# Htmlextra -search withing the tests

**URL:** <https://community.postman.com/t/htmlextra-search-withing-the-tests/4594>\
**Category:** Help Hub\
**Tags:** reporter\
**Created:** [March 18, 2019, 6:09am UTC](https://community.postman.com/t/htmlextra-search-withing-the-tests/4594 "2019-03-18T06:09:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnandoss08](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@krishnandoss08](https://community.postman.com/u/krishnandoss08)\
**Post date:** [March 18, 2019, 6:09am UTC](https://community.postman.com/t/htmlextra-search-withing-the-tests/4594/1 "2019-03-18T06:09:10Z")

</div>

@danny-dainton thx for closing the issue on github [https://github.com/DannyDainton/newman-reporter-htmlextra/issues/21#issuecomment-473781806](https://github.com/DannyDainton/newman-reporter-htmlextra/issues/21#issuecomment-473781806). Could you please provide some instructions on how to implement the search feature - searching within a folder or withing the suite.  
Tx  
K.thulsi Doss

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 18, 2019, 7:04am UTC](https://community.postman.com/t/htmlextra-search-withing-the-tests/4594/2 "2019-03-18T07:04:50Z")

</div>

I don’t really understand what you mean…

There is a search feature on the tests, within each of the folders. Type in a test name and it will only display that test.

Can you give me a visual example of what you feel is missing? You obviously want something very specific and I honestly have no idea what that is.

If you require an Id on the test name, to search by that, you need to add it to the test name in you collections.

Failing that, please do create your own personal template, modifying the _out of the box_ template is not something I’m looking to do, each time someone has a different usecase to fulfill, this is where _user generated custom templates_ come into play.

---

<div class="post-metadata">

**Author:** ![krishnandoss08](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@krishnandoss08](https://community.postman.com/u/krishnandoss08)\
**Post date:** [March 18, 2019, 11:17am UTC](https://community.postman.com/t/htmlextra-search-withing-the-tests/4594/3 "2019-03-18T11:17:07Z")

</div>

@danny-dainton this is what i got when i searched for a test case … it gave the response ‘no record found’

 ![Untitled](https://us1.discourse-cdn.com/getpostman/original/3X/8/f/8fdf0eaa1c919dcd80112e705b9a7f6e43160395.png)  
If you help to update the template that would be of great help - i mean you could pass on some guidance on how to achieve that.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 18, 2019, 11:51am UTC](https://community.postman.com/t/htmlextra-search-withing-the-tests/4594/4 "2019-03-18T11:51:45Z")

</div>

You’re searching in the context of a single request. The search is then _only_ looking at the `text string` in the `Test Name` and then displaying the results.

From that image, it _just_ looks like you’re entering the folder name, as this is not part of a test name, nothing is returned. All of the search boxes that you can see in the requests are all independent of each other.

I’m not making anymore functional changes to the default template unless it’s a issue with something that I have added, at that point, please do submit an Issue on the repo, following the Issue Template Guidelines.

[https://github.com/DannyDainton/newman-reporter-htmlextra/blob/master/.github/ISSUE\_TEMPLATE/issue-report.md](https://github.com/DannyDainton/newman-reporter-htmlextra/blob/master/.github/ISSUE_TEMPLATE/issue-report.md)

If you require additional features or functionality to meet **your** own usecase, please create a new template, to add these new things and reference the path to the `.hbs` file using the `--reporter-htmlextra-template` flag on the CLI or adding the `template` property to the `htmlextra` object within a script.

For example:

`newman run collectionFile.json -e environmentFile.json -r htmlextra --reporter-htmlextra-template templateFile.hbs`

More usage examples can be found here:

> **[GitHub - DannyDainton/newman-reporter-htmlextra: A HTML reporter for...](https://github.com/DannyDainton/newman-reporter-htmlextra#usage)**
>
> A HTML reporter for Postman's Command Line Runner, Newman. Includes Non Aggregated Runs broken down by Iterations, Skipped Tests, Console Logs and the handlebars helpers module for better cust...

I did write a very basic blog post, which I’ve referenced before, about how to start creating your own templates for the reporter:

> **[Don’t let go of the Handlebars…](https://dannydainton.com/2019/02/10/dont-let-go-of-the-handlebars/)**
>
> Creating a new HTML reporter for Newman has been a wonderful learning experience – I’ve managed to bring together several different skills, some that I had knowledge of already and many…

More information about _some_ of the libraries that I’ve used in the reporter template can be found here:

- [https://handlebarsjs.com/](https://handlebarsjs.com/)
- [GitHub - helpers/handlebars-helpers: 188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.](https://github.com/helpers/handlebars-helpers)
- [https://getbootstrap.com/](https://getbootstrap.com/)
- [HTML Tutorial](https://www.w3schools.com/html/default.asp)
- [CSS Tutorial](https://www.w3schools.com/css/default.asp)
- [JavaScript Tutorial](https://www.w3schools.com/js/default.asp)
- [https://jquery.com/](https://jquery.com/)
- [https://datatables.net/](https://datatables.net/)
- [https://highlightjs.org/](https://highlightjs.org/)

At the end of the day, the `default` template that I created is not going to be the one that will work for 100% of people, using the reporter. You are **not** bound to this or required to use this, the data coming from Newman is exactly the same and is up to the individual to decide how this data is presented in the report.

This is when it becomes **fully** in the hands of the user, you can go and create something that covers your own unique context.

It’s simply impossible for me to be able to do that for every user.
