What does Parameterized testing mean in TestNG

0 votes
Jun 4, 2019 in Selenium by Imraan
984 views

1 answer to this question.

0 votes

Hey Imraan, Parameterized tests allow developers to run the same test over and over again using different values. There are two ways to set these parameters:

  • with testng.xml: With this technique, you define the simple parameters in the testng.xml file and then reference those parameters in the source files.You need to use the @Parameters annotation for passing parameter values to the test method:
    @Parameters({ "param-name" })
  • with Data Providers: When you need to pass complex parameters or parameters that need to be created from Java (complex objects, objects read from a property file or a database, etc.), parameters can be passed using Dataproviders.A Data Provider is a method annotated with @DataProvider.
     
answered Jun 4, 2019 by Parineeti

Related Questions In Selenium

0 votes
1 answer

What purpose does this "::" solve in selenium?

Well this is not a Selenium functionality, ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,710 points
485 views
0 votes
2 answers

What is the role of TestNG & JUnit frameworks in Selenium?

TestNG and JUnit are test frameworks . it ...READ MORE

answered Sep 4, 2020 in Selenium by Sri
• 3,190 points
2,938 views
0 votes
2 answers
0 votes
1 answer

What is TestNG and why it is used in selenium?

Hello @User, Talking about TestNG, it is an ...READ MORE

answered Dec 24, 2018 in Selenium by Shuvodip
1,317 views
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,776 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,266 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

What does the test timeout mean in TestNG?

Hi Wahida, test timeout represents the maximum ...READ MORE

answered Jun 19, 2019 in Selenium by Abha
• 28,140 points
1,162 views
0 votes
1 answer

What is the use of @listener annotation in TestNG?

 @listeners are used to configure reports and ...READ MORE

answered Jan 2, 2019 in Selenium by Shuvodip
2,877 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