org.testng.TestNGException: cn.testng.my.TestDataProvider.test3() depends on nonexistent method f

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by ghost
, 1 year ago
cn.testng.my.TestDataProvider.test3() depends on nonexistent method f
via GitHub by fmisiak
, 2 years ago
packageA.ClassOne.methodA() is depending on method public void packageB.ClassTwo.methodB(), which is not annotated with @Test
via GitHub by fmisiak
, 2 years ago
packageA.ClassOne.methodA() is depending on method public void packageB.ClassTwo.methodB(), which is not annotated with @Test
via GitHub by z475546259
, 4 months ago
com.zhubajie.autotest.announcementservice.TestUpdateAnnouncement.testCase() is depending on method public void com.zhubajie.autotest.announcementservice.TestSaveAnnouncement.testCase(java.util.Map,java.lang.Object), ## **which is not annotated with @Test or not included.**
via GitHub by mbocek
, 2 years ago
test.BeforeAfterMethodTest.beforeMethod() is depending on method public void test.BeforeAfterMethodTest.test(), which is not annotated with @Test or not included.
via GitHub by missedone
, 2 years ago
example.testMethod3() depends on nonexistent method **test.***
org.testng.TestNGException: cn.testng.my.TestDataProvider.test3() depends on nonexistent method f
at org.testng.internal.MethodHelper.findDependedUponMethods(MethodHelper.java:114)
at org.testng.internal.MethodHelper.topologicalSort(MethodHelper.java:240)
at org.testng.internal.MethodHelper.sortMethods(MethodHelper.java:317)
at org.testng.internal.MethodHelper.collectAndOrderMethods(MethodHelper.java:59)
at org.testng.TestRunner.initMethods(TestRunner.java:481)
at org.testng.TestRunner.init(TestRunner.java:235)
at org.testng.TestRunner.init(TestRunner.java:205)
at org.testng.TestRunner.(TestRunner.java:160)
at org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:141)
at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:271)
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:561)
at org.testng.SuiteRunner.init(SuiteRunner.java:157)
at org.testng.SuiteRunner.(SuiteRunner.java:111)
at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.