Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historical reports uploaded with curl shows last report having zero results #76

Open
zlyuk13 opened this issue Oct 4, 2023 · 0 comments

Comments

@zlyuk13
Copy link

zlyuk13 commented Oct 4, 2023

Hi followed your documentation and perfromed the following steps:

  1. Created a report from the Nightwatch tests using nightwatch-allure lib (https://nightwatchjs.org/guide/reporters/use-nightwatch-allure-reporter.html)

  2. Used Junit reports folder from 1. and command bellow to generate allure-report
    allure generate junit_reports --clean -o allure-report

  3. Then zipped the report folder
    zip -r allure-report.zip allure-report

  4. Started server locally using java
    java -jar -Dallure.support-old-format=true -DPORT=9080 allure-server.jar & disown

  5. Upload zip file and grab uuid
    curl -X POST 'http://localhost:9080/api/result' -H "accept: /" -H "Content-Type: multipart/form-data" -F "allureResults=@./allure-report.zip;type=application/x-zip-compressed" | jq '.uuid'

  6. Create report using UUID (ffebdfc0-bc5a-4ae1-b320-a01b452788de)
    curl --location --request POST 'http://localhost:9080/api/report' --header 'Content-Type: application/json' --data-raw '{ "reportSpec": { "path": [ "master", "dash-1" ], "executorInfo": {"buildName": "#dash-1"}},"results": ["ffebdfc0-bc5a-4ae1-b320-a01b452788de"],"deleteResults": true}'
    All reports
    image

Manual upload of the allure-report.zip
image

Upload using curl
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant