TestNG has an annotation which can read the parameter groups,
e.g @Test(groups = { "functest", "checkintest" })
and the
test cases can be run based on the particular group.
If anyone could give me a few hints how, this happens in the TestNG code, it would be great.