pabot icon indicating copy to clipboard operation
pabot copied to clipboard

Jenkins - Pabot generates wrong links to screenshots in Report.html

Open Pawci3oo opened this issue 4 years ago • 3 comments

Hi,

I have a issue regarding link to screenshot included in Report.html. Latest version where links were correct: 1.2.1.

I run my tests on Jenkins using command line: "xvfb-run -s '-screen 0 1366x768x24 -ac -nolisten unix :$DISPLAY' pabot --processes 8 --verbose --artifacts png --artifactsinsubfolders --ordering Parameters/PabotFiles/Smokes.pabotsuitenames --output Smokes.xml --log LogSmokes.html --report ReportSmokes.html --argumentfile Parameters/Batch_And_Jenkins/parameters.args --include Smokes */*/*/*/*Smokes.robot"

If I want to see the Robot results in Jenkins I have to use robot plugin (pipline in groovy) to match files: robot logFileName: 'LogSmokes.html', otherFiles: 'Screenshots/*.png', outputFileName: 'Smokes.xml', outputPath: '/home/jenkins/workspace/tests/Smokes', reportFileName: 'ReportSmokes.html'

Example link to Report.html: (works good) https://jenkins-url/view/3_TEST%20environment/job/Smokes/118/robot/report/Report.html

The path to screenshots are generated like as Report.html: https://jenkins-url/view/3_TEST%20environment/job/Smokes/118/robot/report/Screenshots/selenium-screenshot-Suites.Smokes-1592663080.png

Since 1.3.0 version the link for screenshot is: (without robot/report path):

https://jenkins-url/view/3_TEST%20environment/job/Smokes/114/Screenshots/selenium-screenshot-Suites.Smokes-1632623080.png

It means I cannot see the screenshots from Report.html. (expects "robot/report" in path so I need to correct links manually).

Could you take a look on this?

Pawci3oo avatar Jun 21 '20 16:06 Pawci3oo

@mkorpela any advice on this?

Pawci3oo avatar Jul 08 '20 09:07 Pawci3oo

I found the reason in this bug: https://github.com/mkorpela/pabot/issues/50 It means this keyword from SeleniumLibrary is useless if someone wants to use pabot. Nevertheless, my reported issue it's a duplicate.

Pawci3oo avatar Jul 10 '20 10:07 Pawci3oo

Bump. Any news on this?

Pnikanti avatar Feb 05 '21 06:02 Pnikanti