Reputation: 107
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
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
Reputation: 5396
That is better that you use TestNG , It has following advantages :
It generate logs
You can do parallel testing
Annotations helps to set program/function priority easy
Allow to generate HTML report of execution
You can group test cases
You can set test cases priorities.
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