Information logging when reports are not generated

Ask general questions here.
carsonw
Posts: 178
Joined: Tue Nov 08, 2011 10:01 pm

Information logging when reports are not generated

Post by carsonw » Fri Jul 22, 2016 5:15 pm

Hello, various circumstances can occur that result in a Ranorex test terminating without a report being generated. In these cases, it's very difficult to determine the cause of failure.

I'll give an example of a cause, and a brief description of our test execution process. If you do the following:

  • Excel is not installed
  • You have a test that uses excel
  • You execute the test
  • The test fails with an error you can see on the console
  • A report is not generated
A similar example would be if, for some reason, we cannot reach the licensing server.

What I'm wonder is how can I get that error displayed on the console? Is there a log somewhere?

Here is how our process works:
We have an console application that launches the ranorex test. This application determines what command line switches to launch the ranorex test with using a variety of crieria. The console app will then launch the ranorex test and sit and wait for a response code. I get a 0 if it was success, and some other code if it was a failure. All my application knows about is the code.

My application then looks for the report file to manipulate it in such a way that it can be consumed by our CI (and check to see some metadata like pass, fail counts etc.).

If, for some reason, the log isn't there, then my application simply reports... I couldn't find the log. But the question is... WHY isn't the log there? That's what I need to somehow discover.

I can see the reason why fly by the console of the Ranorex Test, but I need a way to capture that. Is this possible?

Thanks!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Information logging when reports are not generated

Post by Support Team » Thu Jul 28, 2016 1:50 pm

Hi Carsonw,

I have already added a bug in our internal bug-tracking system.
Currently, we do not know if and when this feature will be implemented. This depends on various factors. Nevertheless, all reported bugs and feature requests are documented in the release notes, with every new version release of Ranorex.

Thank you for your understanding.

The only workaround I can think of is to check the return code of the .exe file. That means that if this return value is 42, then no suitable license is available.

I hope this helps.

Sincerely,
Matthias
.
Image