RE: Can we use objects of one class in another class only with the help of TestNG?

Can we use objects of one class in another class only with the help of TestNG?

e.g.: I have an object of a driver and sheet in class 1 and I want to use them in class2. How we can do it having TestNG implemented?

Or you may suggest a solution that can be implemented.

thitenitin Train Asked on December 12, 2014 in Selenium WebDriver.

Please close the question Nitin.

on December 15, 2014.
Add Comment
4 Answers

This can be used in TestNG too, right?

Train Answered on December 12, 2014.

Yes

on December 12, 2014.
Add Comment

Your Answer

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