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

How to send files / pictures to the report portal? #4

Closed
fasterfish opened this issue Dec 17, 2016 · 3 comments
Closed

How to send files / pictures to the report portal? #4

fasterfish opened this issue Dec 17, 2016 · 3 comments
Assignees
Labels

Comments

@fasterfish
Copy link
Contributor

No description provided.

@DzmitryHumianiuk
Copy link
Member

@nvborisenko

@nvborisenko
Copy link
Member

Example is in Tests project.

https://github.com/reportportal/client-net/blob/master/src/ReportPortal.Client.Tests/LogItem/LogItem.cs

Find CreateLogWithAttach test and see code.

var data = new byte[] { 1, 2, 3 };
            var log = Service.AddLogItem(new AddLogItemRequest
            {
                TestItemId = _testId,
                Text = "Log1",
                Time = DateTime.UtcNow,
                Level = LogLevel.Info,
                Attach = new Attach("file1", "application/octet-stream", data)
            });

@DzmitryHumianiuk
Copy link
Member

nvborisenko pushed a commit that referenced this issue Feb 12, 2024
…ers-for-threads

Thread-safe lists; registering test reporter for threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants