Home > Net >  How to Push my Postman Automation code to my Git-lab?
How to Push my Postman Automation code to my Git-lab?

Time:11-26

Suppose there is a collection that consists of 10 requests and I have completed coding for 3 out of them. now, The Que is how can I Push those only 3 requests to Git Repository? We know whatever coding we in postman is cloud. So, is there any way to do this as I don't have any local files for 10 Requests?

CodePudding user response:

You need to export your postman data, which will generate json data for your collections and tests. You can then use the newman runner to execute those json files in GitLab's CI, or simply have your team members check them out and run them by importing them into their postman environment.

Note: Since the collections export in json, any secrets that you're storing in your postman app locally will export in plaintext. Don't forget to use variables instead of hard-coding your secrets.

CodePudding user response:

You can also use postman fork so that you don't need to export each time you change your code

https://blog.postman.com/forking-merging-a-conflict-resolution-solution/

  • Related