Home:ALL Converter>On running Selenium Test through Gitlab CI/CD Pipeline, Screenshots are not displaying within Extent Test Report

On running Selenium Test through Gitlab CI/CD Pipeline, Screenshots are not displaying within Extent Test Report

Ask Time:2020-09-14T18:02:31         Author:Abhishek Arora

Json Formatter

On running Selenium Test through Gitlab CI/CD Pipeline, Screenshots are not displaying within Extent Test Report. Test Report and Screenshots folder are getting generated separately as an artifact there but on running in local, it is displaying within test report.

I have tried base 64 encoded also for taking screenshots but it is not working. As path will change as it runs on different server when we run automation suite on Gitlab CI/CD pipeline, therefore I guess screenshots are not getting displayed within extent report. Kindly please suggest what we can do here.

Author:Abhishek Arora,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/63882147/on-running-selenium-test-through-gitlab-ci-cd-pipeline-screenshots-are-not-disp
yy