Forum Discussion

mgroen's avatar
mgroen
Frequent Contributor
11 years ago

How to get installed Java (JRE) version details and post it to the log?

Our application uses Java (JRE) to run.



I want to get the installed Java details (version is most important), and post it to the log of running TestComplete tests.

So that I can see which Java is used in the test execution.



What would be the best approach? I mainly use keyword testing but when needed I use Code Snippets / small pieces of scripts.



Thanks.

Mathijs

11 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Tony,



    Yes!! Exactly! How could I forgot about this when I mentioned a similar thing in another thread?

    This is definitely the way to go but with small enhancement to improve Java process recognition if more than one Java process is running in the system:

    a) (Optionally, though I would do this) Remove Index from Java process recognition parameters;

    b) With the tested application running, in the NameMapping Editor, select mapped Java process, switch to the Required Children panel and check (select) your tested application as a required child.