by @kodeazy

Java import org.testng cannot be resolved in eclipse

Home » java » Java import org.testng cannot be resolved in eclipse

eclipse-testng-import-error

  • I am trying to add below import statement in my eclipse got the above error.

    import org.testng.annotations.*;
  • To resolve follow the below steps.
  • Open eclipse market place by clicking on help as shown in below image. eclipse-marketspace-button
  • Now search for testng and installit as shown in below image.

TestNg

  • Now restart eclipse and try using testng.