user1700354
user1700354

Reputation: 107

Advantages and disadvantages of using testNG for keyword driven selenium webdriver framework?

I have developed keyword driven selenium webdriver framework. But I am in doubt whether to go to user testNG or not?.If not using testNG how can I generate the test report? Now I am printing the result in master excel file containing the testcase ID,webdriver actions etc. Any suggestions please

Upvotes: 0

Views: 11490

Answers (2)

csekar
csekar

Reputation: 31

I am facing the same dilemma as the OP is facing. TestNG requires some code to be developed for a test case while a keyword framework works towards eliminating this coding. There is usually a driver script in keyword frameworks and one possible way to use testing is to write the driver method in @Test and include only the driver class in testng xml. This way same set of test cases can be executed for multiple browsers. However, TestNG reports won't be useful here and customized reporting might be required. Hope this helps.

Upvotes: 0

Helping Hands
Helping Hands

Reputation: 5396

That is better that you use TestNG , It has following advantages :

  1. It generate logs

  2. You can do parallel testing

  3. Annotations helps to set program/function priority easy

  4. Allow to generate HTML report of execution

  5. You can group test cases

  6. You can set test cases priorities.

  7. You can do data Parameterization

TestNG really makes automation testing easy.

Still it is depends on you and your actual requirement. No need to use TESTNG if you do not want to prioritize your tests and do not want to use annotation.

Upvotes: 4

Related Questions