Skip to content

Instantly share code, notes, and snippets.

@ilya-murzinov
Last active August 29, 2015 14:07
Show Gist options
  • Save ilya-murzinov/95eb0dd6edd742ee2de0 to your computer and use it in GitHub Desktop.
Save ilya-murzinov/95eb0dd6edd742ee2de0 to your computer and use it in GitHub Desktop.
This is attachment!
<?xml version="1.0" encoding="utf-8"?>
<test-suite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" start="1412418999704" stop="1412418999729" version="1.4.0" xmlns="urn:model.allure.qatools.yandex.ru">
<name xmlns="">MyAssembly.TestSuite</name>
<test-cases xmlns="">
<test-case start="1412418999706" stop="1412418999708" status="passed">
<name>MyAssembly.TestSuite</name>
<attachments>
<attachment title="StdOut" source="guid-attachment.txt" type="text/plain" />
</attachments>
</test-case>
</test-cases>
</test-suite>
namespace MyAssembly
{
[TestFixture]
public class TestSuite
{
[Test]
public void Test()
{
doSomething();
makeAttachment();
doAnotherThing();
}
private void doSomething()
{
}
private void doAnotherThing()
{
}
[Attachment]
private string makeAttachment()
{
return "This is the attachment!";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment