Hi
I found pretty strange behavior of Report after implementing second thread (to watch AUT unhandled exceptions).
So what I have:
1. Main working thread that is executing tests steps
2. Second thread: simple infinite loop that is watching to unhandled exceptions+call report.error(...) + call report.screenshot() and closing exception form (so main thread can try to continue tests)
3. Also I have DebugLogger class extending default Report and simply write all text into debug.txt file (just for debug purpose, so I can access logs in run-time and still have some logs if I cancel debug session and xml file with nice report is not available)
Results(issues):
When unhandled exception happened:
1. second thread found exception form, reported error, reported screenshot, closed exception form (this is good and expected behavior)
2. debug.txt file contains 2 lines for each Report.Error(...) calls (this is not expected behavior, but not critical error. I've expected to have one line for one Report.Error(...) call)
3. report.xml - nice and formatted xml file with all results doesn't contain information from Report.Error(..) called from second thread (this is critical error for me, because manual QAEs will not review debug.txt file and will only review report.xml file for test results)
Notes:
1. Application is on .Net C# with DevExpress
2. Ranorex version is 3.2.1.15734
3. Tests are implemented on C# and executed from nUnit
4. Both threads have STA attribute (and [assembly:RequriesSTA] class attribute was set so nUnit also executes tests with STA thread apartment state)
