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

Screen shots attaching #31

Open
lkkushan101 opened this issue Oct 19, 2020 · 3 comments
Open

Screen shots attaching #31

lkkushan101 opened this issue Oct 19, 2020 · 3 comments

Comments

@lkkushan101
Copy link

Hi I'm using the .net CLI and would like to know how i can attach screen shots to the generated report...is there any sample code. please help me need it ASAP

@lkkushan101
Copy link
Author

@anshooarora please need your help soon on this

@lkkushan101
Copy link
Author

@dsparkplug can you reply into this query

@igorrecioh
Copy link

Hi @lkkushan101,

I added this in NUnitParser.cs:

                    if (tc.Element("attachments") != null)
                    {
                        var att = tc.Element("attachments");
                        if (att.Element("attachment") != null)
                        {
                            test.AddScreenCaptureFromPath(att.Element("attachment").Element("filePath").Value);
                        }

                    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants