Unplanned
Last Updated: 04 Jul 2014 14:01 by David
ADMIN
Cody
Created on: 23 Jun 2014 15:25
Type: Feature Request
1
Missing iterations in log of data driven subtest
In the attached project, the child test runs 7 iterations, yet only the one that failed is included in the log:
Overall Result: Fail
------------------------------------------------------------
'6/23/2014 10:18:58 AM' - Executing test: 'parentTest', path: 'parentTest.tstest.'
'6/23/2014 10:18:58 AM' - Using .Net Runtime version: '4.0.30319.18444' for test execution. Build version is '2014.2.618.0'.
'6/23/2014 10:18:58 AM' - Starting execution....
'6/23/2014 10:18:59 AM' - Detected custom code in test. Locating test assembly: simpleSubtest.dll.
'6/23/2014 10:18:59 AM' - Assembly Found: F:\Dropbox\Support Issues\simpleSubtest\bin\simpleSubtest.dll
'6/23/2014 10:18:59 AM' - Loading code class: 'simpleSubtest.parentTest'.
------------------------------------------------------------
------------------------------------------------------------
'6/23/2014 10:19:00 AM' - Using 'InternetExplorer' version '10.0' as default browser. 
'6/23/2014 10:19:00 AM' - 'Fail' : 1. [parentTest_CodedStep] : New Coded Step
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[parentTest_CodedStep] : New Coded Step'.
InnerException:
System.ExecutionEngineException: Comment: Comment 1 ---> ArtOfTest.Common.Design.Exceptions.ExecutionException: Exception thrown executing coded step: '[childTest_CodedStep] : New Coded Step'. ---> ArtOfTest.Common.Exceptions.AssertException: THIS IS MY ASSERT MESSAGE - [Expected:False],[Actual:True]
   at ArtOfTest.Common.UnitTesting.Assert.IsFalse(Boolean condition, String message)
   at simpleSubtest.childTest.childTest_CodedStep() in f:\Dropbox\Support Issues\simpleSubtest\childTest.tstest.cs:line 82
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteCodedStep(AutomationStep step, Object codeBehindInstance, StepsTracer tracer, AutomationStepResult result)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Design.BaseWebAiiTest.ExecuteTest(String relativeTestPath)
   at simpleSubtest.parentTest.parentTest_CodedStep() in f:\Dropbox\Support Issues\simpleSubtest\parentTest.tstest.cs:line 52
------------------------------------------------------------
'6/23/2014 10:19:00 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/23/2014 10:19:00 AM' - Overall Result: Fail
'6/23/2014 10:19:00 AM' - Duration: [0 min: 0 sec: 920 msec]
------------------------------------------------------------
'6/23/2014 10:19:05 AM' - Test completed!
Attached Files:
1 comment
David
Posted on: 04 Jul 2014 14:01
There is a similar issue if script A calls B calls C and fails while in C.  In this case you only get the details from A and at the end you see the exception from C.  This is not very helpful because the details of what was happening at the time of the failure are in C are lost.

We wrote an extension dll that helps with this situation, but it took a while to understand what was happening and work around.