BeforeTest how to get Tag value?

Hi I want to get the tag value in a test listener hook. Testcasecontext doesn’t have a method for tag, how can I do this?

I basically want to check before each test if the Tag is API, run some API things, if it’s UI start a browser and login in ect.

1 Like