I have working with Hybrid framework , i want to change it into TestNG Frame work….any idea plz suggest me!!

My senior have designed following structure like
Driver — From driver excel sheet it will search for Yes or No execution scenarios
Test engine– It contains user defined functions
Read excel –Switch case used for fetching the user defined functions
Write excel– only for output (Result) purpose

This is my java class file in eclipse , here how can inject TestNg !!

Add Comment
2 Answer(s)

You can add TestNG as an eclipse plugin
Import testng annotations in java class

Use annotation @Before Class / @Before Test for driver instantiate method
Use annotation @After Class / @After Test for driver object destruction
User Annotation @test for test which u want to execute

OR in eclipse You can select class which you want to execute as testng and convert it to testng class



amitjain Supporter Answered on July 1, 2015.
Add Comment

Amit ,Thanks for your suggestion , i will inform you once i finished the task ….Thank you

balaji18s Train Answered on July 2, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.