Can a testNG suite run with different group names which doesn't exist?

0 votes
I have tried running a testNG suite with relevant group names but I am not sure whether the program gives an output if the groups name are not relevant. If it does so why? and if it doesn't then why? Can someone help?
Dec 27, 2018 in Selenium by Sradha
• 1,720 points
41 views

1 answer to this question.

0 votes
Hey @Sradha, this works fine. Yes the testNG suite will run and will generate no results as the group names are not matching to any of your groups. The XML file that you create has nothing to with your actual testNG class and the groups in it.

Once you have mentioned the group names in the testNG class those refer to the group you made for your convenience and if you don't run or change the groups name then the suite will look for those groups and if it doesn't find one then it will simply execute the suite file without generating any reports.

Hope this explanation was of some help.
answered Dec 27, 2018 by Richa

Related Questions In Selenium

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
550 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
885 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
546 views
0 votes
1 answer

How to run a group of test cases using TestNG in Selenium Webdriver?

Hey Kajal, TestNG allows you to perform ordered ...READ MORE

answered Jun 12 in Selenium by Abha
• 22,870 points
76 views
0 votes
1 answer