Xls data reading test cases getting skipped with DataProvidr | Selenium Forum
M
Posted on 11/10/2016
As per the Module 20->Part 7(ReadingData).
Am able to run DataManagement.java and ReadingData.jave.
But Unable to run the TestA.java.

When i run "TestA.java" am getting the below error message.

[TestNG] Running:
C:\Users\vmputhax\AppData\Local\Temp\testng-eclipse-471764476\testng-customsuite.xml

[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\Default suite\Default test.xml
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\Default suite exists: true
SKIPPED: testA
java.lang.NoClassDefFoundError: com/google/common/primitives/Ints
at org.testng.internal.annotations.JDK15TagFactory.createDataProviderTag(JDK15TagFactory.java:335)
at org.testng.internal.annotations.JDK15TagFactory.createTag(JDK15TagFactory.java:59)
at org.testng.internal.annotations.JDK15AnnotationFinder.findAnnotation(JDK15AnnotationFinder.java:217)
at org.testng.internal.annotations.JDK15AnnotationFinder.findAnnotation(JDK15AnnotationFinder.java:111)
at org.testng.internal.Parameters.findDataProvider(Parameters.java:326)
at org.testng.internal.Parameters.findDataProvider(Parameters.java:261)
at org.testng.internal.Parameters.handleParameters(Parameters.java:418)
at org.testng.internal.Invoker.handleParameters(Invoker.java:1240)
at org.testng.internal.Invoker.createParameters(Invoker.java:980)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1070)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:746)
at org.testng.TestRunner.run(TestRunner.java:600)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1264)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1189)
at org.testng.TestNG.runSuites(TestNG.java:1104)
at org.testng.TestNG.run(TestNG.java:1076)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)
Caused by: java.lang.ClassNotFoundException: com.google.common.primitives.Ints
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more


===============================================
Default test
Tests run: 1, Failures: 0, Skips: 1
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
===============================================

[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\testng-failed.xml
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\Default suite\testng-failed.xml
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\Default suite exists: true
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 12 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@7d417077: 17 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@6debcae2: 9 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@5a01ccaa: 54 ms
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\toc.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\Default test.properties
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\index.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\main.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\groups.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\classes.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\reporter-output.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\methods-not-run.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite\testng.xml.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\Default suite exists: true
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old\index.html
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\old exists: true
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@ea4a92b: 49 ms
[Utils] Attempting to create C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\junitreports\TEST-TestA.xml
[Utils] Directory C:\Users\vmputhax\Desktop\My Life\Skills\Selenium\workspace\ReadingData\test-output\junitreports exists: true
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@2c8d66b2: 8 ms
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

M
Replied on 12/10/2016

look at this q/a


http://stackoverflow.com/questions/38483832/testng-java-lang-noclassdeffounderror-com-google-common-primitives-ints


M
Replied on 12/10/2016

Thanks .
It works.
I have downloaded and included "com.google.guava_1.6.0.jar" under my project.