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,760 points
2,644 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
1 answer
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 2, 2020 in Selenium by Sri
• 3,190 points
4,061 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,500 points
13,773 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,188 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,910 points
7,263 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 3, 2020 in Selenium by Sri
• 3,190 points
7,902 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
• 28,140 points
2,941 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
• 28,140 points
3,118 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP