Get the account name running the tests

Hello,

I am wondering if it’s possible for Katalon to get the username of the Active Directory account (not Katalon user profile) currently running a test case. I would like a particular block of code to execute only if a specific account has launched the program.

You can try System.getProperty("user.name") but I’m not sure if it carries the same nomenclature for AD.

1 Like

That should be good enough for what I need to do. Thank you.

1 Like

I want to fetch the account details from settings at run time… is it possible?

Is it possible to get the account info from settings at run time?

Hi @anjana.singh -

did you ever figure out how to get the katalon account name ?