Completed
Last Updated: 13 Oct 2016 07:15 by ADMIN
ADMIN
Elena
Created on: 26 Sep 2016 08:13
Type: Bug Report
0
Failing an overridden OnAfterTestCompleted does not record executed steps in the execution log
Steps to reproduce: 

1. Using the attached project run the included test and check the execution log. 

Expected behavior: A complete execution log with all executed steps recorded and their status (fail, pass, not run). 

Actual behavior: The only information in execution log is for the failing assert method and no actual information for the run itself. Though all steps execution is recorded in the application log. 

2. If the OnAfterTest method does not fail (change the assert value to true) the execution log is as expected. 
Attached Files:
2 comments
ADMIN
Daniel Djambov
Posted on: 13 Oct 2016 07:15
Telerik: if you need to see the exception or change result object during execution with the new implementation, you can use something like this in the code:
public override void OnAfterTestCompleted(TestResult result)
 {
 try
 {
 Assert.IsTrue(false);
 }
 catch (Exception exc)
 {
 result.AppendMessage(exc.ToString());
 result.Result = ArtOfTest.Common.Design.ResultType.Fail;
 }
 } 
ADMIN
Daniel Djambov
Posted on: 13 Oct 2016 07:14
Telerik: we have implemented a fix to handle possible exceptions by custom code not to break the execution log. The fix will be available in our next internal product release, planned to be out in Nov 2016.