Giter VIP home page Giter VIP logo

newman-reporter-teamcity's People

Contributors

dependabot[bot] avatar gqy117 avatar hujunhaorobert avatar jernejjanez avatar krizalys avatar leafle avatar leolimyob avatar natelowry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

newman-reporter-teamcity's Issues

Encryption problems

Hello. Thanks for teamcity reporter.
Have some encryption problems. Did you have any ideas, how to fix it?
2017-10-02_10-23-11
2017-10-02_10-22-06

Reporter should be 'dominant' or don't write to log anything but teamcity commands

CLI reporter is dominant. It means if there are two dominant reporters they will fight against each other and make output almost useless.

// Mark the CLI reporter as dominant, so that no two dominant reporters are together
PostmanCLIReporter.prototype.dominant = true;

I can't use -r cli,teamcity together - common output is awful. I need teamcity diagnostics (start/stop/success/failure) in 'real time' while everything else I can read from cli output in a pretty form.

newman-reporter-teamcity generate wrong response code in the test report when test case assert failed

I was using newman and newman-reporter-teamcity in Powershell to run the API testing.
The newman command line is :
newman run $DirectAGCollectionURL -e $GetEnvVarAUTest --iteration-data $DataFile -n $Iterations --folder $APIFolderNames[$i] -r cli,teamcity,json --reporter-json-export $OutputFile
Below is the just copy & past of small part of the test report generated
...

└ Create Semaphore
##teamcity[testStarted name='Create Semaphore' captureStandardOutput='true']
POST https://au-test.leap.services/api/v1/semaphore [201 Created, 540B, 1028ms]

│ 'Scenario 'No Semaphore Name' responseCode.code=201'
│ 'Defect API-18 is still outstanding'

√ 1) Check Expected RC = 201
√ 2) Validate response against schema
3. 3) Check SemaphoreId is NOT Created for 'No Semaphore Name' (Negative Scenario)
√ 4) Content-Type is application/json
##teamcity[testFailed name='Create Semaphore' message='3) Check SemaphoreId is NOT Created for |'No Semaphore Name|' (Negative Scenario)' details='3) Check SemaphoreId is NOT Created for |'No Semaphore Name|' (Negative Scenario) - Response code: 1028, reason: Created']
##teamcity[testFinished name='Create Semaphore' duration='1028']

Here the problem is, in the team city report, it gives wrong Response code by referring to the response time value(1028), not the real response code for the API (RC=201) .
The expectation is Response code: 201

My testing environment version:
In a command prompt window, type "npm list -g --depth=0 " to get some of the details related to newman:
+-- [email protected]
+-- [email protected]

Support multi processes running in parallel

First off, thank you for creating such an awesome Newman extension. We've been using it for quite a while.

Senario:

When we run test cases in parallel, sometimes TeamCity will mismatch 'test case 1' to 'test suite 2'
##teamcity[testSuiteStarted name='test suite 1']
##teamcity[testSuiteStarted name='test suite 2']
##teamcity[testStarted name='test case 1' captureStandardOutput='true']
##teamcity[testFinished name='test case 1' duration='100']
##teamcity[testStarted name='test case 2' captureStandardOutput='true']
##teamcity[testFinished name='test case 2' duration='100']
##teamcity[testSuiteFinished name='test suite 2']

TeamCity would treat both 'test case 1' and 'test case 2' as part of 'test suite 2'.

Solution:

Use flowId

I have given it a go. It works.
But I'm not happy with the fact that I required a third party library 'uuid/v4' to get the unique id.

Any thoughts on that?

Cheers,

Skipped tests are marked as Passed

Any tests which are marked as Skipped in Postman collection and when running these test using Newman on TeamCity pass the tests, this creates confusion in the overall result.
Please suggest if there is a workaround to handle this case or kindly provide a fix.

Include directory hierarchy in reported test name

Right now it's not obvious in the Teamcity UI what directory a Postman test is in a certain group or directory. It only reports the test name. The workaround is to include the directory name in the test name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.