Hi Mani, I'm afraid that you are providing so little information that it's virtually impossible to help you. What's more, the error you posted has nothing to do with Geb, it looks like a classpath issue related to TestNG execution.
Can you share your test project by uploading it to Github so that people can at least have a look at what might be wrong in your setup? Cheers, Marcin On Mon, Jun 29, 2020 at 9:27 AM Mani <[email protected]> wrote: > Hi Thomas, > > I am not using gradle. (Using Maven) > > I'm using testng xml where i've given the package & class name of the > groovy script as mentioned. I'm running testng.xml from eclipse IDE. > > Note: I'm new to GEB and trying to integrate GEB with Testng.(Maven) > > Regards, > Mani. > > On Monday, June 29, 2020 at 1:48:08 PM UTC+5:30, Thomas Hirsch wrote: >> >> Hello Mani, >> >> how are you executing this? >> Are you using Gradle? >> Are you starting the tests from an IDE? >> Can you show your build.gradle file? >> >> Best regards, >> Thomas >> On Monday, June 29, 2020 at 9:48:07 AM UTC+2 Mani wrote: >> >>> I created a framework with testng & GEB. (groovy) >>> >>> When I executed as testng suite, I'm getting >>> >>> Cannot find class in classpath: com.Daca.Smoke.GoogleTest >>> at org.testng.xml.XmlClass.loadClass(XmlClass.java:81) >>> at org.testng.xml.XmlClass.init(XmlClass.java:73) >>> at org.testng.xml.XmlClass.<init>(XmlClass.java:59) >>> at >>> org.testng.xml.TestNGContentHandler.startElement(TestNGContentHandler.java:556) >>> at >>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) >>> >>> >>> I tried all the solution given in google such as cleaning the project >>> etc.(I've done the same in testng, java & selenium it worked well) >>> >>> For groovy, testng & GEB i couldn't resolve it. >>> >>> -- > You received this message because you are subscribed to the Google Groups > "Geb User Mailing List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/geb-user/6931a7c0-4a44-4455-94f9-527375de8e16o%40googlegroups.com > <https://groups.google.com/d/msgid/geb-user/6931a7c0-4a44-4455-94f9-527375de8e16o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQRtXMmcNucghJpkhJi3cv5eRO90b4ZPtuf5oKQP3qsrLw%40mail.gmail.com.
