-
Notifications
You must be signed in to change notification settings - Fork 41
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
Images not showing up for nested spec directories #251
Comments
Waiting for this release. I am also having folder structure as
would be nice if it accepts for any folder structure under specs. |
@Vishnu1067 I tested this branch (251_nested_dir_images). The bug has been fixed. I downloaded the source code and compiled myself. Let me know if you need the zip file for your machine. I hope they release soon. |
I have checkout this branch and now gauge -v
When i use ICustomScreenshotGrabber, screenshots are showing in the report (deprecated ICustomScreenshotGrabber)
But if i use CustomScreenshotWriter, screenshot not placed in images and it is crashed.
Correct me if i am doing anything wrong here. Also not sure i must put env |
@sriv can you please consider to fix this issue or am i missing something? Please advise.
|
@Vishnu1067 - sure. will check this out as well. |
@Vishnu1067 - your custom screengrabber imlpementation is incorrect. You need to write the file and then return the path. The location of screenshot should be read from
I tried this and am able to see the screenshots in all pages (even the nested ones). PS - the docs mention this: https://docs.gauge.org/writing-specifications.html?os=windows&language=java&ide=vscode#taking-custom-screenshots |
Ok thank you @sriv. I will try it out |
@sriv It works, Thanks. |
@sriv When will be expected to release this fix? |
The fix is being tested, please watch out for the PR #253 to be merged. |
Expected behavior
Images created by the new CustomScreenshotWriter should show up for for nested specs directories
Actual behavior
The images links are broken if:
specs specDirectory1 specDirectory2 My-Spec.spec
In the html-plugin the screenshot image links address is expected to be: <root_project>reports/staging/html-report/specs/specFolder1/specFolder1/images/screenshot-c7a2f422-bedc-4215-9d4d-94d004210b0a.png
Steps to reproduce
Create a project with nested spec directories
Gauge version
The text was updated successfully, but these errors were encountered: