Group Testing Using TestNG Framework (Selenium Course) Lecture - 31

Опубликовано: 29 Сентябрь 2024
на канале: Programming Line in English
34
0

In this video tutorial, we are going to learn how to perform group tests using TestNG framework.

Annotations:
@Parameters:
It is used to get the data from the suite file and use it anywhere in the TestNG class. Even you can access the data from different and classes.

@Test(enabled=False)
It is used to ignore the test while executing

@Test(groups=”groupname”)
It is used to run or combine the test into single unit and execute module by module.

Syntax:
public class GroupTesting
{
@Parameters({"username" , "password"})
@Test(groups="Functionaltest")
public void firstTestcase(String username,String password)
{
}

@Test(groups="DataTest")
public void secondTestcase()
{
}

@Test(groups="Functionaltest")
public void thirdTestcase()
{
}

@Parameters("password")
//ignoring the test
@Test(enabled=false)
public void fifthTestcase()
{
}
}

For more details: www.programmingline.com/selenium

#ProgrammingLine #Rakesh #SeleniumCourse


Video Credits: Abirami
Disclaimer: Thanks Abirami for contributing this video for this channel. I have paid Abirami for doing this video exclusively for this channel.
*******************************************************
Java Course:    • Java Course  
Python Course:    • Python Course  
Software Design Patterns Course:    • Software Design Patterns  
OOPs Course:    • OOPs Course  
NLP Course:    • NLP Course  
Software Interview Tips:    • Software Interview Tips  

Important Links:
Skillshare - Best Online Learning Platform (2 Free Months of Premium Membership): https://programmingline.com/skillshare
Java Course: https://programmingline.com/java-course
Software Design Patterns Course: https://programmingline.com/software-...
Object Oriented Programming (OOPs) Course: https://programmingline.com/oops
Best Books for Software Courses: https://programmingline.com/best-book...
Campus Interview: https://programmingline.com/campus-in...
How to crack the programming aptitude round?: https://programmingline.com/how-to-cr...


*******************************************************

Subscribe my YouTube channels:
► Subscribe    / @programminglineinenglish8654   channel for watching Software Related courses like Java, Software Design Patterns, OOPs, and etc in Telugu.

► Subscribe    / @roadtoinvestment7954   channel for watching Income Tax saving schemes and Stock Market related videos.

► Subscribe    / @rakesh-ms7tn   channel for watching Terrace Gardening Tips, Unboxing products, and Random videos in Tamil, Telugu, and English.

Website: www.programmingline.com
FaceBook page:   / programminglineofficial  
Instagram:   / programmingline  
Twitter:   / programmingline  

*******************************************************