org.testng.TestNGException: Cannot instantiate class com.SF.TestCases.Administrator_Test_Case

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

Samebug tips

Expert tip

Take a look at this blog post on how to set up Grid2 A user related (in the email group on the source) that using older selenium libs solves this exception.

Solutions on the web

via Software Quality Assurance & Testing by noor salma
, 1 year ago
Cannot instantiate class com.SF.TestCases.Administrator_Test_Case
via Google Groups by Sele nium, 1 year ago
Cannot instantiate class TestNG.DemoTestNG
via Software Quality Assurance & Testing by user14403
, 5 months ago
Cannot instantiate class TestCases.sortingTextKB
via Stack Overflow by Shantanu
, 1 year ago
Cannot instantiate class firsttestngpackage.FirstTestNGFile
via Stack Overflow by Uziii
, 11 months ago
Cannot instantiate class TestCases.sortingTextKB
via by Unknown author, 1 year ago
at com.SF.Pages.SFQA_Administrator.(
at com.SF.TestCases.Administrator_Test_Case.(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at org.testng.internal.ObjectFactoryImpl.newInstance(
at org.testng.internal.ClassHelper.createInstance1(
at org.testng.internal.ClassHelper.createInstance(
at org.testng.internal.ClassImpl.getDefaultInstance(
at org.testng.internal.ClassImpl.getInstances(
at org.testng.internal.TestNGClassFinder.(
at org.testng.TestRunner.initMethods(
at org.testng.TestRunner.init(
at org.testng.TestRunner.init(
at org.testng.TestRunner.(
at org.testng.remote.RemoteTestNG$1.newTestRunner(
at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(
at org.testng.SuiteRunner.init(
at org.testng.SuiteRunner.(
at org.testng.TestNG.createSuiteRunner(
at org.testng.TestNG.createSuiteRunners(
at org.testng.TestNG.runSuitesLocally(
at org.testng.remote.RemoteTestNG.initAndRun(
at org.testng.remote.RemoteTestNG.main(

Users with the same issue

6 times, 1 day ago
2 times, 5 days ago
Once, 2 weeks ago
10 times, 3 weeks ago
Once, 2 months ago

Write tip

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