Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"NaN" in my report using Newman #17

Closed
ASaiAnudeep opened this issue Oct 8, 2022 · 0 comments · Fixed by #18
Closed

"NaN" in my report using Newman #17

ASaiAnudeep opened this issue Oct 8, 2022 · 0 comments · Fixed by #18

Comments

@ASaiAnudeep
Copy link
Member

Discussed in test-results-reporter/testbeats#89

Originally posted by marianagroppa September 21, 2022
I'm using Newman for my tests.
After running it gives me an XML report.

newman run MyCollection.json --insecure -r junit -n 1

Report in XML:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="MyCollection" tests="1" time="32.937">
  <testsuite name="1 - Authenticate " id="u68c4966-0877-4766-1e5b-uu96efb7f84" timestamp="2022-09-20T16:49:56.147Z" tests="1" failures="0" errors="0" time="0.807">
    <testcase name="Teste" time="0.807" classname="TestePostamn"/>
  </testsuite>
 </testsuites> 

When I send it to Teams, the report doesn't display correctly.
Displays as "NaN"
teams

My config.json:

{
  "reports": [
    {
      "targets": [
        {
          "name": "teams",
          "condition": "passOrFail",
          "inputs": {
            "url": "www.urlTeams.com",
            "publish": "test-summary-slim",
            "title": "Teste Result Postman"
          },
          "extensions": [
            { "name": "quick-chart-test-summary" },
            {
              "name": "hyperlinks",
              "inputs": {
                "links": [
                  {
                    "text": "Build",
                    "url": "www.urlBuild.com"
                  },
                  {
                    "text": "Report",
                    "url": "www.urlReport.com"
                  }
                ]
              }
            },
            {
              "name": "mentions",
              "inputs": {
                "users": [
                  {
                    "name": "Mariana Groppa",
                    "teams_upn": "[email protected]"
                  }
                ]
              }
            }
          ]
        }
      ],
      "results": [
        {
          "type": "junit",
          "files": ["newman-run-report-full-2022-09-20-18-02-10-539-0.xml"]
        }
      ]
    }
  ]
}

What could I be doing wrong?
Using other testing frameworks, it works well! (Playrwright, Pactum)

@ASaiAnudeep ASaiAnudeep transferred this issue from test-results-reporter/testbeats Oct 8, 2022
@ASaiAnudeep ASaiAnudeep linked a pull request Oct 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant