Hi Folks, I did update my webtest tot he actual Build.
My Webtest-run does not work any more! Starting the webtest on the comandline, the WebtestMonitor comes up and all the tests are listet (twice) but not executed! The WebtestMonitor is waiting and waiting and so on. But nothing happens. I tried different Parameters: wt.testInWork, wt.webtestMontir.skip, wt.parallel.Workers but nothing changed this behavior. Any suggestions? Thanks Michael ---------------------------------------------------- Finding class org.codehaus.groovy.runtime.NullObjectBeanInfo [T: Thread-4]-- Starting check Ofbiz: Hochrechnung/Artikelhochrechnung/Verwaltung > Plan-Gr÷▀enverteilung Excel-Import - READING ! - null wt.groovyTests: [T: Thread-4]-- executeReally Setting project property: wt.groovyTests.dir -> C:\MocPortalProjects\AgsPortalTest\webtests\tests Setting project property: wt.groovyTests.pattern -> **/*Test.groovy [groovyScript] addText(' [groovyScript] import com.canoo.webtest.WebtestCase [groovyScript] [groovyScript] def testsDir = new File(project.properties['wt.groovyTests.dir']) [...........] [groovyScript] if (!candidates.hasFiles()) { [groovyScript] println "No Groovy WebTest detected" [groovyScript] } [groovyScript] ') [groovyScript] execute() [groovyScript] execGroovy() [groovyScript] Groovy: import com.canoo.webtest.WebtestCase [groovyScript] [groovyScript] def testsDir = new File(project.properties['wt.groovyTests.dir']) [...........] [groovyScript] if (!candidates.hasFiles()) { [groovyScript] println "No Groovy WebTest detected" [groovyScript] } [groovyScript] INFO (com.canoo.webtest.ant.WebtestTask) - Starting webtest "check Ofbiz: Hochrechnung/Artikelhochrechnung/Verwaltung > Plan-Gr÷▀enverteilung Ex cel-Import - READING !" (C:\MocPortalProjects\AgsPortalTest\webtests\tests\hochrechnung\artikel\verwaltung\plan_groessenverteilung_excel_import.xml:11: ) [groovyScript] INFO (com.canoo.webtest.ant.WebtestTask) - Canoo Webtest: R_1766. Setting project property: webtest.version -> Canoo Webtest: R_1766. [groovyScript] [T: Thread-4]-- catched java.lang.RuntimeException: Failed to hack HtmlUnit-2.4 XPathUtils.PROCESS_XPATH_ +User datatype: fileScanner org.codehaus.groovy.ant.FileScanner [groovyScript] java.lang.RuntimeException: Failed to hack HtmlUnit-2.4 XPathUtils.PROCESS_XPATH_ [groovyScript] at com.canoo.webtest.engine.xpath.XPathHelper.<init>(XPathHelper.java:177) [groovyScript] at com.canoo.webtest.engine.Context.<init>(Context.java:41) [groovyScript] at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:191) [groovyScript] at WebtestTaskParallel.super$4$execute(WebTestParallelInit.groovy) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [groovyScript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [groovyScript] at java.lang.reflect.Method.invoke(Method.java:597) [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) [groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:131) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:154) [groovyScript] at WebtestTaskParallel.executeReally(WebTestParallelInit.groovy:46) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [groovyScript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [groovyScript] at java.lang.reflect.Method.invoke(Method.java:597) [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) [groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778) [groovyScript] at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198) [groovyScript] at WebTestParallelInit$_run_closure1.doCall(WebTestParallelInit.groovy:111) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [groovyScript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [groovyScript] at java.lang.reflect.Method.invoke(Method.java:597) [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) [groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [groovyScript] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at groovy.lang.Closure.call(Closure.java:292) [groovyScript] at groovy.lang.Closure.call(Closure.java:287) [groovyScript] at groovy.lang.Closure.run(Closure.java:368) [groovyScript] at java.lang.Thread.run(Thread.java:619) [groovyScript] Caused by: java.lang.NoSuchFieldException: PROCESS_XPATH_ [groovyScript] at java.lang.Class.getDeclaredField(Class.java:1882) [groovyScript] at com.canoo.webtest.engine.xpath.XPathHelper.<init>(XPathHelper.java:172) [groovyScript] ... 40 more [groovyScript] [T: Thread-4]-- executed [groovyScript] Exception in thread "Thread-4" org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NullPointerException [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92) [groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [groovyScript] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:807) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at groovy.lang.Closure.call(Closure.java:292) [groovyScript] at groovy.lang.Closure.call(Closure.java:287) [groovyScript] at groovy.lang.Closure.run(Closure.java:368) [groovyScript] at java.lang.Thread.run(Thread.java:619) [groovyScript] Caused by: java.lang.NullPointerException [groovyScript] at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:178) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:477) [groovyScript] at WebtestTaskParallel.executeReally(WebTestParallelInit.groovy:59) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [groovyScript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [groovyScript] at java.lang.reflect.Method.invoke(Method.java:597) [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) [groovyScript] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) [groovyScript] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) [groovyScript] at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:778) [groovyScript] at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) [groovyScript] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198) [groovyScript] at WebTestParallelInit$_run_closure1.doCall(WebTestParallelInit.groovy:111) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [groovyScript] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [groovyScript] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [groovyScript] at java.lang.reflect.Method.invoke(Method.java:597) [groovyScript] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) [groovyScript] ... 9 more Could not load class (org.apache.tools.ant.taskdefs.repository.MavenRepository) for type mavenrepository Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend Could not load a dependent class (javax/media/jai/PlanarImage) for type image fileset: Setup scanner in dir C:\MocPortalProjects\AgsPortalTest\webtests\tests with patternSet{ includes: [**/*Test.groovy] excludes: [] } [groovyScript] statements executed successfully wt.parallel.waitForCompletion: [groovyScript] execute() [groovyScript] execGroovy() [groovyScript] Groovy: /** [groovyScript] * Experimental feature: allows to simply run WebTests in parallel [groovyScript] * @author Marc Guillemot [groovyScript] */ [groovyScript] def queue = project.references["wt-queue"] [groovyScript] [groovyScript] // remove marker, now threads should finish if they have nothing to do [groovyScript] synchronized (queue) [groovyScript] { [groovyScript] queue.remove Object.class [groovyScript] } [groovyScript] [groovyScript] def workers = project.references["wt-workers"] [groovyScript] synchronized (queue) { [groovyScript] while (workers) { [groovyScript] queue.wait(5000) [groovyScript] } [groovyScript] } +User datatype: fileScanner org.codehaus.groovy.ant.FileScanner --------------------------------------------