jeudi 14 mai 2020

Allure Report/Robot Framework/Team City screenshot problem

I am using RobotFramework with TeamCity integration (Linux RH). I added Allure Report step in TC but my screenshots from test execution are not saving in correct directory:

allure-report/data/attachments

So in the report I am getting the error:

artifact does not exist 'allure-report.zip!/allure-report/data/attachments

Those screeshots have been saved in other directory, by using standard cmd robot runner, but even when I point this directory to the same dir as above:

python3 -m robot --listener allure_robotframework -d allure-report/data/attachments

it will be overwritten after Generate Allure Report Step. I listed my files before and after generating allure report, so it looks like this:

  1. Step: run robot tests then ls -ltr allure-report/data/attachments and I can see .png's generated
  2. Step: generate allure report (Team City built-in step), it is creating the report into allure-report/data/attachments but seems it is overwritting this directory and after report generation I can see only bunch of .html files inside /attachments without .png's I created before in this folder.

I was trying many solutions, with copying those pngs from other folder to /data/attachments after allure report generation, pointing .pngs result to the same as allure-output but it is still not working.

How can I generate Allure Report with screenshots moved to default allure folder /data/attachments?

Aucun commentaire:

Enregistrer un commentaire