0

I have a coded UI test in which I am generating a result SleniumLog.html file using log4net and I want to attach that file to the Attachment of the output of executed test result. As you can see in the screenshot below there is a UITestActionlog.html present and I want to attach one more file here which is present in 'Out' directory of the result.

Is it possible to do that?

enter image description here

tear
  • 191
  • 9
Pankaj Devrani
  • 510
  • 1
  • 10
  • 28
  • See https://stackoverflow.com/a/33708155/546871 – AdrianHHH Mar 02 '18 at 11:42
  • Possible duplicate of [How can I attach an image to TRX (Test Result Reported) File?](https://stackoverflow.com/questions/33696792/how-can-i-attach-an-image-to-trx-test-result-reported-file) – AdrianHHH Mar 02 '18 at 11:43

1 Answers1

1

Using TestContext.AddResultFile method.

starian chen-MSFT
  • 33,174
  • 2
  • 29
  • 53