Tricentis / qTest.Integration.Pulse

MIT License
12 stars 12 forks source link

Postman parser includes "undefined" in test steps #10

Closed bilbe-tri closed 5 months ago

bilbe-tri commented 1 year ago

When parsing the postman-samples results (from standard documentation) the two POST examples have "undefined" appended to the end of the step description.

Expected Behavior

"undefined" values should not be appended to step description

Current Behavior

Test steps for non-assertions have 'undefined' appended when testCase.body is undefined.

Possible Solution

Only append value of testCase.body after testing for undefined value.

Steps to Reproduce (for bugs)

  1. Copy postman-samples from documentation
  2. Set up Launch agent to deliver Postman results to Pulse trigger linked to PostmanJSON action.
  3. Use 'Run now' agent option to run newman command to generate JSON results for tests copies to c:\postman-samples
  4. Here's what the result looks like in qTest:
  5. image

Context

Discovered while verifying Launch Postman JSON parser delivers results comparable to Pulse Postman JSON parser.

Your Environment