How to get session ID of a running test via script in JUnit framework?

What to do to get session ID of a running test via script in JUnit framework?

Hi Joe,

To get a session ID in JUnit, users can use this command to get the session ID:

driver.getSessionId()