-
Notifications
You must be signed in to change notification settings - Fork 325
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
Trx Logger Fixes #1710
Trx Logger Fixes #1710
Conversation
XmlTestStoreParameters parameters = XmlTestStoreParameters.GetParameters(); | ||
XmlElement rootElement = helper.CreateRootElement("TestRun"); | ||
// Create test run | ||
if (this.testRun == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please explain what scenario needs this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comment
// (Trx viewer automatically adds In\<Guid> to the result file. | ||
string fileName = Path.Combine(Environment.MachineName, Path.GetFileName(targetFileName)); | ||
resultFiles.Add(fileName); | ||
try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we hit any while validating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to issue #1705 TRX Logger shouldn't fail if test result attachments are missing/Invalid.
XmlTestStoreParameters parameters = XmlTestStoreParameters.GetParameters(); | ||
XmlElement rootElement = helper.CreateRootElement("TestRun"); | ||
// Create test run | ||
if (this.testRun == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[](start = 0, length = 12)
Add UTs for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UT added.
XmlElement rootElement = helper.CreateRootElement("TestRun"); | ||
// Create test run | ||
// If abort occurs there is no call to TestResultHandler which results in testRun not created. | ||
if (this.testRun == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention this happens when first batch itself aborts
@@ -515,6 +515,18 @@ public void TestResultHandlerShouldAddSingleTestEntryForOrderedTest() | |||
Assert.AreEqual(this.testableTrxLogger.TestEntryCount, 1, "TestResultHandler is adding multiple test entries for ordered test."); | |||
} | |||
|
|||
[TestMethod] | |||
public void TestRunCompleteHandlerShouldReportFailedOutcomeIfTestRunIsAborted() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add check for attachments
Trx Logger Fixes