# How to insert data related to test scripts on postman into mongo db

**URL:** <https://community.postman.com/t/how-to-insert-data-related-to-test-scripts-on-postman-into-mongo-db/14570>\
**Category:** Help Hub\
**Created:** [July 29, 2020, 5:02am UTC](https://community.postman.com/t/how-to-insert-data-related-to-test-scripts-on-postman-into-mongo-db/14570 "2020-07-29T05:02:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupal.biyani](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rupal.biyani](https://community.postman.com/u/rupal.biyani)\
**Post date:** [July 29, 2020, 5:02am UTC](https://community.postman.com/t/how-to-insert-data-related-to-test-scripts-on-postman-into-mongo-db/14570/1 "2020-07-29T05:02:58Z")

</div>

I am running an api in two environments staging and prod and then comparing the responses.I want to run this test whenever some build happens through Jenkins.  
After the test scripts have run i want to store the responses, git commit id, committer id in a collection in mongo db.  
How can i do it from postman test scripts?

---

<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:** [April 29, 2025, 9:27am UTC](https://community.postman.com/t/how-to-insert-data-related-to-test-scripts-on-postman-into-mongo-db/14570/2 "2025-04-29T09:27:55Z")

</div>

Closed on April 29, 2025, 9:27am UTC


