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,710 points
31 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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

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

You can explore options like HTMLUnit Driver ...READ MORE

answered Mar 23, 2018 in Selenium by nsv999
• 5,030 points
163 views
0 votes
1 answer
0 votes
1 answer

Not able to set ChromeDriver to run a TestNG programm

You have not set the system properties ...READ MORE

answered Apr 19, 2018 in Selenium by Meci Matt
• 9,400 points
55 views
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,030 points
73 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
446 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
55 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.