Giter Club home page Giter Club logo

cypress-testrail-reporter's People

Contributors

jkvim avatar ma-jahn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cypress-testrail-reporter's Issues

Posting Failed, TypeError: Cannot read property 'data' of undefined

Hello
I have a problem:
When sending results to the testrail using this reporter, I got this error:

Posting Failed [
  TypeError: Cannot read property 'data' of undefined
      at onError (/home/pigeon/Документы/r5-click-aqa/node_modules/@sum.cumo/cypress-testrail-reporter/dist/reporter/index.js:80:36)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)
]

This error first occured on 20.09(before this date everything worked correcly) and then every pipeline failed with this error message.

What I already checked:

  1. Reproduced it locally, same error occured.
  2. Re-tried with the previously created reports - same error occured even for reports that posted succesfully on 17.09 .
  3. Made a little investigation and found that testrail had an update on 18.09 and I'm suspicious that this update was the reason(probably some API request/response structure chenged or some kind of that)

Can someone check this problem ASAP, please?

P.S.: here is the screenshots with the starting lines and ending lines for the npx cypress-testrail-reporter --reportFilename output.json --name LocalTest command log(local tests):
image
image

TypeError: Cannot read property 'data' of undefined error

Hey @ma-jahn , sorry for bothering, but seem like I've found an issue.
When we add the configuration for cypress-testrail-reporter, but still have no cases linked(no [1] in names of the tests), we receive a TypeError: Cannot read property 'data' of undefined error when trying to run tests.
Maybe adding come kind of an error catching to the reporter would be a nice idea?
Cause for CI/CD this behavior gives you a failed run with no failed tests 😞 .

Undefined report file

Hey!
I am trying to use this reporter, but somehow it always send no results(0 passed, 0 failetd, etc.). And in log I see:
Start Test Rail Export [ 'Automation', undefined, false, [], [] ]

Seems like it can't see the file to read test-run results.

The example of my config is here:
"testrailReporter": { "projectId": "1", "suiteId": "1", "host": "my.hostname", "user": "[email protected]", "password": "mypassword", "name": "Automation" },

Any ideas what I did wrong or how to fix that?

P.S.: I am using this reporter to get json results.

Field :suite_id is a required field.

Hi all,

after following your instructions and trying to send information to Testrail I got the following error:

Error: Field :suite_id is a required field.

Full stacktrace:

Start Test Rail Export [ 'test', 'mochawesomeReport.json', false, [], [] ]
Test results parsed []
Passed: [ 0 ]
Skipped: [ 0 ]
Failed: [ 0 ]
parsedTestResults [
  '{"analysis":{"passed":0,"failed":0,"skipped":0},"results":[{"file":"PRIVATE","cases":{}}],"testRailCases":[]}'
]
cids [ [] ]
Add Run tets [ [] ]
/Users/PRIVATE/node_modules/@sum.cumo/cypress-testrail-reporter/dist/reporter/index.js:80
        throw new Error(e.response.data.error || e);
              ^

Error: Field :suite_id is a required field.
    at onError (/Users/PRIVATE/node_modules/@sum.cumo/cypress-testrail-reporter/dist/reporter/index.js:80:15)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
error Command failed with exit code 1.

Maybe the Testrail API have changed to require the suiteID?

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.