Hi Alexander, This is more of a generic query, like whether Geb supports WindowsDriver. I provided the stack trace just for reference. Anyways, as per your suggestion, I am adding the brief code to reproduce the problem in a comment below.
Thanks, Sagar On Tuesday, December 18, 2018 at 11:38:52 AM UTC+5:30, Alexander Kriegisch wrote: > > Sagar, > > generally speaking (not about your tool in particular), IMO a callstack > without the corresponding code to reproduce the problem is not particularly > helpful. > > Regards > -- > Alexander Kriegisch > https://scrum-master.de > > > Sagar Agarwal schrieb am 18.12.2018 12:58: > > > > Hi All, > > > > > > I need to test an application that is a Desktop(Windows) application. > > > > > > For this I came across WinAppDriver > > (https://github.com/Microsoft/WinAppDriver) which has been > > developed by Microsoft above Appium. > > > > > > Using plain old Java, I am able to create and execute test cases using > > this. But when i tried with Geb/Spock, it is failing. > > > > > > with error as below: > > > > > > java.lang.OutOfMemoryError: GC overhead limit exceeded > > > > at java.util.HashMap.newNode(HashMap.java:1747) > > > > at java.util.HashMap.putVal(HashMap.java:631) > > > > at java.util.HashMap.put(HashMap.java:612) > > > > at java.util.HashSet.add(HashSet.java:220) > > > > at > > > org.aspectj.apache.bcel.generic.InstructionHandle.addTargeter(InstructionHandle.java:161) > > > > > > at org.aspectj.apache.bcel.generic.MethodGen.<init>(MethodGen.java:300) > > > > at > > org.aspectj.weaver.bcel.LazyMethodGen.initialize(LazyMethodGen.java:372) > > > > at > > > org.aspectj.weaver.bcel.LazyMethodGen.markAsChanged(LazyMethodGen.java:540) > > > > at org.aspectj.weaver.bcel.LazyMethodGen.getBody(LazyMethodGen.java:929) > > > > at > > > org.aspectj.weaver.bcel.BcelShadow.makeShadowForMethod(BcelShadow.java:679) > > > > at > > > org.aspectj.weaver.bcel.BcelShadow.makeMethodExecution(BcelShadow.java:675) > > > > at > > > org.aspectj.weaver.bcel.BcelShadow.makeMethodExecution(BcelShadow.java:655) > > > > at > > org.aspectj.weaver.bcel.BcelClassWeaver.match(BcelClassWeaver.java:2664) > > > > at > org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:480) > > > > at > org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:100) > > > > at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1700) > > > > at > > > org.aspectj.weaver.bcel.BcelWeaver.weaveWithoutDump(BcelWeaver.java:1644) > > > > at > org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify(BcelWeaver.java:1409) > > > > at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1191) > > > > at > > > org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:527) > > > > > > at > > > org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:363) > > > > at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:121) > > > > at > > > org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:54) > > > > > > at > > sun.instrument.TransformerManager.transform(TransformerManager.java:188) > > > > at > > > sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428) > > > > at java.lang.ClassLoader.defineClass1(Native Method) > > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:763) > > > > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) > > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) > > > > at java.net.URLClassLoader.access$100(URLClassLoader.java:73) > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:368) > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:362) > > > > > > [main] INFO com.athaydes.spockframework.report.internal.ConfigLoader - > > SpockReports config loaded: > > {com.athaydes.spockframework.report.showCodeBlocks=false, > > > com.athaydes.spockframework.report.template.TemplateReportCreator.reportFileExtension=md, > > > > com.athaydes.spockframework.report.testSourceRoots=src/test/groovy, > > > com.athaydes.spockframework.report.IReportCreator=com.athaydes.spockframework.report.internal.HtmlReportCreator, > > > > com.athaydes.spockframework.report.outputDir=build/spock-reports, > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.inlineCss=true, > > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.featureReportCss=spock-feature-report.css, > > > > com.athaydes.spockframework.report.hideEmptyBlocks=false, > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.summaryReportCss=spock-summary-report.css, > > > > com.athaydes.spockframework.report.projectVersion=Unknown, > > > com.athaydes.spockframework.report.template.TemplateReportCreator.specTemplateFile=/templateReportCreator/spec-template.md, > > > > > com.athaydes.spockframework.report.template.TemplateReportCreator.summaryTemplateFile=/templateReportCreator/summary-template.md, > > > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.excludeToc=false, > > > > > com.athaydes.spockframework.report.template.TemplateReportCreator.enabled=true, > > > > com.athaydes.spockframework.report.projectName=, > > > com.athaydes.spockframework.report.template.TemplateReportCreator.summaryFileName=summary.md, > > > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.printThrowableStackTrace=false, > > > > > com.athaydes.spockframework.report.internal.HtmlReportCreator.enabled=true} > > > > log4j:WARN No appenders could be found for logger > > (org.apache.commons.beanutils.converters.BooleanConverter). > > > > log4j:WARN Please initialize the log4j system properly. > > > > [AppClassLoader@18b4aac2] warning javax.* types are not being woven > > because the weaver option '-Xset:weaveJavaxPackages=true' has not been > > specified > > > > > > geb.driver.DriverCreationException: failed to create driver from > callback > > 'script15451124974521875017861$_run_closure1$_closure3@40c0937f' > > > > > > at > > > geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35) > > > > at > > > geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85) > > > > > > at > > > geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy) > > > > > > at > > > geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32) > > > > > > at > > > geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.groovy:84) > > > > at geb.Configuration.createDriver(Configuration.groovy:382) > > > > at geb.Configuration.getDriver(Configuration.groovy:371) > > > > at geb.Browser.getDriver(Browser.groovy:111) > > > > at > > > geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(BrowserBackedNavigatorFactory.groovy:35) > > > > > > > > Can anyone please help to resolve this?? > > > > -- > > 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] <javascript:> > > <mailto:[email protected] <javascript:>> . > > To post to this group, send email to [email protected] > <javascript:> > > <mailto:[email protected] <javascript:>> . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/geb-user/d1a84a23-d722-4ae2-8421-e600bde021d0%40googlegroups.com > > > < > https://groups.google.com/d/msgid/geb-user/d1a84a23-d722-4ae2-8421-e600bde021d0%40googlegroups.com?utm_medium=email&utm_source=footer> > > > > . > > For more options, visit https://groups.google.com/d/optout. > > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/b4ab807c-c568-46ff-a73f-6f48bb46fc9b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
