getgauge / gauge-csharp

Csharp runner for Gauge
https://gauge.org
GNU General Public License v3.0
33 stars 21 forks source link

No Screenshots are attached to failed case when I Run gauge script in teamcity remotely . #109

Closed AbinashB closed 6 years ago

AbinashB commented 7 years ago
screen shot 2017-05-02 at 12 43 06 pm
Apoorva-GA commented 7 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.

AbinashB commented 7 years ago

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.

Apoorva-GA commented 7 years ago

@AbinashB Could you please update your html-report to the latest (3.1.0) and check if you still face the issue.

AbinashB commented 7 years ago

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?

Apoorva-GA commented 7 years ago

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

AbinashB commented 7 years ago

thank you for the command.Let me try.

Apoorva-GA commented 7 years ago

@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).

AbinashB commented 7 years ago

same issue after update also: PS C:\Users\te> gauge -v Gauge version: 0.8.3

Plugins

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.

Apoorva-GA commented 7 years ago

Could you check if screenshot_on_failure flag is set to true in your CI. Take a look over here for more details.

AbinashB commented 7 years ago

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.

sriv commented 6 years ago

@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.