java.lang.NoClassDefFoundError:无法初始化类io.restassured.RestAssured

时间:2019-06-19 17:25:45

标签: java rest-assured

我收到以下错误。请帮助。

堆栈跟踪:

java.lang.NoClassDefFoundError: Could not initialize class io.restassured.RestAssured
  at netbanking.pages.APIResponsePages.<init>(APIResponsePages.java:24)
  at netbanking.module.PassbookModule.validateUITransactionsWithAPI(PassbookModule.java:219)
  at testcases.singleuser.PassbookTest.test8validateAPIresponse(PassbookTest.java:157)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)

我试图更新pom.XML文件依赖项中的编译无效。 另外,将所有jar上载为restAssured,也无效。

0 个答案:

没有答案