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

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

Hello Macy,

You can use this command to get the session_id:

driver.getSessionId()