Fetch and store test results using Newman orb

I am using Newman orb to run one of my Postman collections in CircleCI.
I want to fetch the console results and show that in the Tests and Artifacts tab but its not working.
Below is my config.yml. Please let me know what is the issue here…or what can be done to achieve the test results.
After the “newman/newman-run” command, it skips the other 2 run command and executes “store test result and artifacts” command, which eventually fails because the 2 run commands did not executes and did not create the report.

version: 2.1
orbs:
  newman: postman/newman@0.0.2
jobs:
  build:
    executor: newman/postman-newman-docker
    steps:
      - checkout
      - newman/newman-run:
          collection: ./ISample.json
          delay-request: '1000'
          additional-options: -r cli,junit  
      - run :
          name: Install dependencies
          command: apk add --update ca-certificates openssl && update-ca-certificates
      - run :
          name: Save test results
          command: |
            mkdir  -p ~/test-results/newman
            cp ./newman/newman-run-report-*.xml ~/test-results/newman/
      - store_test_results:
          path: ~/test-results
      - store_artifacts:
          path: ~/test-results/newman

Hi @vn-devops,

I’d like to rule out a syntax related cause.

Could you please:

  1. remove the space between run and the : character in both instances

  2. Add ' (quotes) around your all parameters values (collection, delay-request and additional-options are all defined as type: string in the orb)

version: 2.1
orbs:
  newman: postman/newman@0.0.2
jobs:
  build:
    executor: newman/postman-newman-docker
    steps:
      - checkout
      - newman/newman-run:
          collection: './ISample.json'
          delay-request: '1000'
          additional-options: '-r cli,junit'
      - run:
          name: Install dependencies
          command: apk add --update ca-certificates openssl && update-ca-certificates
      - run:
          name: Save test results
          command: |
            mkdir  -p ~/test-results/newman
            cp ./newman/newman-run-report-*.xml ~/test-results/newman/
      - store_test_results:
          path: ~/test-results
      - store_artifacts:
          path: ~/test-results/newman

Tried this but same issue.
It still skips the run command.

Hi @vn-devops,

I tried to reproduce the issue you’re experiencing but to no avail.

I used the same configuration file as the one you shared above, and a Postman collection containing a sample request. Here’s the content of the collection JSON file I used:

{
	"info": {
		"_postman_id": "923d7c1a-cf0e-4897-ab5d-a64ec151a8d9",
		"name": "orbtest",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "post-echo",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "postman-echo.com/get",
					"host": [
						"postman-echo",
						"com"
					],
					"path": [
						"get"
					]
				}
			},
			"response": []
		}
	]
}

If you’d like us to look further into this issue, I suggest opening a Support ticket, and referencing this CircleCI Discuss post.