Hi,

We're using canoo webtests in Hudson and we have noticed a problem with
both the stable version and the latest snapshot version. Is there a way
that I can enter a bug into the JIRA instance?

IMHO, bug reports don't really belong here.

Stable release = 1689
Snapshot = 1721

First off, in the stable version r_1689 we have a hello world test to
verify that out webapp is indeed running. The test fails using the
stable version but not with the snapshot.

The simple test :

NOTE: /${realm.prefix} is expanded to http://server:port/url/hello and
works flawlessly in all the other tests.

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">

<project name="user-simple-test" default="test">
  <import file="../definitions.xml"/>
  <target name="test" depends="wt.defineMacros">
  <webtest name="Usecase Test hello">
      &config;
      <invoke description="Get the page: " url="/${realm.prefix}hello"/>
     <verifyText description="Verify that text is contained in the page"
text="hello"/>
     <verifyText description="Verify that text is contained in the page"
text="Yanel Path (with regard to realm):"/>
     <verifyText description="Verify that text is contained in the page"
text="pdf-sample2.pdf"/>
     <verifyText description="Verify that text is contained in the page"
text="world.html"/>
   </webtest>
  </target>
</project>

The stacktrace:

/home/wyona/.hudson/jobs/Yanel/workspace/trunk/src/realms/use-cases/yanel/config/src/test/canoo/tests/usecase-test-hello.xml:12:
Unexpected exception caught: java.lang.IllegalArgumentException
        at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:113)
        at com.canoo.webtest.steps.Step.handleException(Step.java:378)
        at com.canoo.webtest.steps.Step.execute(Step.java:109)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
        at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.IllegalArgumentException: Illegal group reference
        at java.util.regex.Matcher.appendReplacement(Matcher.java:706)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.replaceCompilationVariables(IEConditionalCompilationScriptPreProcessor.java:152)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.processConditionalCompilation(IEConditionalCompilationScriptPreProcessor.java:92)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.preProcess(IEConditionalCompilationScriptPreProcessor.java:83)
        at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:366)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:887)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:792)
        at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:276)
        at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:197)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1497)
        at
com.gargoylesoftware.htmlunit.html.DomNode.appendDomChild(DomNode.java:808)
        at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:392)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at
org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:188)
        at
org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java:295)
        at
org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1042)
        at
org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:663)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2489)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1950)
        at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:872)
        at 
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:496)
        at 
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:449)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at 
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
        at
com.canoo.webtest.engine.Configuration$1.createPage(Configuration.java:622)
        at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:421)
        at
com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)
        at
com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)
        at
com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)
        at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)
        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        ... 57 more
--- Nested Exception ---
java.lang.IllegalArgumentException: Illegal group reference
        at java.util.regex.Matcher.appendReplacement(Matcher.java:706)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.replaceCompilationVariables(IEConditionalCompilationScriptPreProcessor.java:152)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.processConditionalCompilation(IEConditionalCompilationScriptPreProcessor.java:92)
        at
com.gargoylesoftware.htmlunit.javascript.IEConditionalCompilationScriptPreProcessor.preProcess(IEConditionalCompilationScriptPreProcessor.java:83)
        at
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:366)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:887)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:792)
        at
com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:276)
        at
com.gargoylesoftware.htmlunit.html.HtmlScript.onAddedToPage(HtmlScript.java:197)
        at
com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1497)
        at
com.gargoylesoftware.htmlunit.html.DomNode.appendDomChild(DomNode.java:808)
        at
com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:392)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at
org.cyberneko.html.filters.DefaultFilter.startElement(DefaultFilter.java:188)
        at
org.cyberneko.html.filters.NamespaceBinder.startElement(NamespaceBinder.java:295)
        at
org.cyberneko.html.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1042)
        at
org.cyberneko.html.HTMLTagBalancer.startElement(HTMLTagBalancer.java:663)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2489)
        at
org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1950)
        at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:872)
        at 
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:496)
        at 
org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:449)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at 
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253)
        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116)
        at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89)
        at
com.canoo.webtest.engine.Configuration$1.createPage(Configuration.java:622)
        at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359)
        at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:421)
        at
com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)
        at
com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)
        at
com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)
        at
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)
        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
        at
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to