org.testng.TestNGException

Cannot instantiate class com.fmr.BusinessTests.PartAFileUploadServer

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Idan Shay,
  • Stack trace

    • org.testng.TestNGException: Cannot instantiate class com.fmr.BusinessTests.PartAFileUploadServer at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:38) at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:382) at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:295) at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:117) at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:183) at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:128) at org.testng.TestRunner.initMethods(TestRunner.java:415) at org.testng.TestRunner.init(TestRunner.java:241) at org.testng.TestRunner.init(TestRunner.java:211) at org.testng.TestRunner.<init>(TestRunner.java:165) at org.testng.remote.support.RemoteTestNG6_5$1.newTestRunner(RemoteTestNG6_5.java:26) at org.testng.remote.support.RemoteTestNG6_5$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_5.java:59) at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:584) at org.testng.SuiteRunner.init(SuiteRunner.java:159) at org.testng.SuiteRunner.<init>(SuiteRunner.java:114) at org.testng.TestNG.createSuiteRunner(TestNG.java:1260) at org.testng.TestNG.createSuiteRunners(TestNG.java:1247) at org.testng.TestNG.runSuitesLocally(TestNG.java:1101) at org.testng.TestNG.run(TestNG.java:1018) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:137) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:58) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29) ... 21 more Caused by: ru.qatools.properties.PropertyLoaderException: Required property <aut.uri.base> for element <private java.lang.String com.fmr.pitest.environments.AutParams.autUriBase> doesn't exists at ru.qatools.properties.PropertyLoader.checkRequired(PropertyLoader.java:203) at ru.qatools.properties.PropertyLoader.resolveProperties(PropertyLoader.java:154) at ru.qatools.properties.PropertyLoader.resolveProperties(PropertyLoader.java:139) at ru.qatools.properties.PropertyLoader.populate(PropertyLoader.java:59) at com.fmr.pitest.environments.AutParams.<init>(AutParams.java:62) at com.fmr.BusinessTests.PartAFileUploadServer.<init>(PartAFileUploadServer.java:41) ... 26 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.