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,750 points
442 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
3 answers

Can we run selenium tests (Firefox) on WebDriver without a GUI?

Hi ,  Yes, you can use headless browsers ...READ MORE

answered Sep 1 in Selenium by Sri
• 2,970 points
1,226 views
0 votes
1 answer
0 votes
2 answers

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,520 points
3,769 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,749 views
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,890 points
2,729 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
3,093 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, 2019 in Selenium by Abha
• 27,930 points
1,180 views
0 votes
1 answer

Is it possible to create a Pytest Fixture which can be shared with other tests?

Hi Prashashti, to create a fixture that ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 27,930 points
884 views