Tell us what is the difference between @factory and @dataprovider annotation?



Tell us what is the difference between @factory and @dataprovider annotation?..

Answer / Debashish Gorai

The `@Factory` annotation in TestNG is used to create test objects, such as setting up a test data provider. On the other hand, the `@DataProvider` annotation provides test data for multiple test methods within the same class. The main difference lies in their usage and purpose.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

What are the steps involved in the automation process ?

1 Answers  


In Selenium how a test suit is run and report is generated.

1 Answers  


Does automation replace manual testing?

2 Answers  


hi Friends this is Srinivas. Can u discribe about bug lifecycle.how to say in interview.send me my mail :dsrao106@gmail.com

5 Answers   Wipro,


Explain me what kinds of annotations are used in testng?

1 Answers  


How can you switch back from a frame?

1 Answers  


Write a short compiled module which selects random numbers. and what function is used to call your customized compiled module?

1 Answers  


Please explain what is the difference between findelement () and findelements ()?

1 Answers  


What are the main attributes of test automation?

1 Answers  


How will you choose a tool for test automation?

1 Answers  


We have a testing assignment should be test in very short span.Do you think automated tests are the best solution for this type of scenario?

3 Answers  


Bug report formate in bugzilla

1 Answers   CTS,


Categories