Edit standard console messages

Ranorex Spy, Recorder, and Studio.
jon.hansen
Posts: 8
Joined: Tue Nov 18, 2014 12:16 pm
Location: Denmark

Edit standard console messages

Post by jon.hansen » Tue Nov 18, 2014 1:09 pm

Hi,

We're running our Ranorex Test Suite from TeamCity.
In TeamCity it's possible to do on-the-fly test reporting, by writing service messages to the std. output.
(https://confluence.jetbrains.com/displa ... h+TeamCity)

This means that we have to write a service message on start and end of each test case. A solution is to edit following standard Ranorex messages, which are written to console on start and end of a test case:
"Test Case '<TestCase>' started."
"Test Case '<TestCase>' completed with status '<Status>'."

Does anyone know if this is possible (and how) ?
Or maybe someone has an alternative solution ?

I'm aware of this could be done in the setup and teardown of the test cases, but that implies that all test cases are edited (which is not prefered).

jon.hansen
Posts: 8
Joined: Tue Nov 18, 2014 12:16 pm
Location: Denmark

Re: Edit standard console messages

Post by jon.hansen » Tue Nov 18, 2014 4:03 pm

I've found an alternative solution:

By implementing an eventhandler for the BeginActivity and the EndActivity events, the teamcity service messages is written when each testcase is started and stopped.
ranorex.com/forum/how-to-execute-a-piece-of-code-for-all-testcases-t4699.html