TestNG java.lang.NoClassDefFoundError: com/google/common/primitives/Ints

后端 未结 3 576
忘掉有多难
忘掉有多难 2021-01-24 00:41

I am new to learning TestNG. I followed these steps:

  1. I have created testng class
  2. @Test(dataProvider=\"registerData\")
  3. I wrote a method with four
相关标签:
3条回答
  • 2021-01-24 01:16
    1. Download com.google.guava_1.6.0.jar from here
      1. add .jar file to your project
    0 讨论(0)
  • 2021-01-24 01:39

    The issue is known and already fixed (the fix will be available in the next version): https://github.com/cbeust/testng/pull/1086

    As workarround, you can downgrade your testng version or add Guava in your classpath.

    0 讨论(0)
  • 2021-01-24 01:40

    It seems below jar is not available in your classpath. com.google.guava_1.6.0.jar

    Download from the link below and add it to your classpath.

    com.google.guava_1.6.0.jar

    0 讨论(0)
提交回复
热议问题