How to pass tags in LambdaTest automation?

How to I pass tags while running automation tests on LambdaTest?

Hi Dipen,

I hope you are doing well, I will surely try to answer your question.

You can pass the tags for your automation tests like below.

public static String[] customTags = {“tag-1”, “tag-2”, “tag-3”}; caps.setCapability(“tags”,customTags);

Hope this answer will work for you, feel free to reach out if you have more questions regarding the same.