Question
How can we create data driven framework using testng?

Answers

By using @DataProvider annotation,  we can create a Data Driven Framework.

@DataProvider(name="getData")
public Object[][] getData(){
//Object [][] data = new Object [rowCount][colCount];
Object [][] data = new Object [2][2];

data [0][0] = "FirstUid";
data [0][1] = "FirstPWD";

data[1][0] = "SecondUid";
data[1][1] = "SecondPWD";

return data;

}   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Write an essay on the influence of biological clocks in the behaviours of animals.
  • Q Petrol prices increased by 40% expected hike in taxi & auto charges so, people may use public transport systems. What do you infer?
  • Q How to use richface select in jsf?
  • Q Is there press about meteor?
  • Q SukanyaSamriddhi Scheme gets maturity when the girl attains
  • Q HOW TO MAKE AN AJAX CALL USING JAVASCRIPT?
  • Q Comment on westeron blot.
  • Q What is the difference between I and G in Oracle?
  • Q what is the Abductor Digiti Minimi
  • Q What is von-neumann architecture?
  • Q Trace and debug belongs to which namespaces?