We are using Micro Focus UFT developer 15.01. About 1-2% of our tests never end, because they are stuck inside
Reporter.GenerateReport();
The issue is rare, but for us it is annoying enough to re-trigger our tests manually.
This is not our code. Anyone out there knows what could cause this issue? As far as I can tell, any test (failing or passing) can be affected, hence I assume it happens regardless of the content of report.
Corresponding post in Micro Focus community
More details as requested by Adelin:
Reporter.GenerateReport()
is called once per TestSuiteI will post the same as I did in the corresponding Micro Focus post:
The issue is hardly reproducible since it occurs in roughly 1-2% of our tests. We wrapped the line of code with:
var success = Task.Run(() =>
{
reportPath = Reporter.GenerateReport();
}).Wait(2*60*1000); //let's wait 2 minutes for the report maxCode
This prevents endless timeouts we were observing. Furthermore, in case of failure we can decide what do to. With only very few tests being impacted, we have not yet observed a single case where the test failed and the report was not generated.
We assume that some process (such as virus scanner) on our VMs is causing this issue. If there are any log files we could collect in such cases, that would be a possibility to investigate further. We are, however, satisfied with our solution.