Home »
MCQs »
TestNG MCQs
Which of the following ways can be used to add TestNG in your Eclipse?
9. Which of the following ways can be used to add TestNG in your Eclipse?
- TestNG can be installed either by adding the TestNG jar file to the Build Path or by installing the TestNG plug-in.
- The TestNG plug-in is preferable to the testng.jar file since you don't have to install it for every project. Testng.jar files, on the other hand, must be added to every project's build path.
- Both A and B
- None of the above
Answer: C) Both A and B
Explanation:
The following ways can be used to add TestNG in your eclipse -
- TestNG can be installed either by adding the TestNG jar file to the Build Path or by installing the TestNG plug-in.
- The TestNG plug-in is preferable to the testng.jar file since you don't have to install it for every project. Testng.jar files, on the other hand, must be added to every project's build path.