sumcumo / cypress-testrail-reporter Goto Github PK
View Code? Open in Web Editor NEWParse and Post your cypress results to testrail
License: Apache License 2.0
Parse and Post your cypress results to testrail
License: Apache License 2.0
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:
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):
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 😞 .
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.
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?
This framework works when test pass and doesn't upload any results to testrail when test fails
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.