79220288

Date: 2024-11-24 14:33:39
Score: 1.5
Natty:
Report link

When Jenkins runs the tests, the paths in the generated report might be relative or incorrect, causing the browser to fail to load the images. Jenkins reports likely are done from differences in how file paths are resolved or accessed between your local environment and the Jenkins.

make sure the paths in the Jenkins report are absolute paths or URLs accessible from the Jenkins server itself. otherwise, you need to change your code to generate absolute paths. Also, ensure the Reports/screenshots folder is included in the artifacts. update your ensure_screenshot_folder method to print the folder path for debugging, i.e:
print(f"Screenshots folder: {screenshots_folder}") Run the Jenkins job and check the logs, is it created as expected?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): When
Posted by: Ahmad