What does Parameterized testing mean in TestNG?

0 votes
Jun 4 in Selenium by Imraan
22 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 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 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,590 points
11 views
0 votes
1 answer

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

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

answered Apr 18, 2018 in Selenium by king_kenny
• 3,590 points
149 views
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
53 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,050 points
135 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
527 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
129 views
0 votes
1 answer
0 votes
1 answer

What is functional testing in selenium?

To keep a check on the fucntionality ...READ MORE

answered Feb 14 in Selenium by Esha Gupta
14 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.