I have uploaded my collections in the customized GitLab with the help of the POSTMAN Teams integration plan.
I want to write a code in GitLab (.yml file) which will help to execute my collections.
Can you help me with writing the code in GITLAB for executing my collections?
Please find the screenshot for reference
newman : The term ‘newman’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Windows\TEMP\build_script216006556\script.ps1:217 char:1
This is the below code, I’m using the gitlab-ci.yml file
stages:
- test
newman_tests:
stage: test
tags:
- ci
- ssh
image:
name: postman/newman
entrypoint: [“”]
script:
- newman --version
- newman run ./Postman_Collections/APIAutomation.json
The pipeline definition provided by @danny-dainton expects you to use a Docker executor, since you have specified a Docker image.
If you don’t wish to use Docker and wish to continue with your shell executor, you need to install all dependencies on your system that runs the GitLab Runner.
I highly recommend using Docker. If you are new to GitLab, use the shared runners from GitLab.com