Closed AbinashB closed 6 years ago
@AbinashB Are you using custom or in built screenshot?
And also can we know what version of html-report are you using? Please run gauge -v
and send us the output.
i am using:- csharp (0.9.2) html-report (2.1.1) if I run the script in my local system screenshots are coming. but running in teamcity agent in the remote machine is not working. No, I have not used any custom or in built screenshot.
@AbinashB Could you please update your html-report to the latest (3.1.0) and check if you still face the issue.
getting :- PS C:\Users\te> gauge --update html-report
Gathering metadata for html-report
Plugin html-report 2.1.1 is already installed.
what is the command to manually install for particular version?
You can use this command gauge --update html-report --plugin-version 0.3.1
for more info refer https://docs.getgauge.io/plugins.html?highlight=update
thank you for the command.Let me try.
@AbinashB latest html-report version is 3.1.0 so use this command gauge --update html-report --plugin-version 3.1.0
also please install latest gauge (0.8.3).
same issue after update also: PS C:\Users\te> gauge -v Gauge version: 0.8.3
csharp (0.10.0) html-report (3.1.0)
Locally able to get screenshots but when running through teamcity agent not able to get failed screenshot.
Could you check if screenshot_on_failure
flag is set to true in your CI. Take a look over here for more details.
Yes, This flag is set to true. actually, if I go to that build machine and run locally, able to see the screenshots. if running through teamcity then only not able see screenshots attached to report in the artifact.
@AbinashB - in CI environment, the default screenshot mechanism is not very reliable, since it simulates a Print Screen action.
I suggest that you consider using custom screenshots as illustrated here.
Closing this issue, feel free to comment if this requires further attention.