How to fix : [TestNGClassFinder] Warning: Can't link and determine methods.

More info:

My Automation is getting failed suddenly. I know it was working well before & even yesterday. Tried searching on Google but doesn't resolve my issue. Still facing below error:

[TestNGClassFinder] Warning: Can't link and determine methods

Any one resolved this? If anyone is also facing same issue, please add your findings in comments.


  • Mac iOS Version : 10.12 [macOS Sierra]
  • Appium : Appium1.8.1
  • Xcode : 9.3

1 Answer 1


I believe you are getting this when doing a maven build. Please let us know the TestNG version as this is raised by TestNG.

Its a NoClassDefFoundError thrown by TestNG to gracefully handle the situation. Just check for maven dependency and class definitions.

To be very specific TestNG throws this warning when it tries to get the methods of all classes in your project and the code flows to the Exception block.

  • Yes Thats right. But I have already gone through my mvn dependancies and all configurations. No errors and nothing changed still I'm facing this is bit scary. Have you face this issue in past? any other solution do you know? Aug 2, 2018 at 5:25
  • I have not faced this issue. Can you share the exec log/ stacktrace. The line of execution says a lot of things. "Utils.log("[TestNGClassFinder]", 5, "[WARN] Can't link and determine methods of " + var4 + "(" + var12.getMessage() + ")");" Aug 2, 2018 at 5:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.