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

  1. 0

    'Cannot instantiate class' error in Selenium WebDriver

    Software Quality Assurance & Testing | 8 months ago | noor salma
    org.testng.TestNGException: Cannot instantiate class com.SF.TestCases.Administrator_Test_Case
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Cannot instantiate class packageName.pageName

    Stack Overflow | 4 months ago | Arvind
    java.lang.NullPointerException
  4. 0

    [Cucumber] [Selenium-Java] : Error : cucumber.runtime.CucumberException: Failed to instantiate class

    Google Groups | 4 months ago | nagarjuna y
    cucumber.runtime.CucumberException: Failed to instantiate class com.pack1.StepDefinitionXMLValidations

  1. batwalrus76 3 times, last 7 days ago
  2. musketyr 2 times, last 3 months ago
  3. Nikolay Rybak 6 times, last 3 months ago
  4. Stefan Braune 1 times, last 5 months ago
  5. adawolfs 39 times, last 4 months ago
10 more registered users
46 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:212)
    1 frame
  3. selenium-support
    WebDriverWait.<init>
    1. org.openqa.selenium.support.ui.FluentWait.<init>(FluentWait.java:102)
    2. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:71)
    3. org.openqa.selenium.support.ui.WebDriverWait.<init>(WebDriverWait.java:45)
    3 frames
  4. com.SF.Pages
    SFQA_Administrator.<init>
    1. com.SF.Pages.SFQA_Administrator.<init>(SFQA_Administrator.java:17)
    1 frame
  5. com.SF.TestCases
    Administrator_Test_Case.<init>
    1. com.SF.TestCases.Administrator_Test_Case.<init>(Administrator_Test_Case.java:16)
    1 frame
  6. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  7. TestNG
    RemoteTestNG.main
    1. org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)
    2. org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:382)
    3. org.testng.internal.ClassHelper.createInstance(ClassHelper.java:295)
    4. org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:118)
    5. org.testng.internal.ClassImpl.getInstances(ClassImpl.java:183)
    6. org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:128)
    7. org.testng.TestRunner.initMethods(TestRunner.java:416)
    8. org.testng.TestRunner.init(TestRunner.java:242)
    9. org.testng.TestRunner.init(TestRunner.java:212)
    10. org.testng.TestRunner.<init>(TestRunner.java:166)
    11. org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:143)
    12. org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:272)
    13. org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:587)
    14. org.testng.SuiteRunner.init(SuiteRunner.java:161)
    15. org.testng.SuiteRunner.<init>(SuiteRunner.java:114)
    16. org.testng.TestNG.createSuiteRunner(TestNG.java:1290)
    17. org.testng.TestNG.createSuiteRunners(TestNG.java:1277)
    18. org.testng.TestNG.runSuitesLocally(TestNG.java:1131)
    19. org.testng.TestNG.run(TestNG.java:1048)
    20. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
    21. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
    22. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)
    22 frames