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

What should I do to get session ID of a running test via script in Pytest?

Hi Macy,

To get a session ID of the running test in Pytest, you can use the syntax below:

httpContext.Current.Session.SessionID