java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

GitHub | damithc | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    StudentFeedbackSubmitPageUiTest failing on live server

    GitHub | 10 months ago | damithc
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not in the correct page!

      at teammates.test.pageobjects.AppPage.<init>()
    2. teammates.test.pageobjects
      FeedbackSubmitPage.<init>
      1. teammates.test.pageobjects.AppPage.<init>(AppPage.java:130)
      2. teammates.test.pageobjects.FeedbackSubmitPage.<init>(FeedbackSubmitPage.java:14)
      2 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    4. teammates.test.pageobjects
      AppPage.getNewPageInstance
      1. teammates.test.pageobjects.AppPage.getNewPageInstance(AppPage.java:150)
      2. teammates.test.pageobjects.AppPage.getNewPageInstance(AppPage.java:140)
      2 frames
    5. teammates.test.cases
      StudentFeedbackSubmitPageUiTest.testAll
      1. teammates.test.cases.ui.browsertests.StudentFeedbackSubmitPageUiTest.loginToStudentFeedbackSubmitPage(StudentFeedbackSubmitPageUiTest.java:636)
      2. teammates.test.cases.ui.browsertests.StudentFeedbackSubmitPageUiTest.testSubmitAction(StudentFeedbackSubmitPageUiTest.java:405)
      3. teammates.test.cases.ui.browsertests.StudentFeedbackSubmitPageUiTest.testAll(StudentFeedbackSubmitPageUiTest.java:52)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    7. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:115)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:207)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:178)
      20 frames