What is TestNG? Why do we need TestNG in Selenium?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

Software professional with 17+ vast experience in different technologies and trainings

TestNG makes automated tests more structured, readable, maintainable, and user-friendly. It provides powerful features and reporting. Its high-end annotations like dataprovider, make it easier to scale up, as you perform cross browser testing across multiple devices, browsers, and their versions.
read more
TestNGmakes automated tests more structured, readable, maintainable, and user-friendly. It provides powerful features and reporting. Its high-end annotations like dataprovider, make it easier to scale up, as you perform cross browser testing across multiple devices, browsers, and their versions. read less
Comments

Wroking in IT industry from last 15 years and and trained more than 5000+ Students. Conact ME

TestNG is an open-source testing framework for Java that is widely used in the software industry for testing Java-based applications. TestNG stands for Test Next Generation, which means it provides an advanced and better version of JUnit, another popular testing framework. TestNG offers a wide range...
read more
TestNG is an open-source testing framework for Java that is widely used in the software industry for testing Java-based applications. TestNG stands for Test Next Generation, which means it provides an advanced and better version of JUnit, another popular testing framework. TestNG offers a wide range of features such as annotations, grouping, sequencing, parallel execution, reporting, and more, which makes it more powerful and flexible compared to other testing frameworks. With TestNG, testers can easily manage and execute tests, generate reports, and perform data-driven testing, among other functionalities. When it comes to Selenium, TestNG is particularly useful because it provides integration with Selenium WebDriver, which allows testers to automate web application testing more effectively. TestNG can help testers to organize their Selenium test scripts, execute them in a specific order, run tests in parallel, and generate reports to analyze test results. TestNG provides various annotations such as @BeforeTest, @AfterTest, @BeforeSuite, @AfterSuite, and more, which can be used to perform pre-test and post-test activities, set up the environment, and tear down the environment. It also provides various assertions to validate test results and allows testers to configure test runs with different parameters. Overall, TestNG is a powerful and flexible testing framework that makes testing Java-based applications, including Selenium test scripts, more efficient and manageable. Regards, Vivek Joglekar read less
Comments

Related Questions

What is the best way to learn selenium testing? N start career in automation testing?
For learning Selenium testing , Prepare for Core Java later learn Selenium WebDriver.
Deepak
What is selenium grid used for?
Selenium Grid is an essential tool for anyone looking to run tests on multiple browsers and operating systems efficiently. It allows you to perform distributed testing, parallel execution, and...
Praveen
0 0
5
I have been working in a medical billing company for five years. I want to switch my carrier from non-IT to IT. I have only a BA degree, but I have good knowledge of computers. I know some basics of HTML and manual testing; can I learn java selenium directly to get a job in automation?
Hi Sirajudeen.. Java selenium is one of the good options.. one more easy way to shift to IT is learning Oracle SQL.. Scope of Oracle SQL always stands high since the database is backbone of all developement,...
Sirajudeen
Hi, We provide online instructor-led training. I am looking for Java Teacher/Instructor who can teach java via online. If anyone interested then contact me. I have to start the class from tomorrow onwards.
Hi, If you haven't finalised yet, I am interested in being an instructor. I will be teaching the newest version of Java, Java 10. Experience - 3 yrs as Software Engineer, BTech CSE, teaching Java to school and college students since 3 yrs.
Ujjwal Rana

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Why we declare WebDriver driver = new FirefoxDriver(); and not FirefoxDriver driver = new FirefoxDriver();
Here, List or WebDriver is an Interface - a contract or set of rules created for implementing class.So, in Java, we cannot create an instance of an interface. ieI cannot say List list = new List();But...

Example of DependsOnMethod in TestNG
public class dependsonM { @Test public void login() { System.out.println("login"); } @Test (dependsOnMethods = {"login"}) public void email() { //Intentionally I am failing this testcase Assert.assertTrue(false);...
S

Sarthak C.

0 0
0

Advanced Selenium Course
Advanced Selenium with Cucumber: Introduction: Overview of Selenium Advantages of Selenium The Selenium Suite Introduction to Selenium IDE Selenium Remote Control Selenium Grid The architecture...

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...

How to toggle b/w windows in webdriver
getWindowHandles will provide us handles for all windows available. Set windows = driver.getWindowHandles(); Iterate through all windows and choose suitable window based on its title for (String window...

Recommended Articles

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for Selenium Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you