简体   繁体   中英

UFT Developer Reporter.GenerateReport() never ends

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 TestSuite
  • Is the report folder generated even if the call doesn't finish? - Sorry, I don't know since test system just kills the VM after 1,5h.
  • The test is executed remotely on our internal cloud.
  • Debug level is Release. We never checked any other level.

I 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM