Skip to content
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

NUnit Test Attachments aren't working as Screenshots #52

Closed
vanderkyl opened this issue May 6, 2019 · 1 comment
Closed

NUnit Test Attachments aren't working as Screenshots #52

vanderkyl opened this issue May 6, 2019 · 1 comment
Assignees

Comments

@vanderkyl
Copy link

vanderkyl commented May 6, 2019

Describe the bug
I am trying to add screenshots to the GHP report by using Nunit Test Attachments. The attachment is in the test result xml file, but it is not showing up in the html report.

Here is the screenshot code. This occurs in [TearDown]:

            var screenshot = ((ITakesScreenshot)Driver.Get()).GetScreenshot();
            string fileName = CurrentTestNameToJPG();
            screenshot.SaveAsFile(fileName);
            TestContext.AddTestAttachment(fileName, "Failure Screenshot");

And here is the attachment in the xml file:

<attachments> <attachment> <filePath>C:\Screenshots\TQAA1271_SuccessfulStudentLogin_20190506_16-47-15.jpeg</filePath> <description> <![CDATA[Failure Screenshot]]> </description> </attachment> </attachments>

Expected behavior
The screenshot should show up in the GHP report under "Screenshots"
Screenshotsghpr

GHPR Version - 0.8.0.2
NUnit 3 Console - 3.7

@elv1s42
Copy link
Member

elv1s42 commented Oct 18, 2019

Hi @vanderkyl !

This functionality was release later.
Please see the release notes for more details:
https://github.com/GHPReporter/Ghpr.Core/blob/master/RELEASE_NOTES.md#v09

The corresponding issue with feature request:
#37

@elv1s42 elv1s42 self-assigned this Oct 18, 2019
@elv1s42 elv1s42 closed this as completed Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants