Closed estefafdez closed 3 years ago
I will check what's wrong and will return here
I've also tried to install the dev dependencies:
npm install cypress-qase-reporter --save-dev
same result.
@estefafdez could you please check latest version? v1.2.0
Hello @zeburek , same problem here, I can't publish the result.
Is there a way for the plugin to create a new test run automatically on Qase and then publish the results instead of creating one manually and set the runId parameter on the project?
Use cypressQaseReporterReporterOptions
instead of cypress-qase-reporterOptions
That's the problem. In demo project there is a correct example
@zeburek same result with and without runId
:
"cypressQaseReporterReporterOptions": {
"apiToken": "xxx",
"projectCode": "CYEX",
"logging": true
}
You can download the project from my repo and check the code yourself, it's on the dev-api-test
branch.
Thanks!
@estefafdez Just checked your dev-api-test branch locally:
PS: Don't forget to NOT push sensitive information to git repo
@zeburek could you tell me what command did you run? I can't reproduce that :(
about the API key, it was there just for testing and for trying to resolve this problem, I will generate a new one once is fixed and I will save it as a private key on the repo!
@zeburek could you tell me what command did you run? I can't reproduce that :(
npm run test
Have you run npm install
after your latest changes?
may be it is related
I will try later today.
Just to confirm, if I want a new test run to be created without adding the testRun ID on the project, how can I do it? Thanks!
To do it now - you just shouldn’t provide testrun ID anywhere - by doing this script will try to create testrun by itself
Ok great, working now :)
one last question before closing the issue. Is there a way to close the TestRun after is finished?
Thanks! :)
Also, a new test run is created on each spec, could it be possible to create one testrun with all the tests instead of a testrun per spec?
For example: https://github.com/estefafdez/cypress-template/runs/1878060734?check_suite_focus=true
Nice, thanks @zeburek. I will create two tickets for both and you will keep me posted :) thanks for the help!
Hello.
I have an open-source license to use the API and publish the test on Qase.
I have the project already setup and the test run created but every time that I run the tests I got the following error:
"cypress-qase-reporter" reporter not found Reporter not found! cypress-qase-reporter
You can see the code here: https://github.com/estefafdez/cypress-template/tree/dev-api-tests
Could you let me know what am I doing wrong? The results are not updated.
Thanks!