Closed NikolayPianikov closed 5 years ago
Related issue
TeamCity 2018.2 + supports test metadata, i.e. images, statistics. Previous versions support artifacts publishing.
This code
TestContext.AddTestAttachment(@"data\MyImage.jpg", "My Image"); TestContext.AddTestAttachment(@"data\report.txt";
will attach artifacts to TeamCity test for TeamCity 2018.2 + and just will add artifacts for previous versions.
Also it is possible to specify artifact location in the TeamCity for later use
TestContext.AddTestAttachment(@"data\MyImage.jpg", "My Image => images");
or just
TestContext.AddTestAttachment(@"data\MyImage.jpg", "=> images");
The artifact directory is "images" now. This artifact is accessible, for example via REST API, by specific path like images/MyImage.jpg.
images/MyImage.jpg
Related issue
TeamCity 2018.2 + supports test metadata, i.e. images, statistics. Previous versions support artifacts publishing.
This code
will attach artifacts to TeamCity test for TeamCity 2018.2 + and just will add artifacts for previous versions.
Also it is possible to specify artifact location in the TeamCity for later use
or just
The artifact directory is "images" now. This artifact is accessible, for example via REST API, by specific path like
images/MyImage.jpg
.